Skip to content

Instantly share code, notes, and snippets.

View theahmadzai's full-sized avatar
🐞
-_-

Muhammad Javed theahmadzai

🐞
-_-
View GitHub Profile
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;