Jump to content

PixelGetColor with MouseClick?


cxzzD
 Share

Recommended Posts

Hello again.

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

I was thinking something like this.

PixelGetColor(MouseClick)

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

Link to comment
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.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
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
 Share

  • Recently Browsing   0 members

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