Basin chaotic map - 640x480 vga
Dependencies: fastlib mbed vga640x480g
main.cpp
- Committer:
- JLS
- Date:
- 2012-03-10
- Revision:
- 0:b4b0ac1d81a2
File content as of revision 0:b4b0ac1d81a2:
#include "mbed.h" #include "vga640x480g.h" int main() { init_vga(); vga_cls(); vga_box(0,0,639,479,WHITE); vga_putstring(10,10,"Basin chaotic map",WHITE); float a = 0.4; float x = 0.1; float y = 0; while(1) { double nx = x; x = nx*y+a*nx-y; y = nx+y; vga_plot(271+(194*x),348+(168*y),WHITE); } }