New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

shader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shader

Create a darker or lighter shade of a hex color.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by0.23%
Maintainers
1
Weekly downloads
 
Created
Source

Color Shader

npm version Dependency Status Build Status

Creates darker or lighter shades of a hex color. Originally inspired from a question on StackOverflow.

Installation

Install with npm.

npm install shader

Usage

import shader from 'shader';

const color = '#fff';
const myNewShade = shader(color, -1.0);

Parameters

paramtypedescription
colorstringthe hex code for the color
valueinta range from -1.0 (darkest) to 1.0 (lightest)

Copyright 2015-2017 Patrick Burtchaell. Licensed MIT.

Keywords

FAQs

Package last updated on 31 Dec 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc