Reply to Re: FInally! results! - Here Ya' Go
If you don't have an account, just leave the password field blank.
: : : does this look right?
: : : distance between any two points = sqrt((x-x1)^2 * (y-y1)^2 * (z-z1)^2)
: : I'm not sure if your algorithm would work, but your equation is wrong (or at least you typed it wrong). Distance between any two points should be sqrt((x-x1)^2 + (y-y1)^2 + (z-z1)^2).
: Ahuh!! thats where i was going wrong...
: And redink, i trusted the python imaging library... does anyone have a list of colors in RGB format which the palette allows?? i need them in raw format, see?
I just checked esplash.bmp, and it has the same exact pallete as splash.bmp...
But, in reality, the Python imaging library is probably correct... I think you're wrong
I'm guessing you're calling the function to count the colors in the image... neither splash.bmp or esplash.bmp use all 256 colors in the pallete, so you would never get 256 as a return value.
As for the bmp pallete in raw format... just use a hex editor and tada. It isn't too hard
: : : distance between any two points = sqrt((x-x1)^2 * (y-y1)^2 * (z-z1)^2)
: : I'm not sure if your algorithm would work, but your equation is wrong (or at least you typed it wrong). Distance between any two points should be sqrt((x-x1)^2 + (y-y1)^2 + (z-z1)^2).
: Ahuh!! thats where i was going wrong...
: And redink, i trusted the python imaging library... does anyone have a list of colors in RGB format which the palette allows?? i need them in raw format, see?
I just checked esplash.bmp, and it has the same exact pallete as splash.bmp...
But, in reality, the Python imaging library is probably correct... I think you're wrong

As for the bmp pallete in raw format... just use a hex editor and tada. It isn't too hard
