CHORD.BAS November 2002 by Marc Kummel aka Treebeard. Contact mkummel@rain.org, http://www.rain.org/~mkummel/ What is Chord.BAS? -------------------- This is a small program that draws all the chords between up to about 180 points around a circle. By default it colors the lines according to their length, which generates attractive mandalas. The images can be saved as BMP files for easy import into Windows. The trace function shows that it is always possible for any odd number of points to draw all the chords in string art fashion with a single line that ends where it began. This uses the simple algorithm of always going for the next free point in a counter- clockwise direction. Using Trace with a step speed of zero makes the best pictures. I wrote this program to play with my Fifteen Men on the Dead Man's Chest stumper (8 Nov 2002) on my Stumper Web page: . Using CHORD.BAS ----------------- CHORD is a small DOS program. Run it in DOS, or a Command session in Windows. You can save the images as BMP files and then use or edit them in Windows. The Files: ----------- I wrote this program to solve a stumper. You'll have to study the source code for more info. I wrote it using MS Basic PDS v7.10, but it should work with any version of QBasic, QuickBasic, or PDF. CHORD.EXE DOS executible to partition a number CHORD.BAS BASIC source code README.TXT This file TBVAULT.TXT Treebeard's Basic Vault info 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! If you find this program or code useful, then let me know what you do with it, as a courtesy to a fellow programmer who still hacks for fun and glory. Any suggestions or comments will be much appreciated. Send comments and fixes to: Marc Kummel aka Treebeard mkummel@rain.org http://www.rain.org/~mkummel/ http://www.treebeard.org/ For more interesting Basic software with source code, check out Treebeard's Basic Vault at .