ef51d780e00fa682cbb2f2de37b72cf1537ff744
1 # -*- coding: utf-8 -*-
3 constantes globales partagées par plusieurs modules.
8 from colorsys
import hls_to_rgb
14 PLAYING_MODES
= {'EASY':0
19 def hls_to_rgba_8bits(h
, l
, s
, a
=1) :
20 #convert to rgb ranging from 0 to 255
21 rgba
= [floor(255 * i
) for i
in hls_to_rgb(h
, l
, s
) + (a
,)]