Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/crayon/src/styles.ts>rgb

🖍️ Terminal styling done light and fast.
Latest
function rgb
import { rgb } from "https://deno.land/x/crayon@3.3.3/src/styles.ts";

Generate StyleCode from RGB values - 24bit (16.7m) color pallete

Parameters

r: number
g: number
b: number
optional
bg: boolean