Revision a31dbc5c
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/DistortedEffectsPostprocess.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import org.distorted.library.message.EffectListener; |
23 | 23 |
import org.distorted.library.type.Data1D; |
24 |
import org.distorted.library.type.Data4D; |
|
24 | 25 |
|
25 | 26 |
import java.util.ArrayList; |
26 | 27 |
|
... | ... | |
371 | 372 |
{ |
372 | 373 |
return mP.add(EffectNames.BLUR, radius); |
373 | 374 |
} |
375 |
|
|
376 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
377 |
/** |
|
378 |
* Make the object glow with a specific color and a halo of specific radius. |
|
379 |
* |
|
380 |
* @param radius The 'strength' if the effect, in pixels. 0 = no halo, 10 = halo of roughly 10 pixels |
|
381 |
* around the whole object. |
|
382 |
* @param color RGBA of the color with which to draw the glow. |
|
383 |
* @return ID of the effect added, or -1 if we failed to add one. |
|
384 |
*/ |
|
385 |
public long glow(Data1D radius, Data4D color) |
|
386 |
{ |
|
387 |
return mP.add(EffectNames.GLOW, radius, color); |
|
388 |
} |
|
374 | 389 |
} |
Also available in: Unified diff
Beginnings of support for the GLOW effect.