Question: ( JUST BASIC code only, no python, java, C or C + + . JUST BASIC ONLY!!!!!! ) hello, when I add multiple shapes like

(JUST BASIC code only, no python, java, C or C++. JUST BASIC ONLY!!!!!!) hello, when I add multiple shapes like in this JUST BASIC code, it gives me : 1. The color "magenta" is not recognized. (if u use purple that wont work either)
2. There is a missing CLOSE command for the graphics handle. (I have tried this but it still gave me the same error) Here is my code: gosub [setup]
gosub [fillscreen]
gosub [flash]
gosub [addShapes]
gosub [closewindow]
[setup]
WindowWidth=1280
WindowHeight=760
Nomaiwin
Open "Graphics" for graphics as #handle
print #handle, "down"
return
[fillscreen]
print #handle, "fill cyan"
return
[flash]
for c =1 to 10
print #handle, "size 1"
print #handle, "color blue"
print #handle, "backcolor blue"
print #handle, "place 100200"
print #handle, "ellipse 10050"
for t =1 to 300000 : next t
if c =10 then goto [skipthis]
print #handle, "size 1"
print #handle, "color cyan"
print #handle, "backcolor cyan"
print #handle, "place 1000200"
print #handle, "ellipse 10050"
for t =1 to 30000 : next t
[skipthis]
next c
return
[addShapes]
' Draw a static rectangle
print #handle, "color red"
print #handle, "backcolor red"
print #handle, "place 300300"
print #handle, "boxfilled 150100"
' Draw a static circle
print #handle, "color green"
print #handle, "backcolor green"
print #handle, "place 600400"
print #handle, "ellipsefilled 7575"
' Draw 2 points
print #handle, "color yellow"
print #handle, "set 700500"
print #handle, "set 750550"
' Draw a line
print #handle, "color magenta"
print #handle, "place 400600"
print #handle, "line 2000"
' Draw text with Times_New_Roman font
print #handle, "font Times_New_Roman 20"
print #handle, "place 10050"
print #handle, "Hello, JUST BASIC!"
return
[closewindow]
print #handle, "flush"
wait

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!