- [WIP] Está tot patas arriba ara...
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
uint16_t ants = 0xc936;
|
||||
float t = 0;
|
||||
|
||||
void loop() {
|
||||
void exception_loop() {
|
||||
//if (t==0) t= time();
|
||||
if (time()-t > 0.25) {
|
||||
t = time();
|
||||
@@ -15,13 +15,13 @@ void loop() {
|
||||
setcolor(1,0xff000000);
|
||||
const int w=scrw();
|
||||
const int h=scrh();
|
||||
set_draw_mode(0);
|
||||
rect(0,0,w,h,1);
|
||||
rect(1,1,w-2,h-2,1);
|
||||
set_draw_mode(1);
|
||||
mini::draw::mode::set(0);
|
||||
mini::draw::rect(0,0,w,h,1);
|
||||
mini::draw::rect(1,1,w-2,h-2,1);
|
||||
mini::draw::mode::set(1);
|
||||
fillp(ants);
|
||||
rect(0,0,w,h,0);
|
||||
rect(1,1,w-2,h-2,0);
|
||||
mini::draw::rect(0,0,w,h,0);
|
||||
mini::draw::rect(1,1,w-2,h-2,0);
|
||||
ants = (ants<<12) | (ants>>4);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user