Jump to content
KingKong

scar returns wrong color?

Recommended Posts

I don't know if its done on purpose but simba(and scar) return the wrong integer color values. Eg: I pick a color from the rs screen and the pixel has rgb values of (123, 122, 121). The integer color value of this pixel should be 8092281(hex value of 7B7A79), but simba(and scar) return 7961211(rgb value of 121, 122, 123. Which means the red and blue values are swapped).

 

This is the same from this thread:

http://villavu.com/forum/showthread.php?t=69568

Link to comment
Share on other sites

If you go here: http://drpeterjones.com/colorcalc/ and enter the rgb values of r = 255, g = 0, b = 0, and then use the color picker, the color value is 255, but if you go here: http://www.shodor.org/stella2java/rgbint.html and enter the same rgb values the answer is 16711680(hex of 0xff0000). So one of them is wrong, either the getpixel() from windows api is wrong or every single online color converter is wrong. I can't figure out which one.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...