How do I convert integer byte values of red, green and blue to a hex string, which can then be assigned to a context for rendering onto a HTML5 canvas?
For example, convert cyan,
var r = 0;
var g = 255;
var b = 255;
To a hex string for assigning to a context fill colour.
this.context.fillStyle = '#00FFFF';
Or is there a better way to do this altogether?