Anonymous user
Bitmap/Bresenham's line algorithm: Difference between revisions
Bitmap/Bresenham's line algorithm (view source)
Revision as of 11:36, 31 December 2012
, 11 years agoBetter D entry
(Updated D entry) |
m (Better D entry) |
||
Line 343:
void drawLine(Image img, double x1, double y1,
double x2, double y2, in Color color)
pure nothrow {
immutable steep = abs(y2 - y1) > abs(x2 - x1);
if (steep) {
|