ColorExtensions extension Misc Utils

on

Methods

darken([double amount = .1]) Color
lighten([double amount = .1]) Color
toHex({bool leadingHashSign = true}) String
Prefixes a hash sign if leadingHashSign is set to true (default is true).

Static Methods

fromHex(String hexString) Color
String is in the format "aabbcc" or "ffaabbcc" with an optional leading "#".