API Documentation for: 1.0.0
Show:

Graphics.Fill Class

Defined in: Graphics.Fill:1897
Module: EaselJS

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

Constructor

Graphics.Fill

(
  • style
  • matrix
)

Defined in Graphics.Fill:1897

Parameters:

Item Index

Properties

Methods

bitmap

(
  • image
  • [repetition]
)
Fill

Defined in bitmap:1969

Creates a bitmap fill style and assigns it to the Fill/style:property. See beginBitmapFill for more information.

Parameters:

  • image HTMLImageElement | HTMLCanvasElement | HTMLVideoElement

    Must be loaded prior to creating a bitmap fill, or the fill will be empty.

  • [repetition] String optional

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

Returns:

Fill:

Returns this Fill object for chaining or assignment.

exec

(
  • ctx
)

Defined in exec:1913

Execute the Graphics command in the provided Canvas context.

Parameters:

  • ctx CanvasRenderingContext2D

    The canvas rendering context

linearGradient

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

Defined in linearGradient:1930

Creates a linear gradient style and assigns it to Fill/style:property. See beginLinearGradientFill for more information.

Parameters:

Returns:

Fill:

Returns this Fill object for chaining or assignment.

radialGradient

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

Defined in radialGradient:1949

Creates a radial gradient style and assigns it to Fill/style:property. See beginRadialGradientFill for more information.

Parameters:

Returns:

Fill:

Returns this Fill object for chaining or assignment.

Properties

matrix

Matrix2D

Defined in matrix:1909

style

Object

Defined in style:1904

A valid Context2D fillStyle.