views:

297

answers:

1

How do I add colour to my text in canvas. When I tried fillStyle the text just stayed black.

A: 

you indeed have to set fillStyle and then call fill();

  ctx.strokeStyle = 'red';
  ctx.stroke();
  ctx.fillStyle= 'blue';
  ctx.fill();
futtta
Thanks, i found out after I posted the question. Here is the finished product of my question: http://nebkat.com/projects/alphaworks/
NebNeb