Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: pixel-perfect line mode #1395

pixeljetstream opened this issue Jan 17, 2017 · 3 comments


Copy link

commented Jan 17, 2017

Currently lines snap to some fixed angles via shift, with pixel perfect mode you would always get the closest line that has a "regular" stepping pattern (increment every N pixels / increment N every pixel).


This comment has been minimized.

Copy link

commented Jan 21, 2017

I've played with a little code myself


you can run the sample from the "runtime" directory of the repository via "luajit ../samples/gl_pixelperfect_line.lua"

@dacap dacap added the enhancement label Feb 21, 2017

@dacap dacap added this to the v1.2 milestone Jun 6, 2017

@dacap dacap self-assigned this Jun 6, 2017

@dacap dacap closed this in 88e0596 Jun 23, 2017


This comment has been minimized.

Copy link

commented Dec 29, 2017

@dacap could it be what was implemented is not what this feature request is about? At least 1.2.6 still only allows a few directions with angle snapping, instead of many more. Ideally the line tool gets the "pixel perfect" checkbox that the brush tool has, which then would enable this line snapping permanently instead of using shift. Feel free to derive from the code I provided in the above sample


This comment has been minimized.

Copy link

commented Dec 30, 2017

Yeah, the line algorithm was fixed but it still needs more angle snapping (new issue #1641 same as this I guess)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.