Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array and rectangles
#2
Because you cannot back up and type over the first rectangle, you need to type both rectangles at the same time. For each pixel you print you need to determine if you type a "." or an "o".

Printing more than 1 internal rectangle works the same way except you have to test each pixel against each rectangle. What do you print if a pixel is part of multiple rectangles, the first rectangle or the last?
Reply


Messages In This Thread
Array and rectangles - by pythonuser1 - Apr-24-2020, 12:21 PM
RE: Array and rectangles - by deanhystad - Apr-24-2020, 01:18 PM
RE: Array and rectangles - by pythonuser1 - Apr-24-2020, 03:30 PM
RE: Array and rectangles - by deanhystad - Apr-24-2020, 04:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to generate multiple rectangles with randrange without overlapping? rafaberec 1 1,975 Dec-10-2018, 10:12 AM
Last Post: buran
  printing list of random generated rectangles Zatoichi 8 7,585 Feb-18-2018, 06:34 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020