sparkle-engine

表示一个路径

Constructors

Properties

firstPoint: boolean = true
fistStack: boolean[] = []
path: Vector2[] = []
startPoint: Vector2 = ...

Methods

  • Parameters

    • radius: number

    Returns void

  • Parameters

    • fn: ((start, end) => void)

    Returns void

  • Parameters

    • fn: ((point, i) => void)
        • (point, i): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void