quil

dabrazhe 2023-01-19T12:14:46.664619Z

Hi all. Is there a way to swap the coordinate Y, so that 0 will be in the lower left corner of the drawing, increasing upwards?

genmeblog 2023-01-19T12:42:20.603399Z

Yes, but it's tricky. First (translate 0 height) then call (scale 1.0 -1.0) to flip over x axis.

genmeblog 2023-01-19T12:46:16.805329Z

There will be issue with text, all printed letters will be upside down. So you have to revert translation/scaling and calculate a position manually.

dabrazhe 2023-01-19T12:48:45.442659Z

I tried using camera, but it fails with an exception that the rendered is not supported

dabrazhe 2023-01-19T12:49:59.880239Z

Thank you for the response. It's a shame is't not a standard setting though. The reversed axis makes it quite hard to reason about math functions

genmeblog 2023-01-19T13:04:51.173249Z

Origin at top-left position and y-axis going down is typical in 2d graphics (any framework) since ages. I got used to it personally.

✔️ 1