Added comments, changed small layout and id thing. CURA-3273

This commit is contained in:
Jack Ha 2017-02-08 11:48:00 +01:00
parent 50ba236e66
commit 47ab49795f
4 changed files with 27 additions and 5 deletions

View file

@ -27,6 +27,9 @@ from time import time
catalog = i18nCatalog("cura")
## Return a 4-tuple with floats 0-1 representing the html color code
#
# \param color_code html color code, i.e. "#FF0000" -> red
def colorCodeToRGBA(color_code):
return [
int(color_code[1:3], 16) / 255,