API Documentation for: 0.8.0
Show:

Graphics.Stroke Class

Defined in: Graphics.Stroke:1884
Module: EaselJS

Graphics command object. See Graphics and append for more information.

Constructor

Graphics.Stroke

(
  • style
  • ignoreScale
)

Parameters:

Item Index

Properties

Methods

bitmap

(
  • image
  • [repetition]
)
Fill

Defined in bitmap:1937

Creates a bitmap fill style and assigns it to Stroke/style:property.

Parameters:

  • image Image
  • [repetition] String optional

    One of: repeat, repeat-x, repeat-y, or no-repeat.

Returns:

Fill:

Returns this Stroke object for chaining or assignment.

linearGradient

(
  • colors
  • ratios
  • x0
  • y0
  • x1
  • y1
)
Fill

Defined in linearGradient:1911

Creates a linear gradient style and assigns it to Stroke/style:property.

Parameters:

Returns:

Fill:

Returns this Stroke object for chaining or assignment.

radialGradient

(
  • colors
  • ratios
  • x0
  • y0
  • r0
  • x1
  • y1
  • r1
)
Fill

Defined in radialGradient:1923

Creates a radial gradient style and assigns it to Stroke/style:property.

Parameters:

Returns:

Fill:

Returns this Stroke object for chaining or assignment.

Properties

ignoreScale

Boolean

Defined in ignoreScale:1896

style

Object

Defined in style:1891

A valid Context2D strokeStyle.