An introduction to LB graphics
Most of my files are hosted at
my 'Diga Me!' site or
Eduweb LB programs
Particularly, there are two *.lsn files which contain or refer to all these graphic programs. graphics.lsn and LBgraphics.zip
The *.lsn files work only on Liberrty Basic, but most programs work on LB or the free Just Basic.
The first thing is to learn how to create a window and graphic area, and put things like lines onto it.
Now we want to call sequences of drawing commands and get things like.
Adding elements of randomness or recursion can produce things like...
The ease of a ddong turtle graphics, first popularised in LOGO, allows easy creation of graphics like these..
Polar coordinates make radially symmetric shapes easy..
Othertimes, we may want a plot closer to how we'd do it on paper or in a spreadsheet.
Sometimes we have a specific purpose. Here I was experimenting with 'super eggs'- solid shapes which balance on their narrow end.
A general plotting program can generate auto-scaling graphs of a function and its gradient.
3D surfaves, where height z is a function of x and y ( or of radius) can produce interesting plots.
Colourful symmetric patterns- kaleidoscopes and cycloids, etc.
Investigating conic sections.
I hope you have as much fun with LB as I have. Many thanks to its developer Carl Gundel.
tenochtitlanuk JohnF April 2010 mr.john.f at gmail.com