Bitmap/Bresenham's line algorithm: Difference between revisions
Content added Content deleted
m (→{{header|Coffeescript}}: Changed language name) |
(Updated D entry) |
||
Line 388: | Line 388: | ||
in size_t x2, in size_t y2, |
in size_t x2, in size_t y2, |
||
in Color color) |
in Color color) |
||
pure nothrow { |
pure nothrow @nogc { |
||
immutable int dx = x2 - x1; |
immutable int dx = x2 - x1; |
||
immutable int ix = (dx > 0) - (dx < 0); |
immutable int ix = (dx > 0) - (dx < 0); |