Catalog app · RISC-V VM
Run pastel in the browser
Generate, convert, analyze and manipulate colors from the command line.
Try it live
Nothing is downloaded until you press Run.
Convert a color between notations
Installs pastel 0.12.0 from the signed catalog (every chunk is verified before it is written), then runs the commands below in the VM's shell.
bash
pastel format hex rebeccapurple pastel format rgb '#a984f5' pastel format hsl orange
Expected output
$ pastel format hex rebeccapurple #663399 $ pastel format rgb '#a984f5' rgb(168, 132, 245) $ pastel format hsl orange hsl(39, 100.0%, 50.0%)
What it is
pastel parses colors in many notations (names, hex, rgb, hsl, lab) and converts, mixes, lightens, sorts or generates palettes from them. In the browser it is a handy color utility inside docs and design tooling.
Package facts
- version
0.12.0- runs on
- RISC-V VM (
elf-app,riscv64gc-linux-musl) - download
- 582 kB compressed · 1 file
- command
pastel- requires
- nothing else — a static binary
- license
MIT OR Apache-2.0(upstream)- upstream
- github.com/sharkdp/pastel
- categories
- Showcase
- catalog
- generation 12, Ed25519-signed
Install and run it from your page
With the SDK, installApp resolves pastel in the signed index, fetches its content-addressed chunks from the CDN, verifies each one and writes the files into the VM. Details in Installing catalog apps.
javascript
import { createNano } from "@userland-run/nano-sdk";
const nano = await createNano({ image: { wasm: "/nano/console.wasm" }, ramMB: 512 });
await nano.installApp("pastel"); // signature-verified, cached in OPFS
const r = await nano.shExec("pastel format hex rebeccapurple");
console.log(r.stdout);Typical usage of the upstream command-line tool:
bash
pastel random | pastel format hex
Related apps
- numbat1.23.0A statically typed language and calculator for scientific computations with physical units.RISC-V VM2.6 MB
- resvg0.47.0Render SVG files to PNG with a fast, standards-focused renderer.RISC-V VM1.7 MB
- hexyl0.14.0View binary files as a hex dump with offsets, byte categories and an ASCII column.RISC-V VM419 kB