You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

parsegraph-color

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parsegraph-color

color

1.4.12-dev
Source
npmnpm
Version published
Maintainers
2
Created
Source

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].

FAQs

Package last updated on 22 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts