Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/chalkpot_color/color_component.ts>ColorComponent

Color is a tool for creating RGB color by range and by HSL without leaving RGB space.
Go to Latest
class ColorComponent
import { ColorComponent } from "https://deno.land/x/chalkpot_color@1.1.0/color_component.ts";

ColorComponent can be red, green or blue, being the lightness of that color.

Lightness a numerical range from 0 to 255.

Constructors

new
ColorComponent(lightness: number)

Properties

readonly
lightness: number