#N canvas 6 61 710 387 10;
#X declare -lib Gem;
#X text 54 30 Class: geometric object;
#X obj 479 57 cnv 15 170 300 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 485 39 Example:;
#X obj 7 65 cnv 15 450 102 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 8 226 cnv 15 450 145 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 9 231 Inlets:;
#X obj 8 171 cnv 15 450 50 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 170 Arguments:;
#X text 27 257 Inlet 1: message: draw [line|fill|point];
#X text 482 8 GEM object;
#X text 27 243 Inlet 1: gemlist;
#X text 9 340 Outlets:;
#X text 20 353 Outlet 1: gemlist;
#X obj 484 151 cnv 15 160 140 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 488 58 gemhead;
#X floatatom 530 77 5 -10 10 0 - - - 0;
#X msg 494 154 draw line;
#X msg 494 174 draw fill;
#X msg 494 194 draw point;
#X obj 581 166 bng 15 250 50 0 empty empty grab 20 7 0 8 #fcfcfc #000000 #000000;
#X obj 581 132 select 1;
#X floatatom 573 227 5 0 0 1 ctrX - - 0;
#X floatatom 573 244 5 0 0 1 ctrY - - 0;
#X floatatom 582 185 5 0 0 1 size - - 0;
#X floatatom 582 202 5 0 0 1 height - - 0;
#X text 33 14 Synopsis: [rubber];
#X text 7 69 Description: Renders and distorts a square.;
#X text 27 313 Inlet 4: float: posX (centered);
#X text 27 325 Inlet 5: float: posY (centered);
#X text 16 86 When banged \, rubber will grab the vertex of the square specified by ctrX and ctrY and expose it at the specified height. You can then move the grabbed vertex and the adjacent vertices will follow inertly. When you bang the rubber object again \, the grabbed vertex will fall back to its original position;
#X text 65 197 default: 32 32;
#X text 63 183 segments of the square;
#X text 480 362 and move the mouse;
#X obj 542 113 gemmouse 1 1;
#A saved init;
#X obj 488 269 rubber 8 8;
#X text 27 270 Inlet 1: bang: grab/release;
#X text 27 285 Inlet 2: float: size;
#X text 27 298 Inlet 3: float: height;
#X obj 488 94 accumrotate 135 0 0;
#X obj 488 77 t a b;
#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 v2;
#X restore 548 8 pd META;
#X obj 554 302 _gemwin;
#X connect 14 0 39 0;
#X connect 15 0 38 1;
#X connect 16 0 34 0;
#X connect 17 0 34 0;
#X connect 18 0 34 0;
#X connect 19 0 34 0;
#X connect 20 0 19 0;
#X connect 21 0 34 3;
#X connect 22 0 34 4;
#X connect 23 0 34 1;
#X connect 24 0 34 2;
#X connect 33 0 21 0;
#X connect 33 1 22 0;
#X connect 33 2 20 0;
#X connect 38 0 34 0;
#X connect 39 0 38 0;
#X connect 39 1 15 0;
