# parsegraph-color

> color

Latest version **1.5.1** (published 2024-03-01) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.1 |
| Published | 2024-03-01 |
| First published | 2020-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rainback, Inc. |
| Maintainers | dafrito, tracy3 |

## Links

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

## Recent versions

- 1.5.1 (latest) — 2024-03-01
- 1.5.1-dev (dev) — 2024-03-01
- 1.4.3 (next) — 2021-07-13
- 1.5.0 — 2024-03-01
- 1.5.0-dev — 2024-03-01
- 1.4.13 — 2023-02-01
- 1.4.13-dev — 2023-02-01
- 1.4.12 — 2023-01-22
- 1.4.12-dev — 2023-01-22
- 1.4.11 — 2023-01-14
- 1.4.11-dev — 2023-01-14
- 1.4.10 — 2022-12-30
- 1.4.10-dev — 2022-12-30
- 1.4.9 — 2022-12-30
- 1.4.9-dev — 2022-12-30
- … 14 more at https://npm.io/package/parsegraph-color/versions

## README

# Color

This module provides a Color primitive object and associated methods
for manipulation, querying, and output.

    import Color from 'parsegraph-color';

    for(let i = 0; i < 10; ++i) {
        console.log(Color.random(0.1).asRGBA());
    }

Fundamentally, Color is stored by red, green, blue, and alpha values using
4 floating-point channels in the range [0, 1].

# Changelog

## 1.5.0 February 29, 2024

* Added Color.fromHex static function to parse a HTML color (e.g. "#ff0000", "#cfc")
* Added new Color.asHex method to return the hex representation of a Color

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