You should be able to use
https://love2d.org/wiki/love.graphics.i ... sformPoint
Something like:
setup_your_transforms()
draw_your_world()
gx, gy = love.graphics.inverseTransformPoint(love.mouse.getX(), love.mouse.getY())
gx, gy should then be coordinates of your (innermost) rectangle.
Search found 6 matches
- Sun May 05, 2019 6:58 am
- Forum: Games and Creations
- Topic: Get mouse coordinates on a rotated "grid"
- Replies: 15
- Views: 22926
- Fri Mar 29, 2019 3:27 pm
- Forum: Libraries and Tools
- Topic: TÖVE - vector graphics for LÖVE [v2.0a3]
- Replies: 7
- Views: 18035
Re: [v2.0a2] TÖVE - vector graphics for LÖVE
I've just released a new alpha version of this (https://github.com/poke1024/tove2d/releases). It fixes various bugs and stabilizes the API. It also adds various new demos.
- Sun Mar 03, 2019 10:26 am
- Forum: Libraries and Tools
- Topic: svg rendering with nanosvg
- Replies: 3
- Views: 11764
Re: svg rendering with nanosvg
This is super elegant.
If you ever need something for meshes, you might want to look at https://github.com/poke1024/tove2d (disclaimer: I'm the author).
If you ever need something for meshes, you might want to look at https://github.com/poke1024/tove2d (disclaimer: I'm the author).
- Fri Jul 27, 2018 7:11 pm
- Forum: Libraries and Tools
- Topic: TÖVE - vector graphics for LÖVE [v2.0a3]
- Replies: 7
- Views: 18035
Re: [v0.1] TÖVE - vector graphics for LÖVE
@ivan There's now a table under https://github.com/poke1024/tove2d which gives you can idea, which features are supported (they are actually very much on par what Unity 2018.2 now has with its experimental SVG support). By the way, how can I add this library to the love2d libraries wiki (https://lov...
- Wed May 23, 2018 9:59 pm
- Forum: Libraries and Tools
- Topic: TÖVE - vector graphics for LÖVE [v2.0a3]
- Replies: 7
- Views: 18035
TÖVE - vector graphics for LÖVE [v2.0a3]
EDIT (April 2019): Hi guys: Detailed API docs are now available :monocle: : https://poke1024.github.io/tove2d-api/ I've also cleaned up the tutorials here: https://poke1024.github.io/tove2d/ Have fun! :) Releases are here: https://github.com/poke1024/tove2d/releases --- Hello there :awesome: TÖVE is...
- Tue May 01, 2018 2:33 pm
- Forum: Support and Development
- Topic: love.graphics.newShader and instances
- Replies: 9
- Views: 4404
love.graphics.newShader and instances
Hi there, I have a rather technical question regarding love.graphics.newShader(): I have the same shader code running in a dozen different variations (with different parameters, configured on each shader instance using shader:send). I wonder if I need to call love.graphics.newShader() every time I n...