UNPKG

test-gcanvas-node

Version:

gcanvas for node developer

13 lines (12 loc) 275 B
// First path ctx.beginPath(); ctx.strokeStyle = 'blue'; ctx.moveTo(20 *ratio, 20*ratio); ctx.lineTo(200*ratio, 20*ratio); ctx.stroke(); // Second path ctx.beginPath(); ctx.strokeStyle = 'green'; ctx.moveTo(20*ratio, 20*ratio); ctx.lineTo(120*ratio,120*ratio); ctx.stroke();