com.aspose.html.dom.canvas

Interface ICanvasGradient

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void addColorStop(double offset, java.lang.String color)
      Adds a new stop, defined by an offset and a color, to the gradient.
    • Method Detail

      • addColorStop

        @DOMNameAttribute(name="addColorStop")
        void addColorStop(double offset,
                                                                 java.lang.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