Package 

Enum ColorChannel

    • Constructor Summary

      Constructors 
      Constructor Description
      ColorChannel(int idx, boolean rgb)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALPHA

      Alpha channel.

      RED

      Red channel.

      GREEN

      Green channel.

      HUE

      Hue channel (HSB).

      SATURATION

      Saturation channel (HSB).

      BRIGHTNESS

      Brightness channel (HSB).

      BLUE

      Blue channel.

    • Method Summary

      Modifier and Type Method Description
      Color alter(Color c, float q) Given a color, modifies the channel setting the passed value.
      • Methods inherited from class java.lang.Object

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

      • ColorChannel

        ColorChannel(int idx, boolean rgb)
    • Method Detail

      • alter

         Color alter(Color c, float q)

        Given a color, modifies the channel setting the passed value.

        Parameters:
        c - the initial color
        q - the value for the channel