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

[whatwg] Canvas performance issue: setting colors

From: Oliver Hunt <oliver@apple.com>
Date: Mon, 29 Sep 2008 15:53:30 -0700
Message-ID: <96E89D2A-61B6-40AB-9EB1-4DA3F5B929CC@apple.com>

> I think the canvas api should get 2 new methods:
>  CanvasColor createRGBAColor(in float r, in float g, in float b, in  
> float a)
>  CanvasColor createHSLAColor(in float h, in float s, in float l, in  
> float a)

WebKit already has a non-standard function -- setFillColor(r, g, b, a)  
-- that provides a faster mechanism to set the colour, however we  
believe we can rather easily improve the performance of the standard  
fillStyle, strokeStyle properties and just have not yet gotten round  
to it.  Until we have improved this I would be hesitant to go around  
adding entirely new object types (especially canvas specific ones).

Received on Monday, 29 September 2008 15:53:30 UTC

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