#N canvas 269 79 874 527 10; #X declare -lib Gem; #X text 21 10 Description: Wraps gems.fit with an additonal internal scaleXYZ object.; #X obj 88 136 gemhead; #X obj 88 165 pix_image; #X obj 88 396 pix_texture; #X obj 26 87 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X msg 229 241 window; #X obj 197 217 hradio 15 1 0 4 empty empty empty 0 -6 0 8 -262144 -1 -1 0; #X msg 253 264 pixsize; #X msg 259 285 pixratio; #X floatatom 287 347 5 0 0 0 scale - -; #X msg 274 318 fill; #X text 191 180 You can change the fitting by sending the mode name or the fittings's number.; #X text 279 238 number 0; #X text 312 265 number 1; #X text 324 289 number 2; #X text 311 321 number 3; #X text 477 407 pixsize: reproduce the image \, pixel by pixel in the gem win.; #X text 476 453 fill: fills the whole gemwin; #X floatatom 282 381 5 0 0 1 depth - -; #X obj 88 419 square; #X text 476 374 window or win: fit to the gem window while maintaining the width to height ratio.; #X obj 26 108 mtl/gemsWin; #X obj 162 108 openpanel; #X msg 162 133 open \$1; #X obj 162 87 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj 88 373 mtl/gemsFit window; #X text 408 234 Argument 1: Selects how you want the fitting.; #X text 408 256 Argument 2: The scale (defaults to 1).; #X text 408 277 Argument 3: The depth (defaults to 1).; #X text 408 339 Inlet 3: Determines the scaling.; #X text 476 429 pixratio: normalized ration of the image's size.; #X text 421 480 Inlet 4: depth; #X text 408 323 Inlet 2: selects how you want the fitting.; #X text 408 306 Inlet 1: gemlist.; #X text 23 44 tags: gems; #X obj 405 15 import Gem; #X connect 1 0 2 0; #X connect 2 0 25 0; #X connect 3 0 19 0; #X connect 4 0 21 0; #X connect 5 0 25 1; #X connect 6 0 25 1; #X connect 7 0 25 1; #X connect 8 0 25 1; #X connect 9 0 25 2; #X connect 10 0 25 1; #X connect 18 0 25 3; #X connect 22 0 23 0; #X connect 23 0 2 0; #X connect 24 0 22 0; #X connect 25 0 3 0;