Gingerbreadman fractal map
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "TFT_4DGL.h" 00002 00003 TFT_4DGL lcd(p9,p10,p11); 00004 00005 int main() { 00006 00007 float x = 0.5; 00008 float y = 3.7; 00009 00010 int xout = 0; 00011 int yout = 0; 00012 00013 while (1) { 00014 00015 double oldX = x; 00016 double oldY = y; 00017 00018 x = 1+abs(oldX)-oldY; 00019 y = oldX; 00020 00021 xout = 90+(x*28); 00022 yout = 70+(y*21); 00023 00024 lcd.pixel(yout,xout,WHITE); 00025 00026 } 00027 }
Generated on Sun Jul 31 2022 08:49:39 by
1.7.2
Kamil Ondrousek