W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] canvas colors/gradients/patterns

From: Stuart Parmenter <pavlov@pavlov.net>
Date: Tue, 17 Aug 2004 17:01:34 -0700
Message-ID: <41229C5E.7090208@pavlov.net>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC