-
Notifications
You must be signed in to change notification settings - Fork 0
/
cm_ShuffleRGBA.nk
221 lines (221 loc) · 4.66 KB
/
cm_ShuffleRGBA.nk
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
Group {
name ShuffleRGBA
tile_color 0x913a4aff
note_font "Verdana"
selected true
xpos -40
ypos -460
addUserKnob {20 settings l SuffleRGBA}
addUserKnob {26 text_5 l "" +STARTLINE T " "}
addUserKnob {41 in1 l channeel T Shuffle5.in1}
addUserKnob {26 text_6 l "" +STARTLINE T " "}
addUserKnob {26 text l enable}
addUserKnob {26 text_2 l "" +STARTLINE T " "}
addUserKnob {6 enableRed l Red +STARTLINE}
enableRed true
addUserKnob {6 enableGreen l Green -STARTLINE}
enableGreen true
addUserKnob {6 enableBlue l Blue -STARTLINE}
enableBlue true
addUserKnob {6 enableAlpha l Alpha -STARTLINE}
addUserKnob {26 text_3 l "" +STARTLINE T " "}
addUserKnob {26 ""}
addUserKnob {26 text_7 l "" +STARTLINE T " "}
addUserKnob {41 operation T Merge1.operation}
addUserKnob {26 text_8 l "" +STARTLINE T " "}
addUserKnob {26 ""}
addUserKnob {26 text_4 l "" +STARTLINE T " "}
addUserKnob {26 text_1 l "" +STARTLINE T "ShuffleRGBA v1.0 - (c) 2022 - Chris McCrowe - <a href=\"www.chrismccrowe.com\" style=\"color:#69a1fa;\">www.chrismccrowe.com</a>"}
}
Input {
inputs 0
name Input1
xpos 785
ypos 572
}
Shuffle2 {
fromInput1 {{0} B}
fromInput2 {{0} B}
mappings "4 rgba.red 0 0 rgba.red 0 0 rgba.green 0 1 rgba.green 0 1 rgba.blue 0 2 rgba.blue 0 2 black -1 -1 rgba.alpha 0 3"
name Shuffle5
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 785
ypos 657
}
set N29a7d800 [stack 0]
Dot {
name Dot1
note_font "DejaVu Sans"
xpos 813
ypos 759
}
set N29a7d400 [stack 0]
Shuffle2 {
fromInput1 {{0} B}
out1 alpha
fromInput2 {{0} B}
mappings "1 rgba.alpha 0 3 rgba.alpha 0 0"
name Shuffle39
tile_color 0x4f4f4fff
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 1245
ypos 872
}
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
fromInput2 {{0} B}
mappings "4 black -1 -1 rgba.red 0 0 black -1 -1 rgba.green 0 1 black -1 -1 rgba.blue 0 2 black -1 -1 rgba.alpha 0 3"
name Shuffle4
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 1104
ypos 868
}
Switch {
inputs 2
which {{parent.enableAlpha}}
name Switch4
note_font "DejaVu Sans"
xpos 1179
ypos 946
}
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
out1 alpha
fromInput2 {{0} B}
mappings "1 rgba.blue 0 2 rgba.alpha 0 0"
name Shuffle38
tile_color 0xffff
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 971
ypos 867
}
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
fromInput2 {{0} B}
mappings "4 black -1 -1 rgba.red 0 0 black -1 -1 rgba.green 0 1 black -1 -1 rgba.blue 0 2 black -1 -1 rgba.alpha 0 3"
name Shuffle3
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 852
ypos 862
}
Switch {
inputs 2
which {{parent.enableBlue}}
name Switch3
note_font "DejaVu Sans"
xpos 918
ypos 938
}
push 0
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
out1 alpha
fromInput2 {{0} B}
mappings "1 rgba.red 0 0 rgba.alpha 0 0"
name Shuffle36
tile_color 0xff0000ff
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 412
ypos 864
}
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
fromInput2 {{0} B}
mappings "4 black -1 -1 rgba.red 0 0 black -1 -1 rgba.green 0 1 black -1 -1 rgba.blue 0 2 black -1 -1 rgba.alpha 0 3"
name Shuffle1
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 259
ypos 872
}
Switch {
inputs 2
which {{parent.enableRed}}
name Switch1
note_font "DejaVu Sans"
xpos 329
ypos 941
}
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
out1 alpha
fromInput2 {{0} B}
mappings "1 rgba.green 0 1 rgba.alpha 0 0"
name Shuffle37
tile_color 0xff00ff
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 693
ypos 864
}
push $N29a7d400
Shuffle2 {
fromInput1 {{0} B}
fromInput2 {{0} B}
mappings "4 black -1 -1 rgba.red 0 0 black -1 -1 rgba.green 0 1 black -1 -1 rgba.blue 0 2 black -1 -1 rgba.alpha 0 3"
name Shuffle2
label "\[value in1]-->\[value out1]"
note_font "DejaVu Sans"
xpos 544
ypos 869
}
Switch {
inputs 2
which {{parent.enableGreen}}
name Switch2
note_font "DejaVu Sans"
xpos 609
ypos 930
}
Merge2 {
inputs 4+1
operation screen
name Merge1
note_font "DejaVu Sans"
xpos 768
ypos 1056
}
Shuffle {
in alpha
name ALPHA
tile_color 0xff
note_font "Bitstream Vera Sans Bold"
note_font_size 21
xpos 768
ypos 1097
postage_stamp true
}
Clamp {
channels alpha
name ClampAlpha
note_font "Bitstream Vera Sans"
xpos 768
ypos 1179
}
Output {
name Output1
xpos 768
ypos 1232
}
push $N29a7d800
Viewer {
frame_range 1001-1027
center_fstop 0
name Viewer1
note_font "DejaVu Sans"
xpos -249
ypos 1494
}
end_group