New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

qolor

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qolor

Simple color parser and converter

latest
Source
npmnpm
Version
2.3.7
Version published
Maintainers
1
Created
Source

Qolor

A simple color tool for adjusting hue, saturation, lightness and alpha of a given RGB(A) color.

Documentation is outdated!

Usage:

var col = new Qolor('#ffcc00');
col.H = 120; // hue, 0..360
col.S = 0.5; // saturation, 0..1
col.L = 0.5; // lightness, 0..1
col.A = 0.5; // alpha, 0..1

Parameter for new Qolor(...) can be in any of these:

  • #0099ffAA
  • #09fA
  • #0099ff
  • #09f
  • rgb(64, 128, 255)
  • rgba(64, 128, 255, 0.5)

Note: if you pass hex values to it, toString() will return hex values too. If you do rgba(), it'll return rgba() accordingly.

FAQs

Package last updated on 07 Apr 2025

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