# simple-color

> Simple color operations and abstractions.

Latest version **1.1.0** (published 2018-08-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-color
pnpm add simple-color
yarn add simple-color
bun add simple-color
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-08-14 |
| First published | 2018-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | luke kaalim |
| Maintainers | lukekaalim |

## Links

- npm: https://www.npmjs.com/package/simple-color
- Repository: https://github.com/lukekaalim/simple-color
- Homepage: https://github.com/lukekaalim/simple-color#readme
- Issues: https://github.com/lukekaalim/simple-color/issues
- npm.io page: https://npm.io/package/simple-color

## Recent versions

- 1.1.0 (latest) — 2018-08-14
- 1.0.0 — 2018-08-14

## README

# Simple Color

Simple color operations and abstractions.

### colorToString
*_(color: Color) => string_*

This function takes a Color object and returns the CCS string version of the color.

## makeHSLColor
_(hue: number, saturation: number, lightness: number, alpha?: number) => HSLAColor_

This function takes some arguments and creates a HSLAColor object.

## makeRGBColor
_(red: number, green: number, blue: number alpha?: number) => RGBAColor_

This function takes some arguments and creates a RGBAColor object.

## Color
This interface describes a color object. Implementing objects are:
  - HSLAColor
  - RGBAColor

---
_Source: https://npm.io/package/simple-color · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
