@tawaship/pixi-animate-container - v3.1.0
    Preparing search index...

    Class CreatejsGraphics

    inherited createjs.Graphics

    createjs.Graphics is a command object, not a display object (no EventDispatcher, no initialize) - a Shape holds it rather than it being added to a container directly, so this wrapper does not implement ICreatejsDisplayObject.

    Hierarchy (View Summary)

    Index
    command: Object
    instructions: Object[]
    BASE_64: Object
    beginCmd: BeginPath
    STROKE_CAPS_MAP: string[]
    STROKE_JOINTS_MAP: string[]
    • Parameters

      • command: Object
      • Optionalclean: boolean

      Returns createjs.Graphics

    • Fills with a gradient. Pixi's Graphics has no gradients: the gradient is drawn by the browser's canvas into a texture (so that its colors are what createjs paints), once for each gradient and shared, and filled with through a matrix from the texture's pixels to the shape's coordinates. Outside the gradient the end colors continue, as in canvas. A gradient canvas paints nothing with (a line of length 0, two equal circles) fills nothing.

      Parameters

      • colors: string[]
      • ratios: number[]
      • x0: number
      • y0: number
      • x1: number
      • y1: number

      Returns this

    • Strokes with a gradient (taken by the stroke style set next, as a color set by beginStroke is). The gradient is drawn by the browser's canvas into a texture once and shared; see beginLinearGradientFill.

      Parameters

      • colors: string[]
      • ratios: number[]
      • x0: number
      • y0: number
      • x1: number
      • y1: number

      Returns this

    • Parameters

      • image: Object
      • Optionalrepetition: string

      Returns createjs.Graphics

    • Parameters

      • ctx: CanvasRenderingContext2D

      Returns void

    • Parameters

      • ctx: CanvasRenderingContext2D

      Returns void

    • Parameters

      • x: number
      • y: number
      • w: number
      • h: number
      • radiusTL: number
      • radiusTR: number
      • radiusBR: number
      • radisBL: number

      Returns createjs.Graphics

    • Returns Object[]

      • use the instructions property instead
    • Parameters

      • callback: (data: any) => any
      • data: any

      Returns createjs.Graphics

    • Returns boolean

    • Parameters

      • x: number
      • y: number
      • w: number
      • h: number
      • radiusTL: number
      • radiusTR: number
      • radiusBR: number
      • radisBL: number

      Returns createjs.Graphics

    • Parameters

      • Optionalsegments: number[]
      • Optionaloffset: number

      Returns createjs.Graphics

    • Returns string

    • Parameters

      • hue: number
      • saturation: number
      • lightness: number
      • Optionalalpha: number

      Returns string

    • Parameters

      • r: number
      • g: number
      • b: number
      • Optionalalpha: number

      Returns string