Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ansi_esc/text.ts>rgb

A Deno module/wrapper for ANSI escape sequences.
Latest
function rgb
import { rgb } from "https://deno.land/x/ansi_esc@v1.1.0/text.ts";

Returns an ANSI escape sequence based on RGB values (defaults to foreground).

Parameters

rgb: Array<Number>

The RGB values should be passed through an array e.g. [red, green, blue].

optional
options: rgbOptions

Returns

string