2024-11-01 01:05:48 +00:00
|
|
|
%import math
|
2024-10-27 20:50:48 +00:00
|
|
|
%import textio
|
2024-10-13 17:37:25 +00:00
|
|
|
%option no_sysinit
|
2024-10-27 20:50:48 +00:00
|
|
|
%zeropage basicsafe
|
2024-10-18 20:22:34 +00:00
|
|
|
|
2024-10-07 17:17:37 +00:00
|
|
|
main {
|
2024-10-29 00:09:25 +00:00
|
|
|
|
2024-10-29 21:57:54 +00:00
|
|
|
sub start() {
|
2024-11-01 01:05:48 +00:00
|
|
|
ubyte v1 = 100
|
|
|
|
ubyte v2 = 200
|
2024-10-31 21:19:04 +00:00
|
|
|
|
2024-11-01 01:05:48 +00:00
|
|
|
for cx16.r0L in 0 to 255 step 16 {
|
|
|
|
txt.print_ub(math.lerp(v1, v2, cx16.r0L))
|
|
|
|
txt.nl()
|
2024-10-31 21:19:04 +00:00
|
|
|
}
|
2024-11-01 01:05:48 +00:00
|
|
|
txt.print_ub(math.lerp(v1, v2, 255))
|
|
|
|
txt.nl()
|
2024-10-31 21:19:04 +00:00
|
|
|
}
|
2024-10-29 00:09:25 +00:00
|
|
|
|
2024-09-14 21:17:26 +00:00
|
|
|
}
|