(pixelPos)
| 77 | |
| 78 | // returns true if the current pixel's color matches the clicked on color. |
| 79 | matchStartColor(pixelPos) { |
| 80 | var pixelColor = this.getPixelColor(this.colorLayerData, pixelPos); |
| 81 | var v = this.matchClickedColor(pixelColor.r, pixelColor.g, pixelColor.b, pixelColor.a); |
| 82 | return v; |
| 83 | } |
| 84 | |
| 85 | matchClickedColor(r, g, b, a) { |
| 86 | const limit = this.main.params.bucketSensivity; |
no test coverage detected