blob: 94246cc98305bb520335418a40d7ea39c609a32c (
plain)
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
|
#N canvas 435 101 684 379 10;
#X text 108 14 returns a grid of the same dimensions containing all
the same values after type conversion. note that while casting to a
smaller type \, overflowing values will be truncated.;
#X text 109 53 numbertypes are: uint8 \, int16 \, int32 \, int64 \,
float32 \, float64. see doc/architecture.html for more info.;
#X obj 115 90 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
-262144 -1 -1 3.1416 256;
#X obj 78 136 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X text 14 136 print it:;
#X obj 78 210 t a a a a;
#X obj 216 90 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
-262144 -1 -1 42 256;
#X obj 126 110 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
-262144 -1 -1 2005 256;
#X obj 215 110 nbx 8 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
-262144 -1 -1 1e+10 256;
#X obj 115 136 #pack 4 float32;
#X obj 115 158 #redim ( 2 2 );
#X obj 78 185 #store;
#X obj 136 234 #print;
#X obj 116 254 #cast uint8;
#X obj 116 274 #print;
#X obj 97 294 #cast int32;
#X obj 97 314 #print;
#X obj 78 334 #cast float64;
#X obj 78 354 #print;
#X text 14 14 [#cast];
#X text 575 10 GridFlow 0.8.0;
#X connect 2 0 9 0;
#X connect 3 0 11 0;
#X connect 5 0 17 0;
#X connect 5 1 15 0;
#X connect 5 2 13 0;
#X connect 5 3 12 0;
#X connect 6 0 9 1;
#X connect 7 0 9 2;
#X connect 8 0 9 3;
#X connect 9 0 10 0;
#X connect 10 0 11 1;
#X connect 11 0 5 0;
#X connect 13 0 14 0;
#X connect 15 0 16 0;
#X connect 17 0 18 0;
|