API Documentation for: 1.0.0
Show:

Graphics.Fill Class

Defined in: Graphics.Fill:1903
Module: EaselJS

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

Constructor

Graphics.Fill

(
  • style
  • matrix
)

Defined in Graphics.Fill:1903

Parameters:

Item Index

Properties

Methods

bitmap

(
  • image
  • [repetition]
)
Fill

Defined in bitmap:1975

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:1919

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:1936

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:1955

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:1915

style

Object

Defined in style:1910

A valid Context2D fillStyle.