We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e4ac77 commit c40aa51Copy full SHA for c40aa51
2 files changed
nodes/brickcolor/brickcolortorgb.json
@@ -0,0 +1,19 @@
1
+{
2
+ "type": "FUNCTION",
3
+ "color": [
4
+ 200,
5
+ 100,
6
+ 50
7
+ ],
8
+ "title": "BrickColor To RGB",
9
+ "inputs": {
10
+ "brickColor": {
11
+ "defaultValue": ""
12
+ }
13
+ },
14
+ "outputs": [
15
+ "r",
16
+ "g",
17
+ "b"
18
+ ]
19
+}
src/models/brickcolor/BrickColorToRGB.py
@@ -0,0 +1,13 @@
+from typing import Optional
+from src.Node import Node
+
+class BrickColorToRGB(Node):
+ def __init__(self) -> None:
+ super().__init__("nodes/brickcolor/brickcolortorgb.json")
+ def toLuau(self) -> Optional[str]:
+ brick_color = self.getInputValue("brickColor")
+ self.setOutputValue("r", f'{brick_color}.r')
+ self.setOutputValue("g", f'{brick_color}.g')
+ self.setOutputValue("b", f'{brick_color}.b')
0 commit comments