Avatar

A portrait, 250 by 375. Its colors are mixes of the primary, surface and text colors of the theme, and only the skin keeps fixed colors. The space around the figure is transparent.

It is as large as its drawing times `scale`, which keeps every pixel of the drawing the same size. A size given in CSS wins over it, and setting only `width` keeps the proportion of the drawing.

Import

Importing the library registers <pix-avatar>.

import '@ilusiva/pix';

Default

With a border

Scaled

Attributes

NameTypeDefaultDescription
selectnumber | undefinedNumber of the avatar to draw. The available numbers are 0 to 6.
scalenumber1Screen pixels for each pixel of the drawing, a whole number from 1. Defaults to 1.
borderedbooleanfalseDraws a border around the avatar, in the border color of the theme.