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

+6 votes

Hey everyone! I'm trying to finish up the art_viewer.py and I'm stumped on how to go about scaling the coordinates so that the pointillist image fills the entire window. Any tips on how to get it going?

asked in CSC201 Spring 2021 by (1 point)

1 Answer

+6 votes
 
Best answer

You can try ratio = your window size / the image's width/length. Then multiply x and y coordinates by this ratio.

answered by (1 point)
selected by
+1

Oh perfect thank you!

...