com.aspose.html.dom.canvas

Interface ICanvasGradient

    • Method Detail

      • addColorStop

        @DOMNameAttribute(name="addColorStop")
        void addColorStop(double offset,
                                                                  String color)

        Adds a new stop, defined by an offset and a color, to the gradient.

        Parameters:
        offset - A number between 0 and 1.
        color - A CSS color