Answered step by step
Verified Expert Solution
Link Copied!

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 : 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

8. Demonstrate aspects of assessing group performance

Answered: 1 week ago