Depth effects

This commit is contained in:
James Babcock committed 2026-09-22 10:59:51 -07:00
1 parent 4320021222
commit 392554dd37
26 files changed
+623 -136

No files matched your search

+4
View File
@@ -58,6 +58,10 @@ function ui(fontSize = 12) {
const font = BdfFont.parse(source(`app/fonts/terminus/ter-u${fontSize}n.bdf`));
class RecordingImage extends graphics.GrayImage {
texts = [];
drawMenuSelection(source, x, y, ...args) {
this.texts.push(...source.texts.map(t => ({ ...t, x: t.x + x, y: t.y + y })));
super.drawMenuSelection(source, x, y, ...args);
}
drawText(font, x, y, text, value) {
this.texts.push({ x, y, text });
super.drawText(font, x, y, text, value);