Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+7 votes

Rhetorical question (more of a helpful tip, really):

For the challenge part, how can I get my custom Polygon objects in the right places?

asked in CSC201 Spring 2021 by (3.2k points)

1 Answer

+3 votes

There are two basic approaches you can use, that would each get your Polygon roughly centered around the x,y location where the dab of color is supposed to be.

Option 1) create all the points of the Polygon based around x,y coordinates
Option 2) create a polygon centered around 0,0, and then move it to the desired x,y location.

answered by (3.2k points)
...