Skip to main content

DrawCharacterSegment

Callable

  • DrawCharacterSegment(C: Character, Left: number, Top: number, Width: number, Height: number): HTMLCanvasElement

  • Returns a rectangular subsection of the character image


    Parameters

    • C: Character

      The character to copy part of

    • Left: number

      The starting X co-ordinate of the section

    • Top: number

      The starting Y co-ordinate of the section

    • Width: number

      The width of the section to take

    • Height: number

      The height of the section to take

    Returns HTMLCanvasElement

    • The new canvas containing the section