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 : The color "magenta" is not recognized. if u use purple that wont work either
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
WindowHeight
Nomaiwin
Open "Graphics" for graphics as #handle
print #handle, "down"
return
fillscreen
print #handle, "fill cyan"
return
flash
for c to
print #handle, "size
print #handle, "color blue"
print #handle, "backcolor blue"
print #handle, "place
print #handle, "ellipse
for t to : next t
if c then goto skipthis
print #handle, "size
print #handle, "color cyan"
print #handle, "backcolor cyan"
print #handle, "place
print #handle, "ellipse
for t to : next t
skipthis
next c
return
addShapes
Draw a static rectangle
print #handle, "color red"
print #handle, "backcolor red"
print #handle, "place
print #handle, "boxfilled
Draw a static circle
print #handle, "color green"
print #handle, "backcolor green"
print #handle, "place
print #handle, "ellipsefilled
Draw points
print #handle, "color yellow"
print #handle, "set
print #handle, "set
Draw a line
print #handle, "color magenta"
print #handle, "place
print #handle, "line
Draw text with TimesNewRoman font
print #handle, "font TimesNewRoman
print #handle, "place
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
