Car
A pixel art car seen from the front or from the back. Its colors are mixes of the primary, surface and text colors of the theme, and the space around the car 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-car>.
import '@ilusiva/pix';Default
Scaled
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
select | number | undefined | Number of the drawing: 0 shows the front of the car and 1 the back. | |
scale | number | 1 | Screen pixels for each pixel of the drawing, a whole number from 1. Defaults to 1. |