'-----------Graphics Tutorial-------------- ' 'To do graphics, you must have the screen in a mode for graphics. 'You basically have few different commands to use: ' 'LINE 'CIRCLE 'PSET 'PAINT ' '------------Lines--------------- 'When making a line you need to put in the X coordinate where you want the 'line to start, and the Y coordinate where you want it to start....Remember 'X is always be for Y, unless using the command LOCATE. The second set of 'numbers is the ending points. Let's say x = 50, and y = 100: 'ie. LINE (x,y)-(x + 10, y), c 'The c = the color that you want to use. after the c you can add a ", B" 'which turns the line into a box. Or you can put a ", BF" at the end, 'That makes a box, and fills it in with the same color. 'Let's try one. CLS 'Clears the Screen SCREEN 13 'Sets the screen to graphics LINE (10, 10)-(100, 10), 4 'Starts at 10,10 and ends at 100,10, with the color red LINE (10, 20)-(100, 50), 15, B 'Makes a box, with white LINE (10, 60)-(100, 100), 1, BF 'Makes a filled in box, with blue END 'Ends this demo, remove this command to go on 'after you learn lines. '------------CIRCLES----------- 'Circles are pretty easy. You just type CIRCLE (x coordinate, y coordinate), (radius) 'Like this: (x = 10, y = 10) 'ie. CIRCLE (x, y), (10)......the center of the circle is at x,y 'Lets try one. CLS 'Clears the screen SCREEN 13 'Set the graphics CIRCLE (10, 10), (10), 4 'Puts the center of the circle on 10,10 'Sets the radius at 10, and the color (4) at red 'To fill in the circle, we use the simply 'command PAINT PAINT (10, 10), 4, 4 'The 4 is the color to fill with (red) and the 'second 4 is the color to fill to (red) END 'Ends this demo, take this command out when 'you have finished with circles. '-------------PSET---------------- 'PSETing is the simplest. It just places a pixel on the screen where ever you 'tell it to. 'ie. PSET (50,50),1 'The 50,50 is the place to put the pixel. The 1 is the color (blue) 'Lets try one: CLS 'Clears the screen SCREEN 13 'Sets the graphics PSET (20, 20), 1 'Puts a pixel (dot) at 20,20 and makes it 'blue (1) END 'This ends the tutorial, but keep reading! '----List of other need-to-knows------- ' screen screen type size how many colors ' 'SCREEN 13 Graphics screen 320X200 256 'SCREEN 12 Graphics screen 320X240 don't know 'SCREEN 0 Text screen 640X480 16 *I think 'SCREEN 9 Graphics screen 640X480 16 *I think 'Colors '0 = black 4 = red 8 = grey 12 = light red '1 = blue 5 = magenta 9 = light blue 13 = light magenta '2 = green 6 = brown 10 = light green 14 = yellow '3 = cyan 7 = white 11 = light cyan 15 = bright white 'Thanks for downloading my tutorial, I hoped it helped you with you graphics. 'If this didn't help e-mail me and I will help you to the best of my ability. 'E-mail: chris@isg-com.com 'Home URL: http://www.isg-com.com/home/webprivate/chris/index.html ' ' Thanks Again, ' Chris Williamson