Skip to content

zalmanlew/hex-shade-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hex Color Shades

Usage

shadeColor(color, offset)
  • color (string): the full string of the color to shade (can include or skip the leading #). Must be a 6 character color (TODO: allow 3 character colors)
  • offset (integer): how much to shade the color. Positive numbers will make it lighter, while negative numbers will make it darker. 0 will leave it as is. The default is -1 which will make it "one shade" darker.

Example

image