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
| Name | Type | Default | Description |
|---|---|---|---|
select | number | undefined | Number of the avatar to draw. The available numbers are 0 to 6. | |
scale | number | 1 | Screen pixels for each pixel of the drawing, a whole number from 1. Defaults to 1. |
bordered | boolean | false | Draws a border around the avatar, in the border color of the theme. |