diff options
Diffstat (limited to 'app/utils.js')
-rw-r--r-- | app/utils.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/utils.js b/app/utils.js index d401564..53ab424 100644 --- a/app/utils.js +++ b/app/utils.js @@ -5,3 +5,12 @@ export function zeroPad(i) { } return i; } + +export function drawDigit(val, place) { + place.image = `quantifier/${val}.png` + if (val == 1) { + place.width = 11; + } else { + place.width = 18; + } +} |