Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

would this work better than bresenham?

Name: Anonymous 2013-08-08 12:39

function drawline(x0,y0,x1,y1){
dx = x1-x0
dy = y1-y0
len = sqrt(dx*dx+dy*dy)
dx /= len
dy /= len
    for (k=0;k<=len;k++){
        paint(floor(x0),floor(y0))
        x0 += dx
        y0 += dy
    }
}

Name: Anonymous 2013-08-10 8:52

Infinite compression is possible.
Yeah, if only you can control gravity or nuclear fusion. Your old post has a major flaw: as long as compress the number of a file through a table graph, the table grows longer. You would be just reimplementing DEFLATE.
The representation of any compressed data is proportional to size of data PLUS overhead.
Headers, that is how they are called.
Sorry, Only C is accepted.
Were was that requirement?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List