159
rated 0 times
[
160]
[
1]
/ answers: 1 / hits: 30762
/ 13 Years ago, tue, april 26, 2011, 12:00:00
I am trying to change the color of line drawn on canvas dynamically...
ctx.moveTo(0, 0);
ctx.lineTo(0, 200);
ctx.strokeStyle = Grey
It could be mouseover event or press botton or mouse click event, I want to change the color of line or make it bold. Is it possible to change the color by adding event or is it possible to give style on an event on particular element?
More From » css