Latest OxygenBasic.zip at GitHub (Click on the Wizard)
0 Members and 1 Guest are viewing this topic.
import japi.basj_startwin = j_frame("Peter's Butterfly")can = j_canvas(win, 640, 480)j_pack(win)j_show(win)x = 0.0y = 20.0z = 20.0while obj <> win xx = x + 0.01 * ( -10.0 * x + 10.0 * y) yy = y + 0.01 * ( 28.0 * x - y - x * z ) zz = z + 0.01 * ( -8.0 * z / 3.0 + x * y ) j_setcolor(can, Rnd(), Rnd(), Rnd()) j_drawline(can, x*10+320, -z*10+500, xx*10+320, -zz*10+500) x = xX y = yY z = zZ obj = j_getaction()wend j_quit
Chaos has already had a lasting effect on science, yet there is much still left to be discovered. Many scientists believe that twentieth century science will be known for only three theories: relativity, quantum mechanics, and chaos.