Package 

Class LinearGradient


  • 
    public class LinearGradient
    extends JsObject
                        

    Linear gradient. Used to fill shapes with linear gradient configured with (anychart.graphics.vector.GradientKey) array. Gradient line is a perpendicular to colors line. Gradient angle is an angle relative to horizontal line (0 degrees means horizontal). Gradient has its own opacity, but keys opacity has priority over it.Do not invoke constructor directly. Use fill to create linear gradient. See also:fillfill Linear gradient has three modes: ObjectBoundingBox with angle value preservation, ObjectBoundingBox without angle value preservation and UserSpaceOnUse. {docs:Graphics/Fill_Settings#linear_gradient}Learn more about gradient modes.{docs}

    • Method Summary

      Modifier and Type Method Description
      static LinearGradient instantiate()
      String getJsBase()
      void dispose() Disposes gradient completely, removes from parent layer, null internal links, removes from DOM structure.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait