-
Notifications
You must be signed in to change notification settings - Fork 2
/
of.grabscreen-help.pd
74 lines (74 loc) · 2.3 KB
/
of.grabscreen-help.pd
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
#N canvas 631 91 707 593 12;
#X declare -lib ofelia;
#X obj 9 10 cnv 15 600 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X floatatom 70 373 5 0 0 0 - - -;
#X obj 30 412 of.rotate;
#X msg 62 266 get;
#X floatatom 158 373 5 0 0 0 width - -;
#X floatatom 198 403 5 0 0 0 height - -;
#X floatatom 239 431 5 0 0 0 type - -;
#X obj 462 45 declare -lib ofelia;
#X msg 62 134 grab;
#X msg 363 152 clear;
#X obj 158 338 unpack 0 0 0;
#X text 139 316 arguments= x \, y \, width \, height;
#X obj 31 550 of.plane 400 400 10 10 line;
#X msg 62 232 save screengrab.jpg;
#X text 96 266 get infos from right outlet;
#X text 216 232 save to file;
#X text 115 525 this is a simple example shape to grab something...
;
#X text 36 448 Texture on a geo:;
#X text 180 202 fill with color;
#X msg 362 222 crop 100 100 100 100;
#X text 512 222 witdh \, height \, posX \, posY;
#X text 361 171 allocate width \, height colortype;
#X msg 362 268 drawsubsection 100 0 100 100 120 200;
#X text 358 286 posX \, posY \, witdh \, height \, cropfromX \, cropfromY
\, posCropX \, posCropY, f 42;
#X text 361 184 0= Grayscale \, 1 =rgb \, 2 = rgba;
#X msg 362 245 setimagetype 0;
#X text 474 245 0= Grayscale \, 1 =rgb \, 2 = rgba;
#X msg 364 340 resize;
#X msg 364 362 mirror;
#X msg 364 384 rotate90;
#X msg 362 199 allocate 640 480 1;
#X text 407 151 clear all (need allocate);
#X text 112 340 get :;
#X msg 61 167 dimen 1280 720;
#X obj 30 468 of.sphere 500;
#X text 106 132 grab pixels now and texture it;
#X text 170 162 Change size (default to windows size), f 21;
#X msg 62 202 fill 0 0 0;
#X text 296 459 1 = rgb;
#X text 296 449 0 = grayscale;
#X text 209 449 Image type:;
#X msg 133 296 setup;
#X text 296 469 2 = rgba;
#X obj 30 319 of.grabscreen;
#X obj 30 103 of.draw 1;
#X obj 31 527 of.draw 2;
#X obj 518 19 of.window 1;
#X obj 497 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 362 322 not yet implemented;
#X text 28 32 A simple screen to texture grabber;
#X connect 1 0 2 2;
#X connect 2 0 34 0;
#X connect 3 0 43 0;
#X connect 8 0 43 0;
#X connect 9 0 43 0;
#X connect 10 0 4 0;
#X connect 10 1 5 0;
#X connect 10 2 6 0;
#X connect 13 0 43 0;
#X connect 30 0 43 0;
#X connect 33 0 43 0;
#X connect 37 0 43 0;
#X connect 41 0 43 0;
#X connect 43 0 2 0;
#X connect 43 1 10 0;
#X connect 44 0 43 0;
#X connect 45 0 12 0;
#X connect 47 0 46 0;