feature request: pixel-perfect line mode #1395

Closed
pixeljetstream opened this Issue Jan 17, 2017 · 1 comment

Comments

Projects

Done in Next release

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 added the enhancement label Feb 21, 2017

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

dacap self-assigned this Jun 6, 2017

dacap added to In progress in Next release Jun 22, 2017

dacap closed this in 88e0596 Jun 23, 2017

dacap moved from In progress to Done in Next release Jun 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment