W3C home > Mailing lists > Public > public-html-comments@w3.org > April 2012

Re: globalAlpha messing me up

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 3 Apr 2012 02:18:58 +0000 (UTC)
To: Jason H <scorp1us@yahoo.com>
cc: "public-html-comments@w3.org" <public-html-comments@w3.org>
Message-ID: <Pine.LNX.4.64.1204030147330.22654@ps20323.dreamhostps.com>
On Tue, 27 Mar 2012, Jason H wrote:
> I am attempting to port an existing canvas system to HTML5. You may have 
> heard of it, its called Qt. Qt has a highly-evolved drawing API that I 
> think you should just copy because it's open source, optimized and 
> proven.
> 1. Anyway, the specific thing that is currently giving my grief is 
> globalAlpha. This should be split into strokeAlpha and fillAlpha. Now 
> because of this lack of separation, I always have to put out the alpha 
> before any stroke or fill command. And actually, I'm going to write out 
> all the stroke and fill properties.

Since this part is already widely implemented, I doubt we will change it 
at this stage.

> 2. Additionally I would suggest accepting colors in AARRGGBB format, 
> which would set the alphas accordingly.

We just use the CSS syntax, so I recommend approaching the CSSWG about 

> 3. The other thing that annoys me is "strokeStyle" actually has no style 
> associated with it. In Qt land, this comes out to be able to specify 
> various dash-dottings. Really, strokeStyle is strokeColor. And the same 
> thing goes for fills.

I've added dashes to the API:


Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 3 April 2012 02:19:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:28 UTC