Jump to content

Calculating position of palette's pointer


Sylvek

Recommended Posts

Hello!

I'd like to create my own colorpicker. Just made moving pointer function which was easy but I am writing this topic because there's another worse problem :/. I want to calculate position of this pointer when I enter hex color code to editbox which will be converted to R,G,B and pointer will get updated position by these rgb. I think there's some type of pattern for this function. I know I can just create big loop for about 250.000 pixels but it sounds really stupid. Here's a screen if you need it:

 

HyyzaHA.jpg

 

 

Edited by Sylvek
Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...