[html5] HTML5 canvas suggestions
Sigurd Lerstad
sigurd.lerstad at gmail.com
Wed May 8 16:02:10 PDT 2013
A few canvas API suggestions:
1)
drawTintedImage(image, tintR, tintG, tintB, tintA, ...)
the rest of the arguments would be the same as for drawImage
What this method does is the same as drawImage, but it multiplies each color
component with the passed rgba values.
A search on google reveals that a lot of people want this feature, but
instead must resort to other slower solutions, like
getImageData/putImageData or drawing three separate images with compositing
of "lighter". I myself also miss this feature.
2)
drawColorTransformedImage(image, colorTransform, ..)
Basically same as above, but instead passes a complete 4x5 colorTransform
(either an array or some kind of ColorMatrix object ?)
--
Sigurd Lerstad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20130509/fbf612f5/attachment-0002.htm>
More information about the Help
mailing list