Skip to content

DrawAvatar

DrawAvatar = (ctx, who, player?, box?, options?) => Body | null

Draws an avatar; returns the body it was posed with (smoothed unless smooth: false, interpolated for this animation frame unless interpolate: false), or null if it drew nothing.

CanvasRenderingContext2D

PlayerFrame | Body

number | string

AvatarBox | null

DrawAvatarOptions

Body | null