1681-engine / react / PixelImage
Function: PixelImage() ​
ts
function PixelImage(__namedParameters): Element;Defined in: src/react/PixelImage.tsx:23
A sprite whose size is not known ahead (a creature, a portrait), shown at the largest whole multiple of its art that fits the box, centred (pixelFit); a sprite bigger than the box is shrunk by a whole divisor. Hidden until it has loaded and been measured, so it never flashes at the wrong size.
Parameters ​
| Parameter | Type |
|---|---|
__namedParameters | PixelImageProps |
Returns ​
Element