Class Contrast

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

public final class Contrast extends Object
Post-processing effect: Screen contrast adjustment. Used in conjunction with a PostProcessing object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 value)
    Sets the contrast value (between -100 and +100).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Contrast

      public Contrast()
  • Method Details

    • set

      public void set(float value)
      Sets the contrast value (between -100 and +100). To reset the value to the game default value, call reset()
      Parameters:
      value - a contrast value between -100 and +100
    • 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.
      Returns:
      true if this effect was set, false if not (or if it was reset).