Refactor pass 1
This commit is contained in:
1 parent
bd248ee91c
commit
61f69af35a
38 files changed
+1007
-1541
No files matched your search
@@ -61,9 +61,9 @@ for name, (r, g, b, a) in colors.items():
|
||||
"",
|
||||
]
|
||||
js += [
|
||||
f"function color{camel}() {{",
|
||||
f" return color({r8}, {g8}, {b8}, {a8});",
|
||||
"}",
|
||||
f"Color.{name.lower()} = function() {{",
|
||||
f" return Color.rgba({r8}, {g8}, {b8}, {a8});",
|
||||
"};",
|
||||
"",
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user