darken

darken color by given percentage (0.0-1.0)


Parameters

darken color :color
       percent :floating

Returns

  • :color

Examples

copy
darken #red 0.2 ; => #CC0000 darken #red 0.5 ; => #7F0000 darken #9944CC 0.3 ; => #6B308F

Related