Klasse Vignette
java.lang.Object
net.risingworld.api.objects.visuals.Vignette
Post-processing effect: Vignette effect (color applied to the corners of the screen).
Used in conjunction with a
PostProcessing
object.
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfloat
float
float
boolean
Determines if the effect is set.void
reset()
Resets the effect, so it is no longer active (and no longer overrides any game effects).void
set
(float intensity, float r, float g, float b, float smoothness, float roundness) Sets the vignette effect.void
set
(float intensity, int color, float smoothness, float roundness) Sets the vignette effect.
-
Konstruktordetails
-
Vignette
public Vignette()
-
-
Methodendetails
-
set
public void set(float intensity, float r, float g, float b, float smoothness, float roundness) Sets the vignette effect.- Parameter:
intensity
- the intensity of the vignette effect, between 0 and 1.r
- the red color component of the vignette effect (0-1).g
- the green color component of the vignette effect (0-1).b
- the blue color component of the vignette effect (0-1).smoothness
- the smoothness of the vignette effect, between 0 and 1. Default value is 1.roundness
- the roundness of the vignette effect, between 0 and 1. Default value is 1.
-
set
public void set(float intensity, int color, float smoothness, float roundness) Sets the vignette effect.- Parameter:
intensity
- the intensity of the vignette effect, between 0 and 1.color
- the RGB color of the vignette effect.smoothness
- the smoothness of the vignette effect, between 0 and 1. Default value is 1.roundness
- the roundness of the vignette effect, between 0 and 1. Default value is 1.
-
getIntensity
public float getIntensity() -
getSmoothness
public float getSmoothness() -
getRoundness
public float getRoundness() -
reset
public void reset()Resets the effect, so it is no longer active (and no longer overrides any game effects). -
isOverridden
public boolean isOverridden()Determines if the effect is set.- Gibt zurück:
- true if this effect was set, false if not (or if it was reset).
-