brighten(color,pctChange)¶
Definition¶
String brighten(String color, Number pctChange)
Description¶
Returns a new hexcode color that is a percentage brighter or darker than the supplied color. Input and output colors should be in #RRGGBB format. Returns null if argument is null.
Parameter Definition¶
Name | Type | Description |
---|---|---|
color | String | Color to brighten/darken, in rrggbb format |
pctChange | Number | Pct to brighten or darken by, such that 0 is unchanged, 1 is 100% brighter and -1 is 100% darker |