Crate ascii_num

source ·
Expand description

Simple library that generates point coordinates for drawing each digit of a decimal number.

For example the digit “2” would return the x/y coordinates for each 2 in the below picture:


..2222
 22  22
    22
   22
 222222

Structs

Functions

Pass in a number. Returns digits in decimal in coordinate form. x grows rightwards. y grows downwards. one unit is one ascii character.
Create some misc symbols. Look at static strings in the source code to figure out which ones.