Function pivot_scaled_sprite

  • Allegro

    Draws a sprite rotated around an arbitrary point and scaled

    Parameters

    • bmp: undefined | BITMAP

      target bitmap

    • sprite: undefined | BITMAP

      sprite bitmap

    • x: number

      x position

    • y: number

      y position

    • cx: number

      Pivot point x

    • cy: number

      Pivot point y

    • angle: number

      angle of rotation from 0-256

    • scale: number

      scale

      1.15.18

    Returns void

    Remarks

    Draws a sprite rotating it around a given point. The sprite is also scaled. Sprite is drawn centered to the pivot point. The pivot point is relative to top-left corner of the image before scaling. You can omit sy value for uniform scaling. You can use negative scale for flipping.

Generated using TypeDoc