gnn_tracking.utils.colors

gnn_tracking.utils.colors#

Utility functions for dealing with colors in plotting

Module Contents#

Functions#

lighten_color(color[, amount])

Lightens the given color by multiplying (1-luminosity) by the given amount.

gnn_tracking.utils.colors.lighten_color(color, amount=0.5)#

Lightens the given color by multiplying (1-luminosity) by the given amount. Input can be matplotlib color string, hex string, or RGB tuple.

Code from https://stackoverflow.com/a/49601444/ (Ian Hincks 2018)

Examples: >> lighten_color(‘g’, 0.3) >> lighten_color(‘#F034A3’, 0.6) >> lighten_color((.3,.55,.1), 0.5)