UNPKG

@flyskywhy/react-native-gcanvas

Version:

A C++ native canvas 2D/WebGL component based on gpu opengl glsl shader GCanvas

4 lines (3 loc) 123 B
ctx.strokeStyle = "rgba(255,0,255,1.0)" ctx.lineWidth = 5*ratio; ctx.strokeRect(10*ratio, 10*ratio, 100*ratio, 100*ratio);