prog8/examples/test.p8

21 lines
340 B
Plaintext
Raw Normal View History

%import math
2024-10-27 20:50:48 +00:00
%import textio
%option no_sysinit
2024-10-27 20:50:48 +00:00
%zeropage basicsafe
2024-10-18 20:22:34 +00:00
main {
sub start() {
ubyte v1 = 100
ubyte v2 = 200
for cx16.r0L in 0 to 255 step 16 {
txt.print_ub(math.lerp(v1, v2, cx16.r0L))
txt.nl()
}
txt.print_ub(math.lerp(v1, v2, 255))
txt.nl()
}
}