forked from Blendman974/faceclaw
Refactor
This commit is contained in:
1 parent
adb93ae441
commit
bcb162ecaf
8 files changed
+214
-392
No files matched your search
@@ -42,6 +42,12 @@ export class GrayImage {
|
||||
this.clear(fill);
|
||||
}
|
||||
|
||||
clone(): GrayImage {
|
||||
const clone = new GrayImage(this.width, this.height, 0);
|
||||
clone.pixels.set(this.pixels);
|
||||
return clone;
|
||||
}
|
||||
|
||||
clear(value = 0): void {
|
||||
this.pixels.fill(clampByte(value));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user