|
|
|
@ -16,9 +16,9 @@ export interface MonoDisplayDriverOptions { |
|
|
|
* Keep at 1 and use CSS to stretch for crisp upscaling. |
|
|
|
* Keep at 1 and use CSS to stretch for crisp upscaling. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
scale?: number; |
|
|
|
scale?: number; |
|
|
|
/** Default display width for elements without inherent size. Default 160. */ |
|
|
|
/** Default display width for elements without inherent size. Default 120. */ |
|
|
|
displayWidth?: number; |
|
|
|
displayWidth?: number; |
|
|
|
/** Default display height. Default 80. */ |
|
|
|
/** Default display height. Default 60. */ |
|
|
|
displayHeight?: number; |
|
|
|
displayHeight?: number; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Render rate in ticks per second. All animations and scrolls are driven by this. |
|
|
|
* Render rate in ticks per second. All animations and scrolls are driven by this. |
|
|
|
@ -67,8 +67,8 @@ export class MonoDisplayDriver { |
|
|
|
onColor: options.onColor ?? "#ffffff", |
|
|
|
onColor: options.onColor ?? "#ffffff", |
|
|
|
offColor: options.offColor ?? "#000000", |
|
|
|
offColor: options.offColor ?? "#000000", |
|
|
|
scale: options.scale ?? 1, |
|
|
|
scale: options.scale ?? 1, |
|
|
|
displayWidth: options.displayWidth ?? 160, |
|
|
|
displayWidth: options.displayWidth ?? 120, |
|
|
|
displayHeight: options.displayHeight ?? 80, |
|
|
|
displayHeight: options.displayHeight ?? 60, |
|
|
|
fps: options.fps ?? 25, |
|
|
|
fps: options.fps ?? 25, |
|
|
|
loop: options.loop ?? true, |
|
|
|
loop: options.loop ?? true, |
|
|
|
onError: options.onError ?? ((e: Error) => { throw e; }), |
|
|
|
onError: options.onError ?? ((e: Error) => { throw e; }), |
|
|
|
|