EGG.BAS 2 November 1997 by Marc Kummel aka Treebeard. Contact mkummel@rain.org, http://www.rain.org/~mkummel/ About EGG: ------------ This is a program to draw EGGS. I always start the school year in my Science class at Dunn Middle School with an "Opener" topic for a few weeks, and eggs are a favorite. Nothing is more familiar than an egg, but there is much about an egg to wonder at, including its shape. One of my favorite assignments is to show the kids how to draw an ellipse using the classic string and two nails technique. Then I ask them to modify the technique to draw a proper egg that is bigger at one end than the other. The trick is to use multiple loops of string around the nails. I don't help much, and I don't show them this program until they've been working for a while. This program is BIG because it uses my NPF frame routines. This adds lots of ready-made stuff (most not used here), and it let me write an elegant program overnight. The actual egg drawing routines are small. You might find this collection of support routines useful for your own programs. Upzip the archive into a directory and type "EGG" to begin. File List: ------------ The files below the dotted line are source files that can be deleted if you don't need then, but I won't do it for you. EGG.EXE DOS executable EGG.ICO an icon for Win31 VGAOEM.FON Win31 font in case it's not on your system README.TXT this file TBVAULT.TXT about Treebeard's Basic Vault ------------ EGG03.MAK file list for PDS/QB EGG03.BAS source code: main module XQB.BAT batch file to start PDS with source code MAKE.BAT batch file to compile and link from DOS prompt EGG was written for MS Basic PDS 7.10. QB4.5 will probably need some changes. It won't work with QBasic. To use the source code, you will also need the following files from my NPF program archive, also available from Treebeard's Basic Vault at http://www.rain.org/~mkummel/basic. Copy the files to your CURVES directory. The code requires special library routines, EMS sharing, and huge arrays, so start PDS with /L TBLIB and /ES and /AH options, or use the XQB.BAT batch file. The required files are: NPSUP.BI include file of global declarations and variables GFONT5.BAS code module to use Windows *.FON fonts EMS4.BAS code module to use expanded memory SBSUP16.BAS code module of support routines TBLIB.QLB Quick Library of misc assembler routines TBLIB.LIB Library files for compiling Conditions: ------------- This program and source code are yours to use and modify as you will, but they are offered as freeware with no warranty whatsoever. Give me credit, but do not distribute any changes under my name, or attribute such changes to me in any way. You're on your own! Send comments and fixes to: Marc Kummel aka Treebeard mkummel@rain.org http://www.rain.org/~mkummel/ For more interesting Basic software with source code, check out Treebeard's Basic Vault at http://www.rain.org/~mkummel/basic/ *