UNPKG

@flyskywhy/react-native-gcanvas

Version:

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

4 lines (3 loc) 122 B
ctx.strokeStyle = 'rgba(255,0,0,0.5)'; ctx.lineWidth = 5*ratio; ctx.strokeRect(10*ratio, 10*ratio, 100*ratio, 100*ratio);