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
10
S
3
Posts: 81
Reputation: 828

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
134
S
30
G
84
Posts: 5,375
Reputation: 58,432

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
10
S
3
Posts: 81
Reputation: 828

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: 876
Reputation: 5,650


Return to How do I....?

Who is online

Users browsing this forum: darkrealos and 18 guests