this is made using on_color_rgb() function in latest release, of blessed (1.17.0) for python, https://github.com/jquast/blessed/blob/master/bin/plasma.py