Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ColorAdjust

[12:7] extends: FxObj

Wraps JavaFX ColorAdjust, an effect that adjusts the hue, saturation, brightness, and contrast of a node's pixels. Each property accepts a value between -1.0 and 1.0, where 0.0 leaves that channel unchanged. Positive values increase the channel and negative values decrease it. Apply it to any node via the node's setEffect() method.

Methods

  • ColorAdjust ()

    Creates a new ColorAdjust effect with all adjustments set to 0.0 (no change).

  • setHue (double H)

    Sets the hue adjustment applied to each pixel.

    • @p H is a double in the range -1.0 to 1.0; 0.0 leaves hue unchanged.
    • @r this object
  • setSaturation (double S)

    Sets the saturation adjustment applied to each pixel.

    • @p S is a double in the range -1.0 to 1.0; 0.0 leaves saturation unchanged.
    • @r this object
  • setBrightness (double B)

    Sets the brightness adjustment applied to each pixel.

    • @p B is a double in the range -1.0 to 1.0; 0.0 leaves brightness unchanged.
    • @r this object
  • setContrast (double C)

    Sets the contrast adjustment applied to each pixel.

    • @p C is a double in the range -1.0 to 1.0; 0.0 leaves contrast unchanged.
    • @r this object