Tintify tints your untinted terminal
npm install tintify§3 or §b will be transformed to a color or effect according to the config)
cmd
npm install tintify
`
OR
`cmd
pnpm install tintify
`
---
Updates
Want to see new content? Open an issue!
---
Overview
Basic usage
$3
`js
import { forground, brightBackground } from "tintify";
console.log(${forground.blue}Hello ${forground.red}${brightBackground.blue}World!);
`
!Usage of constants output
$3
`js
import { forgroundRGBColor, backgroundRGBColor, hexToRgb } from "tintify";
const helloFgColor = forgroundRGBColor({red: 63, green: 112, blue: 84});
const worldFgColor = forgroundRGBColor(hexToRgb("#9d19c2"));
const worldBgColor = backgroundRGBColor({red: 63, green: 112, blue: 84});
console.log(${helloFgColor}Hello ${worldFgColor}${worldBgColor}World!);
`
!Usage of functions output
Formatters usage
$3
`js
import { hexToRgb, linearGradient } from "tintify";
console.log(linearGradient("Tintify tints your untinted terminal", hexToRgb("#40db21"), {red: 255, green: 0, blue: 0}));
`
!Linear gradient output
$3
`js
import { hexToRgb, matrix } from "tintify";
console.log(matrix("Tintify tints your untinted terminal", hexToRgb("#00FF00")));
console.log(matrix("Tintify tints your untinted terminal", hexToRgb("#00FF00"), 200));
`
!Matrix output
$3
`js
import { hexToRgb, rainbow } from "tintify";
console.log(rainbow("Tintify tints your untinted terminal"));
console.log(rainbow("Tintify tints your untinted terminal", hexToRgb("#00FF00")));
console.log(rainbow("Tintify tints your untinted terminal", hexToRgb("#00FF00"), 100));
console.log(rainbow("Tintify tints your untinted terminal", hexToRgb("#00FF00"), 100, false));
`
!Rainbow output
$3
`js
import { defaultFormatConfig, forground, format } from "tintify";
console.log(format("§2Hello §b§4World!"));
console.log(format("§2Hello §b§4World!", {
...defaultFormatConfig,
"§2": forground.blue
}));
``