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.
Parameters
Section titled “Parameters”avatar
Section titled “avatar”string
number
pixelRatio?
Section titled “pixelRatio?”number
Returns
Section titled “Returns”HTMLCanvasElement