Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
pumperrr333yAll images start top left. I lost my brains on this when I did some image processing in the pat as well
-
Why though? It seems like a reasonable decision to me but then I don’t have much experience.
-
All stems from the fact that CRTs draw from left to right, and top to bottom, which likely stems from the fact we read from left to right, and top to bottom. (CRTs work with scanlines, not co-ordinates, so from that perspective it makes the most sense.)
The graphics memory model was therefore implemented with the same system, and nearly everything since has just stuck with that convention. -
If you think of coordinates as the cartesian coordinate system, it may be counterintuitive because the y axis goes up and 0,0 is at the bottom left (conventionally).
But as others have pointed out, the default flow of everything (including text) is left to right and top to bottom. So the y axis is flipped and the 0,0 origin is at the top left. -
Oh it's bottom left when you import a symbol and oversize it.
So, don't worry, there is no sanity.
Related Rants
Whoever decided that the SVG's default point of origin should be the top left instead of the bottom left can go to hell.
rant
maps
svg
web