Color Filter? And...

Get help using Construct 2

Post » Sat Dec 31, 2011 3:53 am

I used the color filter a lot in Classic. Are we planning to add this to C2 soon? Or For this thread, How to I apply a color filter to a grey-scale image?

2ndly, where are the x,y coordinates in the sprite/background edit/load/save screen? I really needed those today for object point positioning... Is that something that can be added in next build?
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Sat Dec 31, 2011 3:22 pm

The HTML5 2D canvas doesn't support color filters. WebGL does, but for consistency right now we're trying to stick to features common to both WebGL and canvas 2D. Hopefully it can be added back in future.

More features for the image editor is on the todo list!
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Wed Jan 04, 2012 4:40 am

YEA r74 now has RGB(r,g,b)    YEA!!!!!!!!!!!!!
B
192
S
6
G
7
Posts: 213
Reputation: 10,178

Post » Tue Jan 31, 2012 4:14 am

[QUOTE=Zetar] YEA r74 now has RGB(r,g,b)    YEA!!!!!!!!!!!!![/QUOTE]

How do I use RGB?
I saw it in the release notes but can't figure out how.
B
3
G
1
Posts: 6
Reputation: 687

Post » Tue Jan 31, 2012 8:40 am

@Keska rgb(255,255,255) is white... if it's your question.
Besides @Ashley, does Construct 2 support rgba ? I supported it in my plugins but didn't think to test it with default functions of C2 ?
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Tue Jan 31, 2012 10:40 am

rgba = rgb + opacity
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Tue Jan 31, 2012 11:28 am

@Mipey yes ?
B
44
S
12
G
13
Posts: 628
Reputation: 10,471

Post » Tue Jan 31, 2012 5:09 pm

I think there's some confusion in this thread: the rgb expression is *not* the 'color filter' feature from Construct Classic, it's just used to enter color parameters, e.g. for setting the text object's text color. Sprite still does not support color filters and probably won't until we add the full effects system we have planned for WebGL.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Jan 31, 2012 9:50 pm

I'm facing the same problem, i'm trying to make a white water drop in red. Can i do that with RGB()?? How can i do it?? SetValue or something like that?
B
3
Posts: 7
Reputation: 389

Post » Tue Jan 31, 2012 10:13 pm

@rodrigorf, at this point the simplest thing to do would be to have two different water drop sprites, one white and one red, and switch between them as needed.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests