[whatwg] setting canvas colors as array

Anne van Kesteren annevk at opera.com
Sat Oct 4 03:07:07 PDT 2008

On Sat, 04 Oct 2008 01:37:53 +0200, Oliver Hunt <oliver at apple.com> wrote:
> <thinking out loud>
> Just had a thought (no idea how original) -- how about if fillStyle were  
> able to accept a 3 or 4 number array? eg. fillStyle = [0, 0.3, 0.6, 1.0]  
> ?
> That might work well if people are using arrays as vectors/colours
> </thinking out loud>

Philip Taylor suggested that a while back:


Ian Hickson replied only to the added value of returning an array rather  
than a string:


(Which at this point is unfortunately no longer possible I'm afraid.)

Anne van Kesteren

More information about the whatwg mailing list