How do I pic color

Get help using Construct 2

Post » Sun Apr 12, 2015 9:45 am

Hi!

i would like to pick yhe color of a point with x,y coordinates, in the screen of my project, by programming.

and with the extract of the rgb values, i will color an other sprite.


i search a plugin or behavior to extract the RGB values of a point.

thanks for help,
Dahu
B
9
S
1
Posts: 72
Reputation: 631

Post » Sun Apr 12, 2015 10:33 am

R0J0hound's Canvas plugin has a 'rgbaAt' condition that may be what you are looking for.

https://www.scirra.com/forum/plugin-canvas_t64239?&hilit=canvas
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
74
Posts: 5,144
Reputation: 52,693

Post » Sun Apr 19, 2015 8:33 am

thank's !
Whenever, i search how to color a sprtite or a canvas by using variables for rgb. Example: RGB(a,b,c).
Dahu
B
9
S
1
Posts: 72
Reputation: 631

Post » Sun Apr 19, 2015 3:03 pm

Getting a pixel colour is fine. Getting multiple pixel colours will affect performance. Especially for larger areas.

As suggested by zenox98, R0J0's canvas will work for getting the colour. Then use Pode's behaviour for recolouring a sprite
B
15
S
5
G
7
Posts: 877
Reputation: 5,650


Return to How do I....?

Who is online

Users browsing this forum: JaisonAntoniazzi, Yahoo [Bot] and 9 guests