Computer Science > QUESTIONS & ANSWERS > Griffith University 1701ICT CR 1701ICT CR 1701 Code a race track Using P5. Set the background col (All)
Question Code a race track Using P5.js. Set the background colour to green for grass. Draw a thick stroke (e.g. 40 pixels) gray ellipse to represent the road which is 100 pixels high and 200 pixels w ... ide, centred in the canvas. Inside the gray road draw two thin (e.g. 1 pixel thick) yellow lines which are very close to each to represent centre lines on a road. Create two small circles (e.g. 10 pixels diameter) and place them on each side of the road. Animate the angle of the two circles at different speeds, e.g. one circle's angle increments by 1 while the other increments by 2 for each call of the draw() function. race.JPG [Show More]
Last updated: 3 years ago
Preview 1 out of 3 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jun 15, 2021
Number of pages
3
Written in
All
This document has been written for:
Uploaded
Jun 15, 2021
Downloads
0
Views
183
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·