mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Added comments, changed small layout and id thing. CURA-3273
This commit is contained in:
parent
50ba236e66
commit
47ab49795f
4 changed files with 27 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue