[whatwg] canvas colors/gradients/patterns

fillColor and strokeColor should go away in favor of the following:

     fillStyle = colorspec | gradient | pattern
     strokeStyle = colorspec | gradient | pattern
     fill()
     stroke()

     gradient = context.createLinearGradient (startX, startY, endX, endY)
     gradient = context.createRadialGradient (startX, startY, 
startRadius, endX, endY, endRadius);
     gradient.addColorStop (offset, colorspec);

     pattern = context.createPattern (url(), repeat | repeat-x | 
repeat-y | no-repeat)

stuart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3170 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20040817/fb1f380c/attachment.bin>

Received on Tuesday, 17 August 2004 17:01:34 UTC