Package Gnumed :: Package timelinelib :: Package canvas :: Package drawing :: Package drawers
[frames] | no frames]

Package drawers

source code

Submodules

Functions
 
get_progress_color(base_color)
Return a color that is slightly brighter then the base_color.
source code
Variables
  GRAY_FACTOR = 1.2
  LUMINENCE_FACTOR = 0.8
Function Details

get_progress_color(base_color)

source code 

Return a color that is slightly brighter then the base_color. For shades of gray the constant GRAY_FACTOR decides the brightness. Higher factor gives more brightness. For other colors the LUMINENCE_FACTOR decides the brightness. Smaller factor gives more brightness.