Darken/lighten Metro color

General issues related to the use of Metro 4
Post Reply
Autoflow
Posts: 10
Joined: Thu Jul 11, 2019 7:17 pm
Status: Offline

Darken/lighten Metro color

Post by Autoflow » Wed Aug 07, 2019 10:04 am

Hi all,
i would like to darken/lighten a standard Metro color.
Some way like this:

Code: Select all

var light = Metro.colors.lighten("cyan", Metro.colors.PALETTES.METRO);

The result should not be a hex or rgb, instead it should be a Metro.color ("lightCyan" in here).

RTFM didn't help me up to now ..
Last edited by Autoflow on Wed Aug 07, 2019 10:50 am, edited 2 times in total.

User avatar
olton
Site Admin
Posts: 238
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Wed Aug 07, 2019 10:27 am

Code: Select all

var light = Metro.colors.lighten(Metro.colors.PALETTES.colorListMetro["cyan"], 10%);

Post Reply