forked from sk8terkyd/digital-logic-sim-chip-compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreference.json
37 lines (37 loc) · 1.28 KB
/
reference.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "name of chip",
"creationIndex": "where on the bottom the chip is",
"colour": {
"r": "float for ammount of red",
"g": "float for ammount of green",
"b": "float for ammount of blue",
"a": "float for transparence of color"
},
"nameColour": {
"r": "same as before but for text",
"g": "same as before but for text",
"b": "same as before but for text",
"a": "same as before but for text"
},
"componentNameList": [
"COMPONENTS"
],
"savedComponentChips": [
{
"chipName": "name of chip",
"posX": "x coordinate of chip (not useful)",
"posY": "y coordinate of chip (not useful)",
"inputPins": [
{
"name": "name of input pin",
"parentChipIndex": "index in array of chip that is connected to this pin",
"parentChipOutputIndex": "index of pin in chip specified above",
"isCylic": "tells if input to this pin has effect on itself (for example if you direct output of AND gate to one of its inputs)"
}
],
"outputPinNames": [
"PINNAME"
]
}
]
}