strokeStyle() to add colour to lines on Canvas

Drag the sliders to change the X, Y postion and height width values for the rectangle. Click the colour table to select a colour for strokeStyle.

Copy Hex value
void gctx.strokeStyle = colour | gradient | pattern;
Options :
strokeStyle = colour
Specify a colour as shown in this demo
strokeStyle = gradient
strokeStyle = pattern
(object) Image , video etc and to generate repeat image
var my_canvas=$('#my_canvas').get(0)
var gctx = my_canvas.getContext("2d");
gctx.strokeStyle = 'red';
Your Rating

Post Comment This is for short comments only. Use the forum for more discussions.

HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 All rights reserved worldwide Privacy Policy Disclaimer