gil_gu2px-help.pd 930 B

1234567891011121314151617181920212223242526
  1. #N canvas 225 51 482 474 10;
  2. #X floatatom 234 340 5 0 0 0 x - -;
  3. #X floatatom 283 340 5 0 0 0 y - -;
  4. #X text 157 416 (c) 2012 Marian Weger;
  5. #X obj 234 276 gil_gu2px 800 600;
  6. #X text 30 49 converts coordinates from gem units to pixels;
  7. #X text 31 21 gil_gu2px <gemwin dimen x> <gemwin dimen y>;
  8. #X text 35 83 [gil_gu2px] takes coordinates given in gem units by inlets
  9. 1 (x) and 2 (y) \, and converts them to pixels. For doing that \, it
  10. needs to know the current gemwin dimension by either creation arguments
  11. or the third inlet.;
  12. #X text 320 24 e.g. 800 600;
  13. #X floatatom 234 209 5 0 0 0 x - -;
  14. #X floatatom 283 209 5 0 0 0 y - -;
  15. #X msg 348 180 dimen 800 600;
  16. #X msg 363 211 800 600;
  17. #X text 32 339 Cursor position in pixels:;
  18. #X text 32 209 Cursor position in GEM units:;
  19. #X text 355 255 gemwin dimensions;
  20. #X connect 3 0 0 0;
  21. #X connect 3 1 1 0;
  22. #X connect 8 0 3 0;
  23. #X connect 9 0 3 1;
  24. #X connect 10 0 3 2;
  25. #X connect 11 0 3 2;