Class CanvasGradient

    • Constructor Detail

      • CanvasGradient

        protected CanvasGradient()
    • Method Detail

      • addColorStop

        public final void addColorStop​(double offset,
                                       java.lang.String color)
        Adds a new color stop to the gradient.
        Parameters:
        offset - value between 0 and 1 for where the color stop is located.
        color - color at the stop.