Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started