[whatwg] canvas colors/gradients/patterns

Stuart Parmenter pavlov at pavlov.net
Tue Aug 17 17:01:34 PDT 2004


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-0001.bin>


More information about the whatwg mailing list