UNPKG

@flyskywhy/react-native-gcanvas

Version:

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

10 lines (7 loc) 208 B
ctx.translate(100, 100); ctx.fillStyle = "rgba(0, 0, 255, 0.5)"; ctx.shadowColor = "rgba(0, 0, 0, 0.2)"; ctx.shadowBlur = 20; ctx.shadowOffsetX = 20; ctx.shadowOffsetY = 20; ctx.fillRect(10, 10, 100, 100);