Skip to content

kkristof200/ts-rgba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ts-rgba

Description

rgba utils written in typescript

Install

npm i ts-rgba

Usage

import { RGBA } from 'ts-rgba'

const black = new RGBA(0,0,0)
console.log(black)
console.log(black.inverted)
console.log(black.lighter(0.1).darker(0.05))
console.log(black.mix(new RGBA(255,255,255)))
console.log(black.rgbAvg)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published