[EFFECT] Radial Gradient

Completed plugins, behaviors and effects.

Post » Fri May 14, 2010 6:15 am

I think this one was missing. I tried to make the parameters where possible similar to the ones of the gradient object.

A picture can tell so much more than I could describe (click for a larger version):


[size=150:n5fhrvi4]How it works[/size:n5fhrvi4]
Best way to use this effect is by creating a sprite with the smallest size you can handle (e.g. 8x8, 4x2, etc). This way, you don't add much to VRAM. Apply the effect and resize the sprite on the layout to your needs. The sprite does not need to have a texture - just create a sprite and apply the effect.
Don't resize the canvas in the picture editor because this would add to VRAM!

[size=150:n5fhrvi4]How to use it[/size:n5fhrvi4]
The parameters are:
[list:n5fhrvi4][*:n5fhrvi4]Direction - Set this to 1 to make Color1 the inner color, every other value makes Color2 the inner color[/*:m:n5fhrvi4]
[*:n5fhrvi4]Color1 Red, Green, Blue - The channel values of the first color in percent[/*:m:n5fhrvi4]
[*:n5fhrvi4]Color1 Opacity - The opacity of Color1 in percent[/*:m:n5fhrvi4]
[*:n5fhrvi4]Color2 Red, Green, Blue - The channel values of the second color in percent[/*:m:n5fhrvi4]
[*:n5fhrvi4]Color2 Opacity - The opacity of Color2 in percent[/*:m:n5fhrvi4]
[*:n5fhrvi4]Opaque? - Set this to 1 if you would like to have an oval shape of the gradient's size[/*:m:n5fhrvi4][/list:u:n5fhrvi4]
Every percentage value may be set outside the range 0-100%

[size=150:n5fhrvi4]Installation[/size:n5fhrvi4]
Download RadialGradient.fx and put in the effects folder of Construct.
RadialGradient.cap, the source of the screenshot, is also available.

I hope it extends the capabilities of Construct.
I will keep creating effects, some may be provided soon (I just don't know if you understand this sentence as a promise or a threat :mrgreen: )
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri May 14, 2010 10:14 am

Awesome, thanks for this, its going to come in handy I'm sure.
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Tue May 18, 2010 12:51 pm

Great, thank you ;) .
B
2
S
1
G
2
Posts: 23
Reputation: 846


Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests