fillStyle() to select colour or gradient for lines and fills on Canvas

Drag the sliders to change the X, Y position and height width values for the rectangle. Click the colour table to select a colour for fillStyle.
void gctx.fillStyle = colour | gradient | pattern;
Options :
fillStyle = colour
Specify a colour as shown in this demo
fillStyle = gradient
fillStyle = pattern
(object) Image , video etc and to generate repeat image
var my_canvas=$('#my_canvas').get(0)
var gctx = my_canvas.getContext("2d");
gctx.fillStyle = 'red';

Post your comments , suggestion , error , requirements etc here .

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 All rights reserved worldwide Privacy Policy Disclaimer