Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dwm/examples/clock/clockNumber.ts

Deno Window Manager: Cross-platform window creation and management
Latest
import * as dwm from "https://deno.land/x/dwm@0.3.6/examples/clock/clockNumber.ts";

Variables

A lookup array of 10 pixel masks(0-9). Each mask(array) represents the pixels of a 4 x 7 matrix of dots that are used to display a 7 segment numeric display. If a value in the mask is set to 1, that position in this display will have a visual dot displayed. A value of 0 will not be displayed.

Functions

Create a new ClockNumber object and initialize its dot array based on the passed in location parameters.

Interfaces

This class creates an array of physical locations that will be used as a 4 x 7 dot matrix. This array will be manipulted to represent a seven segment numeric display. Each dot position will be active or inactive based on a set of numeric 'masks' that represent the numbers 0 to 9