Skip to content

avatarPortrait

avatarPortrait(avatar, size, pixelRatio?): HTMLCanvasElement

An avatar’s portrait (head and shoulders, neutral pose) as a canvas of size × size CSS pixels at pixelRatio, drawn once from the same shapes as the avatars and cached: for DOM places such as the TV’s gesture rings.

string

number

number

HTMLCanvasElement