Class MixFunction

  • All Implemented Interfaces:
    Expression, Function

    public class MixFunction
    extends FunctionImpl
    Mix lesscss.org color function. Takes two colors and mixes them together based on a weight (and their eventual alpha)
    Author:
    Andrea Aime - GeoSolutions
    • Constructor Detail

      • MixFunction

        public MixFunction()
    • Method Detail

      • evaluate

        public Object evaluate​(Object object)
        Description copied from class: FunctionImpl
        Default implementation simply returns the fallbackValue.

        Please override this method to produce a value based on the provided arguments.

        Specified by:
        evaluate in interface Expression
        Overrides:
        evaluate in class FunctionImpl
        Parameters:
        object - Object being evaluated; often a Feature
        Returns:
        value for the provided object
      • mix

        protected Color mix​(Color color1,
                            Color color2,
                            double weight)