Gingerbreadman fractal map

Dependencies:   mbed

main.cpp

Committer:
JLS
Date:
2010-12-26
Revision:
1:49e438c33468
Parent:
0:eec1e0cd07a1

File content as of revision 1:49e438c33468:

#include "TFT_4DGL.h"

TFT_4DGL lcd(p9,p10,p11);

int main() {
   
    float x = 0.5;
    float y = 3.7;

    int xout = 0;
    int yout = 0;
 
 while (1) {
 
    double oldX = x;
    double oldY = y;
  
    x = 1+abs(oldX)-oldY;
    y = oldX;
    
    xout = 90+(x*28);
    yout = 70+(y*21);
   
    lcd.pixel(yout,xout,WHITE);
  
}
}