From 53b0f8a329ddaab71daad4b169f37a2aa37c3bba Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Mon, 21 Feb 2011 18:49:44 +0100 Subject: [PATCH] Update comments about implementing getAverageColor(path). --- src/item/Raster.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/item/Raster.js b/src/item/Raster.js index a6742035..57af7b71 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -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);