Update comments about implementing getAverageColor(path).

This commit is contained in:
Jonathan Puckey 2011-02-21 18:49:44 +01:00
parent 9324b9918d
commit 53b0f8a329

View file

@ -39,9 +39,9 @@ Raster = Item.extend({
// TODO: drawImage
// TODO: support getAverageColor paramaters: point, rect, path
// TODO: Idea for path: draw the path, then draw the image on top
// with globalCompositeOperation = 'xor' - then resize and count
// values.
// TODO: Idea for getAverageColor(path): set globalCompositeOperation = 'xor',
// then fillRect with black, then draw the path, then draw the image, then
// resize and count values.
getAverageColor: function() {
var size = 32;
var tempCanvas = CanvasProvider.getCanvas(size, size);