[EFFECT] Gradients

Completed plugins, behaviors and effects.

Post » Tue Nov 02, 2010 1:03 pm

This effect draws color gradients over objects, using the object's alpha as a mask. It handles semi-transparencies and can be mixed with the original colors of the object. It is very useful in combination with (but not limited to) the text object, as you can see here:



How to use it:

Gradient type (float)[list:2he18xx4]radial = 1
linear = any other number[/list:u:2he18xx4]
Direction (float)[list:2he18xx4]if type is radial: [list:2he18xx4]inside to outside = 1
outside to inside = any other number[/list:u:2he18xx4]if type is linear: [list:2he18xx4]top to bottom = 1
left to right = any other number[/list:u:2he18xx4][/list:u:2he18xx4]
Color 1 Red, Green, Blue and Opacity (percent)[list:2he18xx4]the values in percent that define the first color
note: values outside [0, 100] can be used (e.g. to fine-tune the softness/hardness of the gradient[/list:u:2he18xx4]
Color 2 Red, Green, Blue and Opacity (percent)[list:2he18xx4]the values in percent that define the second color
note: values outside [0, 100] can be used (e.g. to fine-tune the softness/hardness of the gradient[/list:u:2he18xx4]

If the opacity is set to a value lower than 100%, the gradient is mixed with the underlying object's colors. Furthermore, the opacity of the gradient is relative to the object's opacity:
A 100% gradient from full red to full blue assigned to a full green object whose opacity is set to 50% will result in an 50% transparent gradient from full red to full blue.
A 50% gradient from full red to full blue assigned to a full green object whose opacity is set to 50% will result in an 50% transparent gradient from yellow-ish to cyan-ish.

How to install:
Download "Gradients.fx" and place it inside the effects folder.

Download:
Gradients.fx
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Tue Nov 02, 2010 2:28 pm

Thank you very much.
B
22
S
3
G
6
Posts: 1,356
Reputation: 7,141

Post » Tue Nov 02, 2010 4:58 pm

This is very nice!
Thank you.

Krush.
B
2
S
2
G
3
Posts: 406
Reputation: 2,062

Post » Mon Jan 19, 2015 9:28 am

Hi,

is there an xml file for this effect?
B
4
Posts: 8
Reputation: 216

Post » Mon Jan 19, 2015 9:37 am

@ripso

This is for Construct Classic.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
120
S
28
G
68
Posts: 4,845
Reputation: 48,291


Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests