This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Bresenham implements Drawer<BufferedImage2D> { | |
@Override | |
public void line (BufferedImage2D target, int x1, int y1, int x2, int y2, int color) { | |
int x, y; | |
int dx, dy; | |
int incx, incy; | |
int balance; | |
if (x2 >= x1) { | |
dx = x2 - x1; |