computing
  • 7

Draw a Star In GW-BASIC

  • 7

hoe can we write a program in BASIC to draw a star

Share

1 Answer

  1. Those are the commands you use. Now we don’t know what mode (I like screen 7) you want because you did not specify the number of pixels needed on the screen and we are not going to plot the coordinates for you. You need to get some graphing paper, draw the object on the graphing paper and then plot the vectors for each point so that you can do…

    10 screen 7
    20 line(0,0)(80,0),1

    The first parameter is the (x,y) starting point of your vector and the second parameter is the ending point. The last parameter is the color of the line.

    The reset you will have to do on your own. This should help…

    http://dhurley.com/GW%20BASIC.htm

    http://www.antonis.de/qbebooks/gwba…

    • 0