UNPKG

@flyskywhy/react-native-gcanvas

Version:

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

8 lines (7 loc) 188 B
// Shadow ctx.shadowColor = 'red'; ctx.shadowOffsetX = 25 *ratio; ctx.shadowBlur =10 *ratio; // Rectangle ctx.fillStyle = 'blue'; ctx.fillRect(20 *ratio, 20 *ratio,150 *ratio,100 *ratio);