UNPKG

@flyskywhy/react-native-gcanvas

Version:

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

10 lines (8 loc) 207 B
ctx.beginPath(); ctx.lineWidth = 10*ratio; ctx.lineJoin = 'round'; ctx.miterLimit = 5*ratio; ctx.moveTo(10*ratio, 10*ratio); ctx.lineTo(200*ratio, 100*ratio); ctx.lineTo(50*ratio, 200*ratio); ctx.stroke();