Draw a star in GW-BASIC

March 10, 2011 at 00:36:46
Specs: Windows XP, 1 GB
hoe can we write a program in BASIC to draw a star

See More: Draw a star in GW-BASIC

Report •

March 10, 2011 at 03:54:29
set graphics mode
draw lines

Report •

March 10, 2011 at 05:58:26
thats not what i ask

Report •

March 10, 2011 at 07:12:10
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...



Report •

Related Solutions

March 10, 2011 at 12:58:49
ace - you still remember - i haven't used interpreted BASIC in over 20 years.

Report •

March 10, 2011 at 13:33:46
Me neither. I think the opp wanted you to get all of the vector points to draw a star for him. Probably a homework project.

Report •

Ask Question