Refactor pass 1
This commit is contained in:
@@ -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