#N canvas 45 61 661 402 10;
#X declare -lib Gem;
#X text 54 30 Class: geometric object;
#X obj 479 77 cnv 15 170 300 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 485 59 Example:;
#X obj 7 52 cnv 15 450 132 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 244 cnv 15 450 145 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 9 249 Inlets:;
#X obj 8 189 cnv 15 450 50 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 189 Arguments:;
#X text 27 275 Inlet 1: message: draw [line|fill|point];
#X text 472 8 GEM object;
#X text 27 261 Inlet 1: gemlist;
#X text 9 358 Outlets:;
#X text 20 371 Outlet 1: gemlist;
#X obj 484 171 cnv 15 160 140 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 488 84 gemhead;
#X floatatom 566 89 5 0 0 0 - - - 0;
#X msg 494 174 draw line;
#X msg 494 194 draw fill;
#X msg 494 214 draw point;
#X obj 488 109 rotateXYZ 135 0 0;
#X obj 574 186 bng 25 250 50 0 empty empty grab 0 -6 0 8 #fcfcfc #000000 #000000;
#X floatatom 572 222 5 0 0 1 amount - - 0;
#X text 7 56 Description: Renders and distorts a square.;
#X text 27 331 Inlet 4: float: posX (centered);
#X text 27 343 Inlet 5: float: posY (centered);
#X text 27 288 Inlet 1: bang: grab;
#X text 65 216 default: 32 32;
#X text 63 202 segments of the square;
#X text 33 14 Synopsis: [ripple];
#X obj 488 289 ripple 16 16;
#X text 16 73 When banged \, ripple will grab the vertex nearest to the specified (ctrX ctrY) position. The vertices will be accelerated towards the selected one for a moment and then gradually fall back to their original position.;
#X obj 575 244 tgl 15 0 empty empty ctrX 18 8 0 8 #fcfcfc #000000 #000000 0 1;
#X obj 575 264 tgl 15 0 empty empty ctrY 18 8 0 8 #fcfcfc #000000 #000000 0 1;
#X text 27 317 Inlet 3: float: amount;
#X text 17 131 The amount of excursion can be specified.;
#X floatatom 510 247 5 0 0 0 - - - 0;
#X text 17 150 note: [ripple] distorts a bit different when texture-mapping is used!;
#X text 27 303 Inlet 2: float: size;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION Renders and distorts a square.;
#X text 10 65 KEYWORDS Gem openGL shape;
#X text 20 85 INLET_0 gemlist draw bang;
#X text 20 105 INLET_1 float;
#X text 20 125 INLET_2 float;
#X text 20 145 INLET_3 float;
#X text 20 165 INLET_4 float;
#X text 20 185 OUTLET_0 gemlist;
#X text 10 205 AUTHOR IOhannes m zmölnig;
#X text 10 225 LICENSE GPL-2.0-or-later;
#X restore 548 8 pd META;
#X obj 508 326 _gemwin;
#X connect 14 0 19 0;
#X connect 15 0 19 1;
#X connect 16 0 29 0;
#X connect 17 0 29 0;
#X connect 18 0 29 0;
#X connect 19 0 29 0;
#X connect 20 0 29 0;
#X connect 21 0 29 2;
#X connect 31 0 29 3;
#X connect 32 0 29 4;
#X connect 35 0 29 1;
