fix: blink config

pull/1/head
flop 4 weeks ago
parent ec21555d3a
commit 2e102dbba2
  1. 22
      ts/index.html

@ -135,16 +135,18 @@
label: "Blink (animation)", label: "Blink (animation)",
make() { make() {
return new MonoDisplayFile({ return new MonoDisplayFile({
elements_always: [{ elements_always: {
type: ElementType.Animation, flags: { drawFront: true, clearBuffer: true },
width: W, height: H, elements: [{
// updateInterval: 0 = advance every tick (25fps → ~400ms/frame at fps=25 with 2 frames) type: ElementType.Animation,
updateInterval: 12, // every 13 ticks ≈ 500ms per frame at 25fps width: W, height: H,
frames: [ updateInterval: 12, // every 13 ticks ≈ 500ms per frame at 25fps
{ pixels: new Uint8Array(W * H).fill(1) }, frames: [
{ pixels: new Uint8Array(W * H).fill(0) }, { pixels: new Uint8Array(W * H).fill(1) },
], { pixels: new Uint8Array(W * H).fill(0) },
}], ],
}],
},
}).toBuffer(); }).toBuffer();
}, },
}, },

Loading…
Cancel
Save