scarpet-graphics
by replaceitem
scarpet-graphics is a Carpet extension that gives scarpet programs image, graphics and font values for drawing and pixel work on the server.
What it does
Scarpet programs can load, create, copy and save images, and draw onto graphics objects using functions named after their Processing counterparts. Pixels can be read and set one at a time, and colors can be written as 0xRRGGBBAA hex numbers or built from RGB or HSB values with the color function. An image can be loaded from a file path, a file name or a URL, and a shared flag switches storage to the shared app directory.
The extension is server-side only, so players join without installing it, and it needs Carpet to run. Carpet Discarpet is an optional companion. It is published for Fabric only, with 22 release versions 1.19.1 – 26.3 and a latest file, 0.1.7, for 26.3 in the beta channel. The code is open source under the MIT License, and the source and issue tracker are public.
Key features
Image values
Images are a scarpet value type that programs can load, create, copy, save and inspect pixel by pixel.
Graphics objects
Graphics objects accept drawing calls, and a call to done finishes the drawing operations on them.
Processing-style drawing
Drawing functions keep the names of their Processing counterparts, with CORNER, CORNERS and CENTER modes that place shapes by corner, by two corners or by center.
Color modes
The meaning of the v1, v2 and v3 arguments follows the active color mode, either RGB or HSB values.
Gallery
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x9 of 9 versions with builds
1.20.x5 of 5 versions with builds
1.19.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 1
How it compares
scafall is open source under the MIT License and is published for Fabric for 26.1.2 – 26.2, a range that overlaps only part of this mod's. Lanitium is server-side only, open source under the Apache License 2.0, and published for Fabric for 1.20.5 – 1.21.4. Fabwork runs on Fabric and Quilt for 1.19.2 – 26.3 and can be installed on a client, a server or both, under the MIT License. Spell Renderer is client-side only, under the MIT License, and built for Fabric 1.21.8 alone.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| scarpet-graphics | Fabric | 1.19.1 – 26.3 | Server-side only | 2026-04-08 |
| scafall | Fabric | 26.1.2 – 26.2 | Not published | 2026-06-21 |
| Lanitium | Fabric | 1.20.5 – 1.21.4 | Server-side only | 2025-05-11 |
| Fabwork | Fabric and Quilt | 1.19.2 – 26.3 | Client or server, optional | 2026-09-18 |
| Spell Renderer | Fabric | 1.21.8 | Client-side only | 2026-05-09 |
Questions
Does scarpet-graphics need Carpet to run?
Do players need to install scarpet-graphics?
Which game versions have a file for scarpet-graphics?
Where is the source code for scarpet-graphics?
In the catalog
scarpet-graphics is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.
More from replaceitem
Similar mods
What the author says
This can also be used with Discarpet to send the created images via Discord. Colors are handled using numbers (0xRRGGBBAA in hex), but can be constructed from RGB and HSB using the color function.
Official listing
- Modrinth page
- modrinth.com/mod/scarpet-graphics
- Owner
- replaceitem
- Published
- 2022-07-31
- Updated on Modrinth
- 2026-04-08
- Facts verified
- 2026-10-15