This commit is contained in:
James Babcock committed 2026-05-12 12:41:52 -07:00
1 parent adb93ae441
commit bcb162ecaf
8 files changed
+214 -392

No files matched your search

+6
View File
@@ -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));
}