Klasse WhiteBalance

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

public final class WhiteBalance extends Object
Post-processing effect: White balance effect. Used in conjunction with a PostProcessing object.

Image
White balance used to change the color temperature
  • Konstruktordetails

    • WhiteBalance

      public WhiteBalance()
  • Methodendetails

    • set

      public void set(float temperature, float tint)
      Sets the white balance of the screen. To reset the value to the game default value, call reset()
      Parameter:
      temperature - the screen color temperature, between -100 and +100. Negative values make the screen appear colder, positive values make the screen appear warmer. Default value is 0.
      tint - optional screen tint color, between -100 and +100. Default value is 0.
    • getTemperature

      public float getTemperature()
    • getTint

      public float getTint()
    • 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).