Answer the question
In order to leave comments, you need to log in
How can I assign one color to the fill of a Rect and another color to its border?
I didn't find any mention of border color for Rect and I'm not sure if it's possible in paygame, but maybe you know something?
pg.draw.rect(self.screen, self.new_color, self.rect, width=5)
Answer the question
In order to leave comments, you need to log in
There is no way to specify a separate color for the border?
Do you really have to do two passes through the loop?
first make blocks, say 100px, then draw smaller blocks on top of them, let's say if the frame needs 10px, then draw 90px blocks and place them on top of the bottom
Surface or Rect?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question