theraccoon
Programmer
Hi everyone,
I have a project to find the bresenham method for drawing a line, but I can't find one working. The last one I found, is this: (the last one).
But here, putpixel isn't implemented and so I erase it and the programm doesn't give results. What should I do?
And one more thing, how do I call the line method in a main method? I am new to java, so I don't know, I have tried several variables, for start for example line(w1,w2,z1,z2,colour); or line(x,y,x2,y2,color) and at last I have tried to put numbers in it, and it worked(it was compiled) but it didn't give any results.
I hope someone helps me, I 'm desperate!!!!
I have a project to find the bresenham method for drawing a line, but I can't find one working. The last one I found, is this: (the last one).
But here, putpixel isn't implemented and so I erase it and the programm doesn't give results. What should I do?
And one more thing, how do I call the line method in a main method? I am new to java, so I don't know, I have tried several variables, for start for example line(w1,w2,z1,z2,colour); or line(x,y,x2,y2,color) and at last I have tried to put numbers in it, and it worked(it was compiled) but it didn't give any results.
I hope someone helps me, I 'm desperate!!!!