[whatwg] setting canvas colors as array

Oliver Hunt oliver at apple.com
Sun Oct 5 15:10:55 PDT 2008


Whoops, sorry -- Philipp Serafin did -- i misread my mail reply  
indentation, sorry :D

On Oct 5, 2008, at 10:10 AM, Kristof Zelechovski wrote:

> Correction: I did not write that.
> Chris
>
> -----Original Message-----
> From: whatwg-bounces at lists.whatwg.org
> [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Oliver Hunt
> Sent: Sunday, October 05, 2008 12:23 AM
> To: Maciej Stachowiak
> Cc: whatwg at whatwg.org; Sjoerd Visscher; Robert Sayre
> Subject: Re: [whatwg] setting canvas colors as array
>
> On Oct 4, 2008, at 8:02 AM, Kristof Zelechovski wrote:
>> Instead of an array, we could also use a generic, "duck-typed"
>> javascript object:
>> fillStyle = {r:0, g:0.3, b: 0.6, a:1.0};
>> This would seem a little clearer semantically, I think, since arrays
>> are after all supposed to represent a list of semantically identical
>> values.
>
>
>




More information about the whatwg mailing list