To set text color with HTML5 Canvas, we can set the fillStyle property of the canvas context to a color string, hex value, or RGB value.
Code Editor
Modified on April 8th, 2013
by Eric Rowell
To set text color with HTML5 Canvas, we can set the fillStyle property of the canvas context to a color string, hex value, or RGB value.