Fractal-Dream chaotic map

Revision:
0:e3b298a12eea
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jan 17 21:44:09 2011 +0000
@@ -0,0 +1,34 @@
+#include "TFT_4DGL.h"
+
+TFT_4DGL lcd(p9,p10,p11);
+
+int main() {
+   
+    double  a,b,c,d,x,y,xa,ya;
+
+    int xout = 0;
+    int yout = 0;
+    
+    a = -0.966918;
+    b = 2.879879;
+    c = 0.765145;
+    d = 0.744728;
+
+    xa = 0.1;
+    ya = 0.1;
+    
+ 
+ while (1) {
+ 
+    x = sin(ya*b)+c*sin(xa*b);
+    y = sin(xa*a)+d*sin(ya*a);
+  
+    xout = 120+(x*60);
+    yout = 160+(y*95);
+   
+    lcd.pixel(xout,yout,WHITE);
+    
+    xa = x;
+    ya = y;
+}
+}
\ No newline at end of file