about summary refs log tree commit diff stats
path: root/geom.lua
Commit message (Collapse)AuthorAgeFilesLines
* audit all assertsKartik K. Agaram2023-11-181-2/+1
| | | | | | | | | | | | | Each one should provide a message that will show up within LÖVE. Stop relying on nearby prints to the terminal. I also found some unnecessary ones. There is some potential here for performance regressions: the format() calls will trigger whether or not the assertion fails, and cause allocations. So far Lua's GC seems good enough to manage the load even with Moby Dick, even in some situations that caused issues in the past like undo.
* stop pretending globals are localKartik K. Agaram2022-07-111-3/+1
| | | | | One advantage of this approach: we don't end up with multiple lexical scopes containing duplicates of the same modules.
* clean upKartik K. Agaram2022-06-171-10/+0
|
* more precise shape selectionKartik K. Agaram2022-06-171-7/+18
| | | | | | | It's important that the error be additive rather than multiplicative, otherwise the area grows asymmetrically along a line. Hopefully freehand drawings will work more intuitively now.
* correct commit f3abc2cbf2Kartik K. Agaram2022-06-171-2/+0
| | | | | | I can't be trusted to do anything without a test. This should fix #5. Please reopen if it doesn't.
* bugfix: checking if a point is on a manhattan lineKartik K. Agaram2022-05-301-1/+19
|
* rectangle and square shapesKartik K. Agaram2022-05-181-1/+23
|
* split keyboard handling between Text and DrawingKartik K. Agaram2022-05-171-3/+3
|
* several more modulesKartik K. Agaram2022-05-171-0/+131
This is probably not ideal; let's see how it goes..