Also from John Keneally comes an admirably short, yet pleasing graphics prog, which shows what certain 3D mathematical functions look like when they're plotted in 2D, using colour to represent the third dimension. After running the program as it is (and then pressing Esc to break out of it) you could try changing line 30 to one of the following: z = sin(x)*sin(y) z = sin(y)/y*sin(x) z = sin(x*x+y*y)Or, if you know how to, you can try any other such function. Not bad for a ten line program.| ★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser... |
|
|