Class AnalogousStrategy

java.lang.Object
toxi.color.theory.AnalogousStrategy
All Implemented Interfaces:
ColorTheoryStrategy

public class AnalogousStrategy extends Object implements ColorTheoryStrategy
Creates a new palette of 4 similar (slightly paler) colors in addition to the given start color. The hue variance and contrast can be adjusted.
  • Field Details

  • Constructor Details

    • AnalogousStrategy

      public AnalogousStrategy()
      Creates a new instance with default contrast (25%) and 10
    • AnalogousStrategy

      public AnalogousStrategy(float theta, float contrast)
      Parameters:
      theta - variance angle in radians
      contrast -
    • AnalogousStrategy

      public AnalogousStrategy(int theta, float contrast)
      Parameters:
      theta - variance angle in degrees
      contrast -
  • Method Details