Klasse Vignette

java.lang.Object
net.risingworld.api.objects.visuals.Vignette

public final class Vignette extends Object
Post-processing effect: Vignette effect (color applied to the corners of the screen). Used in conjunction with a PostProcessing object.

Image
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    float
     
    float
     
    float
     
    boolean
    Determines if the effect is set.
    void
    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.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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).