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

x/cotton/deps.ts>Colors.bgRgb8

SQL Database Toolkit for Deno
Latest
function Colors.bgRgb8
import { Colors } from "https://deno.land/x/cotton@v0.7.5/deps.ts";
const { bgRgb8 } = Colors;

Set background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Parameters

str: string
color: number

Returns

string