gnn_tracking.utils.colors
=========================

.. py:module:: gnn_tracking.utils.colors

.. autoapi-nested-parse::

   Utility functions for dealing with colors in plotting



Functions
---------

.. autoapisummary::

   gnn_tracking.utils.colors.lighten_color


Module Contents
---------------

.. py:function:: 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)


