Canvas getpixelcolor

Hi,

I use a canvas and the getpixelcolor function to make a color picker. I put a color wheel as background, but the getpixelcolor function is getting me the wrong colors!

Anyone had experienced the same problem?

I used jpeg, png and gif files.

When I use pictures with pure red, green or blue it does work, but with a color wheel like in the youtube video its not working.

I followed this instruction: https://www.youtube.com/watch?v=NmFJhsq9WPI

Thanks in advance!

Greetings
Chrisu

You could always try this by @Italo

http://ai2.appinventor.mit.edu/?galleryId=4859625112862720#

1 Like

Export your project and post the .aia file?

Hello Chrisu

You can download an example project from my website:

https://www.professorcad.co.uk/appinventorsnippets#CanvasPaintColour

Thanks for your help!

Unfortunately I made a stupid mistake confusing the X and Y axes in the getpixelcolor function. :confused:

Now its working fine! :slight_smile:

Greetings Chrisu

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.