Optional Readonlysize?: Range<Pixels>Rendered Width.
Readonlysrc: OneOrMany<ImageInput>Image Source(s).
URLs are loaded automatically; particles become visible once loaded. Use loadImage() to preload. A string
starting with <svg is used as inline SVG markup — give the <svg> a width and height so it has a size.
Optional Readonlytint?: boolean | TintModeTint.
Recolors the image with the particle colors (colors, inherited from paper.colors when the entry sets none):
every particle picks a color the way a paper piece does and draws a copy of the image in that color. true is
"multiply" (keeps the shading, so white or grey artwork takes the colors best); "fill" gives flat silhouettes.
shapes: [{ type: "image", src: "/coin-white.png", tint: true, colors: ["#ffd700", "#ff5e7e"] }]
shapes: [{ type: "image", src: "/logo.png", tint: "fill" }] // silhouettes in the paper colors
Each color is painted once per image when it has loaded (at the largest size it is drawn, 256 px at most); drawing costs the same as without a tint.
Readonlytype: "image"Shape Type.
Image Shape Entry. Draws images (logos, coins, stickers). Aspect ratio is preserved;
sizeis the width. Colors only apply withtint; stroke keys are ignored.