JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.canvas

Class CanvasGradient

    • Constructor Detail

      • CanvasGradient

        public CanvasGradient()
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • addColorStop

        public 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. An INDEX_SIZE_ERR is raised, if the number is not in that range.
        color - A CSS color. A SYNTAX_ERR is raised, if the value can not be parsed as a CSS color value.
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /