mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Update comments about implementing getAverageColor(path).
This commit is contained in:
parent
9324b9918d
commit
53b0f8a329
1 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ Raster = Item.extend({
|
||||||
// TODO: drawImage
|
// TODO: drawImage
|
||||||
|
|
||||||
// TODO: support getAverageColor paramaters: point, rect, path
|
// TODO: support getAverageColor paramaters: point, rect, path
|
||||||
// TODO: Idea for path: draw the path, then draw the image on top
|
// TODO: Idea for getAverageColor(path): set globalCompositeOperation = 'xor',
|
||||||
// with globalCompositeOperation = 'xor' - then resize and count
|
// then fillRect with black, then draw the path, then draw the image, then
|
||||||
// values.
|
// resize and count values.
|
||||||
getAverageColor: function() {
|
getAverageColor: function() {
|
||||||
var size = 32;
|
var size = 32;
|
||||||
var tempCanvas = CanvasProvider.getCanvas(size, size);
|
var tempCanvas = CanvasProvider.getCanvas(size, size);
|
||||||
|
|
Loading…
Reference in a new issue