Skip to content

1681-engine / react / PixelImageProps

Interface: PixelImageProps ​

Defined in: src/react/PixelImage.tsx:5

Properties ​

alt? ​

ts
optional alt?: string;

Defined in: src/react/PixelImage.tsx:14


className? ​

ts
optional className?: string;

Defined in: src/react/PixelImage.tsx:15


height ​

ts
height: number;

Defined in: src/react/PixelImage.tsx:9


maxScale? ​

ts
optional maxScale?: number;

Defined in: src/react/PixelImage.tsx:13

Caps the multiple, so a row of sprites of different sizes keeps their sizes against each other.


src ​

ts
src: string;

Defined in: src/react/PixelImage.tsx:6


upscaled? ​

ts
optional upscaled?: number;

Defined in: src/react/PixelImage.tsx:11

Image pixels the URL already spends on one art pixel (a sheet painted at 4x).


width ​

ts
width: number;

Defined in: src/react/PixelImage.tsx:8

The box, CSS px.

Released under the MIT License.