W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] setting canvas colors as array

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 04 Oct 2008 12:07:07 +0200
Message-ID: <op.uihvp5hf64w2qv@annevk-t60.oslo.opera.com>
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:

   http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-April/010939.html

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

   http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2007-May/011268.html

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


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Saturday, 4 October 2008 03:07:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:44 UTC