Klasse Midtones

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

public final class Midtones extends Object
Post-processing effect: Midtone adjustment, i.e adjustment of medium shades on the screen. Used in conjunction with a PostProcessing object.

Image
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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)
    Sets the tonal range of midtones on the screen.
    void
    set(float r, float g, float b, float intensity)
    Sets the tonal range of midtones on the screen.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Midtones

      public Midtones()
  • Methodendetails

    • set

      public void set(float intensity)
      Sets the tonal range of midtones on the screen. To reset the value to the game default value, call reset()
      Parameter:
      intensity - midtone intensity, between -1 and +1. Default value is 0.
    • set

      public void set(float r, float g, float b, float intensity)
      Sets the tonal range of midtones on the screen. To reset the value to the game default value, call reset()
      Parameter:
      r - optional red color that is applied to the midtones. Default is 1.
      g - optional green color that is applied to the midtones. Default is 1.
      b - optional blue color that is applied to the midtones. Default is 1.
      intensity - midtone intensity, between -1 and +1. Default value is 0.
    • 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).