generate first 5 upper case letters (A-E)
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
x ~0.34999999404 y ~0.34999999404 x 0.34999999404 y ~0.34999999404 x 0.300000011921 y ~0.10000000149
|
||||
x ~0.300000011921 y ~0.10000000149 x 0.300000011921 y ~0.10000000149 x ~0.34999999404 y ~0.34999999404
|
||||
x ~0.10000000149 y 1 x 0.20000000298 y 1 x 0.800000011921 y ~0.800000011921
|
||||
x 0.800000011921 y ~0.800000011921 x 0.5 y ~0.800000011921 x ~0.10000000149 y 1
|
||||
x 0.10000000149 y 1 x ~0.20000000298 y 1 x ~0.800000011921 y ~0.800000011921
|
||||
x ~0.800000011921 y ~0.800000011921 x ~0.5 y ~0.800000011921 x 0.10000000149 y 1
|
||||
51
fonts/a.sml
51
fonts/a.sml
@@ -1,51 +0,0 @@
|
||||
structure UpperCaseA =
|
||||
struct
|
||||
fun lerp (startX, startY, drawWidth, drawHeight, windowWidth, windowHeight) : Real32.real vector =
|
||||
let
|
||||
val startX = Real32.fromInt startX
|
||||
val startY = Real32.fromInt startY
|
||||
val endY = windowHeight - startY
|
||||
val startY = windowHeight - (startY + drawHeight)
|
||||
val endX = startX + drawWidth
|
||||
val windowHeight = windowHeight / 2.0
|
||||
val windowWidth = windowWidth / 2.0
|
||||
in
|
||||
#[ (((startX * (1.0 - 0.324999988079)) + (endX * 0.324999988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.324999988079)) + (endY * 0.324999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.675000011921)) + (endX * 0.675000011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.324999988079)) + (endY * 0.324999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.649999976158)) + (endX * 0.649999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.449999988079)) + (endY * 0.449999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.34999999404)) + (endX * 0.34999999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.449999988079)) + (endY * 0.449999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.649999976158)) + (endX * 0.649999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.449999988079)) + (endY * 0.449999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.324999988079)) + (endX * 0.324999988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.324999988079)) + (endY * 0.324999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.449999988079)) + (endX * 0.449999988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.600000023842)) + (endX * 0.600000023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.899999976158)) + (endX * 0.899999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.899999976158)) + (endX * 0.899999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.75)) + (endX * 0.75)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.449999988079)) + (endX * 0.449999988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.550000011921)) + (endX * 0.550000011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.40000000596)) + (endX * 0.40000000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.0999999940395)) + (endX * 0.0999999940395)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.0999999940395)) + (endX * 0.0999999940395)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.25)) + (endX * 0.25)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.550000011921)) + (endX * 0.550000011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0
|
||||
]
|
||||
end
|
||||
end
|
||||
@@ -1,4 +0,0 @@
|
||||
x 0.200000107288 y 0.900000035763 x 0.400000065565 y 0.900000035763 x 0.400000065565 y 0.299999952316
|
||||
x 0.200000107288 y 0.299999952316 x 0.400000065565 y 0.299999952316 x 0.200000107288 y 0.900000035763
|
||||
x ~0.199999973178 y 0.299999952316 x ~0.399999946356 y 0.299999952316 x ~0.399999946356 y 0.900000035763
|
||||
x ~0.199999973178 y 0.900000035763 x ~0.399999946356 y 0.900000035763 x ~0.199999973178 y 0.299999952316
|
||||
@@ -1,22 +0,0 @@
|
||||
x 0.0666666179895 y ~0.653333246708 x 0.0399999469519 y ~0.626666605473 x 0.0399999469519 y ~0.653333246708
|
||||
x ~0.0666666179895 y ~0.653333246708 x ~0.0400000661612 y ~0.653333246708 x ~0.0400000661612 y ~0.626666605473
|
||||
x 0 y ~0.61333334446 x 0.0266666710377 y ~0.61333334446 x 0.0266666710377 y ~0.626666605473
|
||||
x ~0.0266666710377 y ~0.626666605473 x ~0.0266666710377 y ~0.61333334446 x 0 y ~0.61333334446
|
||||
x 0.0666666179895 y ~0.759999930859 x 0.0666666179895 y ~0.746666550636 x ~0.0666666179895 y ~0.746666550636
|
||||
x ~0.0666666179895 y ~0.746666550636 x ~0.0666666179895 y ~0.759999930859 x 0.0666666179895 y ~0.759999930859
|
||||
x 0.0266666710377 y ~0.786666631699 x 0.0266666710377 y ~0.773333251476 x ~0.0266666710377 y ~0.773333251476
|
||||
x ~0.0266666710377 y ~0.773333251476 x ~0.0266666710377 y ~0.786666631699 x 0.0266666710377 y ~0.786666631699
|
||||
x ~0.0750000029802 y ~0.725000023842 x ~0.0750000029802 y ~0.75 x ~0.0500000007451 y ~0.75
|
||||
x ~0.0500000007451 y ~0.649999976158 x ~0.0750000029802 y ~0.649999976158 x ~0.0750000029802 y ~0.675000011921
|
||||
x ~0.0250000003725 y ~0.625 x ~0.0500000007451 y ~0.625 x ~0.0500000007451 y ~0.649999976158
|
||||
x 0.0500000007451 y ~0.649999976158 x 0.0500000007451 y ~0.625 x 0.0250000003725 y ~0.625
|
||||
x 0.0750000029802 y ~0.675000011921 x 0.0750000029802 y ~0.649999976158 x 0.0500000007451 y ~0.649999976158
|
||||
x 0.0500000007451 y ~0.75 x 0.0750000029802 y ~0.75 x 0.0750000029802 y ~0.725000023842
|
||||
x 0.0250000003725 y ~0.774999976158 x 0.0500000007451 y ~0.774999976158 x 0.0500000007451 y ~0.75
|
||||
x ~0.0500000007451 y ~0.774999976158 x ~0.0500000007451 y ~0.75 x ~0.0250000003725 y ~0.774999976158
|
||||
x 0 y ~0.600000023842 x ~0.100000046194 y ~0.700000107288 x 0 y ~0.800000011921
|
||||
x 0 y ~0.800000011921 x 0.100000046194 y ~0.700000107288 x 0 y ~0.600000023842
|
||||
x 0.10000000149 y ~0.40000000596 x 0.20000000298 y 0.5 x ~0.20000000298 y 0.5
|
||||
x ~0.20000000298 y 0.5 x ~0.10000000149 y ~0.40000000596 x 0.10000000149 y ~0.40000000596
|
||||
x ~0.20000000298 y 0.5 x 0.20000000298 y 0.5 x 0.20000000298 y 1
|
||||
x ~0.20000000298 y 1 x 0.20000000298 y 1 x ~0.20000000298 y 0.5
|
||||
@@ -1,147 +0,0 @@
|
||||
structure ExclamationMark =
|
||||
struct
|
||||
fun lerp (startX, startY, drawWidth, drawHeight, windowWidth, windowHeight) : Real32.real vector =
|
||||
let
|
||||
val startX = Real32.fromInt startX
|
||||
val startY = Real32.fromInt startY
|
||||
val endY = windowHeight - startY
|
||||
val startY = windowHeight - (startY + drawHeight)
|
||||
val endX = startX + drawWidth
|
||||
val windowHeight = windowHeight / 2.0
|
||||
val windowWidth = windowWidth / 2.0
|
||||
in
|
||||
#[ (((startX * (1.0 - 0.533333301544)) + (endX * 0.533333301544)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.173333376646)) + (endY * 0.173333376646)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.519999980927)) + (endX * 0.519999980927)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.186666697264)) + (endY * 0.186666697264)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.519999980927)) + (endX * 0.519999980927)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.173333376646)) + (endY * 0.173333376646)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.466666698456)) + (endX * 0.466666698456)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.173333376646)) + (endY * 0.173333376646)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.479999959469)) + (endX * 0.479999959469)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.173333376646)) + (endY * 0.173333376646)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.479999959469)) + (endX * 0.479999959469)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.186666697264)) + (endY * 0.186666697264)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.5)) + (endX * 0.5)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.19333332777)) + (endY * 0.19333332777)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.513333320618)) + (endX * 0.513333320618)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.19333332777)) + (endY * 0.19333332777)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.513333320618)) + (endX * 0.513333320618)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.186666697264)) + (endY * 0.186666697264)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.486666679382)) + (endX * 0.486666679382)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.186666697264)) + (endY * 0.186666697264)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.486666679382)) + (endX * 0.486666679382)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.19333332777)) + (endY * 0.19333332777)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.5)) + (endX * 0.5)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.19333332777)) + (endY * 0.19333332777)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.533333301544)) + (endX * 0.533333301544)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.120000034571)) + (endY * 0.120000034571)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.533333301544)) + (endX * 0.533333301544)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.126666724682)) + (endY * 0.126666724682)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.466666698456)) + (endX * 0.466666698456)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.126666724682)) + (endY * 0.126666724682)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.466666698456)) + (endX * 0.466666698456)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.126666724682)) + (endY * 0.126666724682)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.466666698456)) + (endX * 0.466666698456)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.120000034571)) + (endY * 0.120000034571)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.533333301544)) + (endX * 0.533333301544)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.120000034571)) + (endY * 0.120000034571)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.513333320618)) + (endX * 0.513333320618)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.106666684151)) + (endY * 0.106666684151)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.513333320618)) + (endX * 0.513333320618)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.113333374262)) + (endY * 0.113333374262)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.486666679382)) + (endX * 0.486666679382)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.113333374262)) + (endY * 0.113333374262)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.486666679382)) + (endX * 0.486666679382)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.113333374262)) + (endY * 0.113333374262)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.486666679382)) + (endX * 0.486666679382)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.106666684151)) + (endY * 0.106666684151)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.513333320618)) + (endX * 0.513333320618)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.106666684151)) + (endY * 0.106666684151)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.46250000596)) + (endX * 0.46250000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.137499988079)) + (endY * 0.137499988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.46250000596)) + (endX * 0.46250000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.125)) + (endY * 0.125)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.47499999404)) + (endX * 0.47499999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.125)) + (endY * 0.125)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.47499999404)) + (endX * 0.47499999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.175000011921)) + (endY * 0.175000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.46250000596)) + (endX * 0.46250000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.175000011921)) + (endY * 0.175000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.46250000596)) + (endX * 0.46250000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.16249999404)) + (endY * 0.16249999404)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.487500011921)) + (endX * 0.487500011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.1875)) + (endY * 0.1875)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.47499999404)) + (endX * 0.47499999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.1875)) + (endY * 0.1875)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.47499999404)) + (endX * 0.47499999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.175000011921)) + (endY * 0.175000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.524999976158)) + (endX * 0.524999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.175000011921)) + (endY * 0.175000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.524999976158)) + (endX * 0.524999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.1875)) + (endY * 0.1875)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.512499988079)) + (endX * 0.512499988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.1875)) + (endY * 0.1875)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.537500023842)) + (endX * 0.537500023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.16249999404)) + (endY * 0.16249999404)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.537500023842)) + (endX * 0.537500023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.175000011921)) + (endY * 0.175000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.524999976158)) + (endX * 0.524999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.175000011921)) + (endY * 0.175000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.524999976158)) + (endX * 0.524999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.125)) + (endY * 0.125)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.537500023842)) + (endX * 0.537500023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.125)) + (endY * 0.125)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.537500023842)) + (endX * 0.537500023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.137499988079)) + (endY * 0.137499988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.512499988079)) + (endX * 0.512499988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.112500011921)) + (endY * 0.112500011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.524999976158)) + (endX * 0.524999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.112500011921)) + (endY * 0.112500011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.524999976158)) + (endX * 0.524999976158)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.125)) + (endY * 0.125)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.47499999404)) + (endX * 0.47499999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.112500011921)) + (endY * 0.112500011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.47499999404)) + (endX * 0.47499999404)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.125)) + (endY * 0.125)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.487500011921)) + (endX * 0.487500011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.112500011921)) + (endY * 0.112500011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.5)) + (endX * 0.5)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.199999988079)) + (endY * 0.199999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.449999988079)) + (endX * 0.449999988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.149999946356)) + (endY * 0.149999946356)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.5)) + (endX * 0.5)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.5)) + (endX * 0.5)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.0999999940395)) + (endY * 0.0999999940395)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.550000011921)) + (endX * 0.550000011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.149999946356)) + (endY * 0.149999946356)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.5)) + (endX * 0.5)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.199999988079)) + (endY * 0.199999988079)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.550000011921)) + (endX * 0.550000011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.300000011921)) + (endY * 0.300000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.600000023842)) + (endX * 0.600000023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.75)) + (endY * 0.75)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.40000000596)) + (endX * 0.40000000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.75)) + (endY * 0.75)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.40000000596)) + (endX * 0.40000000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.75)) + (endY * 0.75)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.449999988079)) + (endX * 0.449999988079)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.300000011921)) + (endY * 0.300000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.550000011921)) + (endX * 0.550000011921)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.300000011921)) + (endY * 0.300000011921)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.40000000596)) + (endX * 0.40000000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.75)) + (endY * 0.75)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.600000023842)) + (endX * 0.600000023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.75)) + (endY * 0.75)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.600000023842)) + (endX * 0.600000023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.40000000596)) + (endX * 0.40000000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.600000023842)) + (endX * 0.600000023842)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 1.0)) + (endY * 1.0)) / windowHeight) - 1.0,
|
||||
(((startX * (1.0 - 0.40000000596)) + (endX * 0.40000000596)) / windowWidth) - 1.0,
|
||||
(((startY * (1.0 - 0.75)) + (endY * 0.75)) / windowHeight) - 1.0
|
||||
]
|
||||
end
|
||||
end
|
||||
@@ -1,10 +0,0 @@
|
||||
x ~0.699999988079 y 0.299999952316 x 0.900000095367 y 0.299999952316 x 0.900000095367 y 0.5
|
||||
x 0.900000095367 y 0.5 x ~0.699999988079 y 0.5 x ~0.699999988079 y 0.299999952316
|
||||
x 0.700000107288 y ~0.200000107288 x 0.700000107288 y ~0.400000065565 x ~0.900000035763 y ~0.400000065565
|
||||
x ~0.900000035763 y ~0.400000065565 x ~0.900000035763 y ~0.200000107288 x 0.700000107288 y ~0.200000107288
|
||||
x 0.300000011921 y ~0.800000011921 x 0.100000053644 y ~0.800000011921 x 0.600000023842 y 0.900000035763
|
||||
x 0.800000011921 y 0.900000035763 x 0.600000023842 y 0.900000035763 x 0.300000011921 y ~0.800000011921
|
||||
x ~0.099999986589 y 0.900000035763 x ~0.599999964237 y ~0.800000011921 x ~0.800000011921 y ~0.800000011921
|
||||
x ~0.800000011921 y ~0.800000011921 x ~0.299999952316 y 0.900000035763 x ~0.099999986589 y 0.900000035763
|
||||
x ~0.800000011921 y ~0.800000011921 x ~0.800000011921 y ~0.800000011921 x ~0.199999973178 y 1
|
||||
x ~0.800000011921 y ~0.800000011921 x ~0.5 y 1 x ~0.800000011921 y ~0.800000011921
|
||||
8
fonts/upper-case-a.dsc
Normal file
8
fonts/upper-case-a.dsc
Normal file
@@ -0,0 +1,8 @@
|
||||
x ~0.272727310658 y ~0.272727310658 x 0.272727310658 y ~0.272727310658 x 0.272727310658 y ~0.0909090563655
|
||||
x 0.272727310658 y ~0.0909090563655 x ~0.272727310658 y ~0.0909090563655 x ~0.272727310658 y ~0.272727310658
|
||||
x 0.454545408487 y ~0.818181753159 x 0.454545408487 y 0.454545468092 x 0.272727310658 y 0.454545468092
|
||||
x 0.272727310658 y 0.454545468092 x 0.272727310658 y ~0.818181753159 x 0.454545408487 y ~0.818181753159
|
||||
x ~0.454545468092 y ~0.818181753159 x ~0.454545468092 y 0.454545468092 x ~0.272727310658 y 0.454545468092
|
||||
x ~0.272727310658 y 0.454545468092 x ~0.272727310658 y ~0.818181753159 x ~0.454545468092 y ~0.818181753159
|
||||
x 0.272727310658 y 0.454545468092 x 0.272727310658 y 0.636363625526 x ~0.272727310658 y 0.636363625526
|
||||
x ~0.272727310658 y 0.636363625526 x ~0.272727310658 y 0.454545468092 x 0.272727310658 y 0.454545468092
|
||||
12
fonts/upper-case-b.dsc
Normal file
12
fonts/upper-case-b.dsc
Normal file
@@ -0,0 +1,12 @@
|
||||
x 0.454545408487 y ~0.636363506317 x 0.272727310658 y ~0.636363506317 x 0.272727310658 y ~0.0909090563655
|
||||
x 0.272727310658 y ~0.0909090563655 x 0.454545408487 y ~0.0909090563655 x 0.454545408487 y ~0.636363506317
|
||||
x ~0.272727310658 y ~0.0909090563655 x ~0.272727310658 y 0.0909091234207 x 0.272727310658 y 0.0909091234207
|
||||
x 0.272727310658 y 0.0909091234207 x 0.272727310658 y ~0.0909090563655 x ~0.272727310658 y ~0.0909090563655
|
||||
x 0.454545408487 y 0.0909091234207 x 0.454545408487 y 0.454545468092 x 0.272727310658 y 0.454545468092
|
||||
x 0.272727310658 y 0.454545468092 x 0.272727310658 y 0.0909091234207 x 0.454545408487 y 0.0909091234207
|
||||
x 0.272727310658 y 0.454545468092 x ~0.272727310658 y 0.454545468092 x ~0.272727310658 y 0.636363625526
|
||||
x ~0.272727310658 y 0.636363625526 x 0.272727310658 y 0.636363625526 x 0.272727310658 y 0.454545468092
|
||||
x ~0.272727310658 y 0.636363625526 x ~0.272727310658 y ~0.636363506317 x ~0.454545468092 y ~0.636363506317
|
||||
x ~0.454545468092 y ~0.636363506317 x ~0.454545468092 y 0.636363625526 x ~0.272727310658 y 0.636363625526
|
||||
x 0.272727310658 y ~0.636363506317 x ~0.454545468092 y ~0.636363506317 x ~0.454545468092 y ~0.818181753159
|
||||
x ~0.454545468092 y ~0.818181753159 x 0.272727310658 y ~0.818181753159 x 0.272727310658 y ~0.636363506317
|
||||
10
fonts/upper-case-c.dsc
Normal file
10
fonts/upper-case-c.dsc
Normal file
@@ -0,0 +1,10 @@
|
||||
x 0.454545408487 y 0.272727310658 x 0.272727310658 y 0.272727310658 x 0.272727310658 y 0.454545468092
|
||||
x 0.272727310658 y 0.454545468092 x 0.454545408487 y 0.454545468092 x 0.454545408487 y 0.272727310658
|
||||
x 0.272727310658 y 0.636363625526 x 0.272727310658 y 0.454545468092 x ~0.272727310658 y 0.454545468092
|
||||
x ~0.272727310658 y 0.454545468092 x ~0.272727310658 y 0.636363625526 x 0.272727310658 y 0.636363625526
|
||||
x ~0.454545468092 y 0.454545468092 x ~0.272727310658 y 0.454545468092 x ~0.272727310658 y ~0.636363506317
|
||||
x ~0.272727310658 y ~0.636363506317 x ~0.454545468092 y ~0.636363506317 x ~0.454545468092 y 0.454545468092
|
||||
x ~0.272727310658 y ~0.636363506317 x 0.272727310658 y ~0.636363506317 x 0.272727310658 y ~0.818181753159
|
||||
x 0.272727310658 y ~0.818181753159 x ~0.272727310658 y ~0.818181753159 x ~0.272727310658 y ~0.636363506317
|
||||
x 0.272727310658 y ~0.454545408487 x 0.272727310658 y ~0.636363506317 x 0.454545408487 y ~0.636363506317
|
||||
x 0.454545408487 y ~0.636363506317 x 0.454545408487 y ~0.454545408487 x 0.272727310658 y ~0.454545408487
|
||||
12
fonts/upper-case-d.dsc
Normal file
12
fonts/upper-case-d.dsc
Normal file
@@ -0,0 +1,12 @@
|
||||
x 0.454545408487 y 0.272727310658 x 0.272727310658 y 0.272727310658 x 0.272727310658 y ~0.454545408487
|
||||
x 0.272727310658 y ~0.454545408487 x 0.454545408487 y ~0.454545408487 x 0.454545408487 y 0.272727310658
|
||||
x 0.272727310658 y ~0.454545408487 x 0.0909090563655 y ~0.636363506317 x 0.272727310658 y ~0.636363506317
|
||||
x 0.0909090563655 y ~0.636363506317 x 0.0909090563655 y ~0.454545408487 x 0.272727310658 y ~0.454545408487
|
||||
x 0.272727310658 y 0.272727310658 x 0.0909090563655 y 0.272727310658 x 0.0909090563655 y 0.454545468092
|
||||
x 0.0909090563655 y 0.454545468092 x 0.272727310658 y 0.454545468092 x 0.272727310658 y 0.272727310658
|
||||
x 0.0909090563655 y 0.454545468092 x ~0.272727310658 y 0.454545468092 x ~0.272727310658 y 0.636363625526
|
||||
x ~0.272727310658 y 0.636363625526 x 0.0909090563655 y 0.636363625526 x 0.0909090563655 y 0.454545468092
|
||||
x 0.0909090563655 y ~0.636363506317 x ~0.272727310658 y ~0.636363506317 x ~0.272727310658 y ~0.818181753159
|
||||
x ~0.272727310658 y ~0.818181753159 x 0.0909090563655 y ~0.818181753159 x 0.0909090563655 y ~0.636363506317
|
||||
x ~0.272727310658 y 0.636363625526 x ~0.272727310658 y ~0.818181753159 x ~0.454545468092 y ~0.818181753159
|
||||
x ~0.454545468092 y ~0.818181753159 x ~0.454545468092 y 0.636363625526 x ~0.272727310658 y 0.636363625526
|
||||
8
fonts/upper-case-e.dsc
Normal file
8
fonts/upper-case-e.dsc
Normal file
@@ -0,0 +1,8 @@
|
||||
x ~0.272727310658 y 0.636363625526 x ~0.272727310658 y 0.454545468092 x 0.454545408487 y 0.454545468092
|
||||
x ~0.272727310658 y 0.636363625526 x 0.454545408487 y 0.636363625526 x 0.454545408487 y 0.454545468092
|
||||
x ~0.272727310658 y ~0.0909090563655 x ~0.272727310658 y 0.0909091234207 x 0.272727310658 y 0.0909091234207
|
||||
x ~0.272727310658 y ~0.0909090563655 x 0.272727310658 y 0.0909091234207 x 0.272727310658 y ~0.0909090563655
|
||||
x ~0.454545468092 y ~0.636363506317 x ~0.272727310658 y ~0.636363506317 x ~0.272727310658 y 0.636363625526
|
||||
x ~0.454545468092 y ~0.636363506317 x ~0.454545468092 y 0.636363625526 x ~0.272727310658 y 0.636363625526
|
||||
x 0.454545408487 y ~0.636363506317 x 0.454545408487 y ~0.818181753159 x ~0.454545468092 y ~0.818181753159
|
||||
x ~0.454545468092 y ~0.818181753159 x ~0.454545468092 y ~0.636363506317 x 0.454545408487 y ~0.636363506317
|
||||
@@ -2,7 +2,7 @@ structure Constants =
|
||||
struct
|
||||
val windowWidth = 1000
|
||||
val windowHeight = 900
|
||||
val initialNumClickPoints = 26
|
||||
val initialNumClickPoints = 11
|
||||
|
||||
val graphVertexShaderString =
|
||||
"#version 300 es\n\
|
||||
|
||||
@@ -10,9 +10,9 @@ struct
|
||||
|
||||
datatype parse_result = OK of AppType.triangle list | PARSE_ERROR
|
||||
|
||||
val structureName = "UpperCaseA"
|
||||
val filename = "fonts/a.dsc"
|
||||
val exportFilename = "fonts/a.sml"
|
||||
val structureName = "UpperCaseF"
|
||||
val filename = "fonts/upper-case-f.dsc"
|
||||
val exportFilename = "fonts/upper-case-f.sml"
|
||||
|
||||
fun ndcToLerpX num =
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user