feature request: pixel-perfect line mode #1395

Closed
pixeljetstream opened this Issue Jan 17, 2017 · 3 comments

Comments

Projects
None yet
2 participants

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).

I've played with a little code myself
https://github.com/pixeljetstream/luajit_gfx_sandbox/blob/master/samples/gl_pixelperfect_line.lua

image

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

pixeljetstream 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

Owner

dacap 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