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: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2013-08-10 9:11

>>33
>Yeah, if only you can control gravity or nuclear fusion
Data compression can be done without the above.
>You would be just reimplementing DEFLATE.
Its like claiming a rocket would re-implement a horse-carriage.
The algorithm isn't about compressing the data, but transforming it into data which can be compressed.
>Were was that requirement?
I'm conducting benchmarks inside a C program. I make the requirements(it must be written in C).
If you don't like it, create your own benchmarks(that would be welcome, and i will have more time to infinite compression research).
>>34
Your post confuses two kinds of information:
http://en.wikipedia.org/wiki/Physical_information
http://en.wikipedia.org/wiki/Digital_data
..and two kinds of entropy
http://en.wikipedia.org/wiki/Entropy
http://en.wikipedia.org/wiki/Entropy_(computing)
When you learn the difference, reread your own post. Ironic now?

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