Sign in to follow this  
Followers 0
Nomad

Converting Decimal Color Values?

1 post in this topic

#1 ·  Posted (edited)

PixelGetColor gives the decimal value of a color, which is usually 6-7 digits long.

PixelSearch requires the color you are searching for to be between 0 and 255.

So, how do I convert the decimal value to a value between 0 and 255 so that I can perform a PixelSearch?

I'm not very familiar with color codes, incase you can't tell. :think:

Edit: Oops, I just figured out that the 0-255 number is the shade variation of the "decimal" value, my mistake.

Edited by Nomad

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0