2024-07-19 08:53:45 -05:00
|
|
|
frame_buffer := @as(^u8, @bitcast(18446603339442421760))
|
2024-07-19 05:47:59 -05:00
|
|
|
|
2024-06-14 11:48:53 -05:00
|
|
|
main := fn(): int {
|
2024-07-19 08:53:45 -05:00
|
|
|
color := 17
|
2024-07-07 08:35:07 -05:00
|
|
|
loop {
|
2024-07-19 08:53:45 -05:00
|
|
|
len := 786432 * 4 + 1
|
2024-07-07 08:35:07 -05:00
|
|
|
loop if len == 0 break else {
|
|
|
|
fb := frame_buffer + len;
|
2024-07-19 08:53:45 -05:00
|
|
|
*fb = color
|
|
|
|
len -= 1
|
|
|
|
color += len
|
2024-07-07 08:35:07 -05:00
|
|
|
}
|
|
|
|
}
|
2024-07-19 08:53:45 -05:00
|
|
|
return 0
|
2024-05-23 16:59:17 -05:00
|
|
|
}
|