@olton/farbe

1.0.0 • Public • Published

Farbe

Farbe - is a small javascript library for manipulating with a color.

Farbe provides class and routines for operations with color.

Farbe provides simple API that may be used to create colors (HEX, RGB, RGBA, HSV, HSL, HSLA, CMYK), and perform various color related operations (conversions and such) and create any color schemes (complementary, triple, ...)

Install

npm i @olton/farbe

Using

import Farbe from "@olton/farbe"

const color = new Farbe("#fff")

console.log(color.toRGB()); // RGB {r: 255, g: 255, b: 255}
console.log(color.toRGB().toString()); // rgb(255,255,255)

License

This software is free to use under the MIT license. See the LICENSE file for license text and copyright information.

Package Sidebar

Install

npm i @olton/farbe

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

102 kB

Total Files

5

Last publish

Collaborators

  • olton