Jump to content
Sign in to follow this  

PixelGetColor with MouseClick?

Recommended Posts

Hello again.

Is there a way to get the color of the pixel that you press?

I was thinking something like this.


I realise that that wouldn't work. So.. Is there an easy solution to this problem?

Share this post

Link to post
Share on other sites

couple of ways to do this.

You could write a loop to continously check to see if the primary mouse button has been pressed.

If primary mouse button is clicked, then get mouse position

pixel get color of mouse position

or you could use on event instead of a loop.



My Android cat and mouse game

We're gonna need another Timmy!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...