Post Reply 
A simple graphics rectangle? My coordinates are wrong
06-02-2016, 06:42 AM (This post was last modified: 06-02-2016 06:55 AM by StephenG1CMZ.)
Post: #3
RE: A simple graphics rectangle? My coordinates are wrong
(06-02-2016 05:28 AM)cyrille de brĂ©bisson Wrote:  Hello,

RECT_P uses the top left and bottom right (included) coordinates.

Text writing is always strange because characters do not always start on the provided starting point. They are very often shifted by a number of pixels.

Why are you using so many alpha channel values? are you truly trying to have semi transparent colors in your test program?

Cyrille

No, all I wanted was two different colours - I will add in a list of more sensible values for the user to choose later. But first, I want to understand why the final inner rectangle obscures the border - not because of transparency, but the x and y coordinates are not producing what I expected.

If I understand it, the coordinate (255+border,YLEN+border) should not overlap the outer border at (255+2border,YLEN+2border) and overwrite the final border. I think I need to find a bug in my code or understanding.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: A simple graphics rectangle? My coordinates are wrong - StephenG1CMZ - 06-02-2016 06:42 AM



User(s) browsing this thread: 1 Guest(s)