mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Add comment about 1px rectangle in Raster#getAverageColor().
This commit is contained in:
parent
b5e46971f0
commit
5ff3a07b31
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
|
|||
} else if (object.width) {
|
||||
bounds = new Rectangle(object);
|
||||
} else if (object.x) {
|
||||
// Create a rectangle of 1px size around the specified coordinates
|
||||
bounds = Rectangle.create(object.x - 0.5, object.y - 0.5, 1, 1);
|
||||
}
|
||||
// Use a sample size of max 32 x 32 pixels, into which the path is
|
||||
|
|
Loading…
Reference in a new issue