Skip to main content
Module

x/ansi_esc/mod.ts>text.rgb

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

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