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

[whatwg] setting canvas colors as array

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Sun, 5 Oct 2008 19:10:34 +0200
Message-ID: <1B71833701E24521A55348B2A44E5EE3@POCZTOWIEC>
Correction: I did not write that.

-----Original Message-----
From: whatwg-bounces@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.
Received on Sunday, 5 October 2008 10:10:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC