mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
Simplified require and further linting.
This commit is contained in:
parent
01c1145e28
commit
dcb878392e
15 changed files with 86 additions and 78 deletions
|
@ -27,7 +27,13 @@
|
|||
var index = String.fromCharCode(r, g, b, a);
|
||||
var color = this.colors[index];
|
||||
if (!color){
|
||||
color = {index, color: [r, g, b, a], count: 0, previousColor: this.minBoundary, nextColor: this.minBoundary.nextColor};
|
||||
color = {
|
||||
index,
|
||||
color: [r, g, b, a],
|
||||
count: 0,
|
||||
previousColor: this.minBoundary,
|
||||
nextColor: this.minBoundary.nextColor
|
||||
};
|
||||
this.numberOfColors += 1;
|
||||
this.minBoundary.nextColor = color;
|
||||
color.nextColor.previousColor = color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue