Options
Menu

Class GraphicsFactoryStrokes

The Graphics class contains a set of methods that you can use to create a vector shape. Display objects that support drawing include Sprite and Shape objects. Each of these classes includes a graphics property that is a Graphics object. The following are among those helper functions provided for ease of use: drawRect(), drawRoundRect(), drawCircle(), and drawEllipse().

You cannot create a Graphics object directly from ActionScript code. If you call new Graphics(), an exception is thrown.

The Graphics class is final; it cannot be subclassed.

Hierarchy

  • GraphicsFactoryStrokes

Index

Methods

Static draw_path

  • draw_path(graphic_pathes: Array<GraphicsPath>, final_vert_list: Array<number>, curves: boolean, scale?: number, scaleMode?: string): void
  • Parameters

    • graphic_pathes: Array<GraphicsPath>
    • final_vert_list: Array<number>
    • curves: boolean
    • Default value scale: number = 1
    • Default value scaleMode: string = LineScaleMode.NORMAL

    Returns void

Static draw_pathes

  • draw_pathes(targetGraphics: Graphics): void
  • Parameters

    Returns void

Static updateStrokesForShape

  • updateStrokesForShape(shape: Shape, scale?: number): void
  • Parameters

    • shape: Shape
    • Default value scale: number = 1

    Returns void

Generated using TypeDoc