Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wollw
on Aug 8, 2012
|
parent
|
context
|
favorite
| on:
The Beauty of Bresenham's Algorithm
I doubt anyone here really needs it but here's a C program that demonstrates all three functions in a terminal. Just making a global array and a macro for setPixel is enough to play with these and is really pretty much all I did.
https://gist.github.com/3291916
dag11
on Aug 8, 2012
[–]
To save you guys the time of running the code yourself, here's the output in codepad.org:
http://codepad.org/y7fIoHlm
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://gist.github.com/3291916