Hello,
Is there anyway to choose a color from a Gem window with mouse? and send RGB value to patch....
I'm thinking gimp/photoshop eye droplet kind of thing.
Thanks! mark
mark edward grimm wrote:
Hello,
Is there anyway to choose a color from a Gem window with mouse? and send RGB value to patch....
I'm thinking gimp/photoshop eye droplet kind of thing.
should be rather simple to build with the existing objects. though i should do different things, here's a short sketch.
fgm,asdr IOhannes
#N canvas 1355 173 609 613 10; #X obj 69 97 gemwin; #X msg 69 57 create , 1; #N canvas 0 0 799 308 scene 0; #X obj 84 54 gemhead; #X obj 83 116 color 1 0 0; #X obj 81 147 square; #X obj 83 84 translateXYZ -2 2 0; #X obj 299 50 gemhead; #X obj 296 143 square; #X obj 298 80 translateXYZ 2 2 0; #X obj 296 112 color 0 1 0; #X obj 483 49 gemhead; #X obj 480 142 square; #X obj 482 79 translateXYZ 2 -2 0; #X obj 479 110 color 0 0 1; #X obj 644 50 gemhead; #X obj 641 143 square; #X obj 643 80 translateXYZ -2 -2 0; #X obj 248 272 sphere; #X obj 247 190 gemhead; #X obj 250 227 color 1 1 0; #X obj 431 233 gemhead; #X obj 429 259 world_light; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 3 0 1 0; #X connect 4 0 6 0; #X connect 6 0 7 0; #X connect 7 0 5 0; #X connect 8 0 10 0; #X connect 10 0 11 0; #X connect 11 0 9 0; #X connect 12 0 14 0; #X connect 14 0 13 0; #X connect 16 0 17 0; #X connect 17 0 15 0; #X connect 18 0 19 0; #X restore 200 82 pd scene; #X obj 197 300 print color; #X msg 147 150 lighting $1; #X obj 151 131 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #N canvas 0 0 450 522 colorpicker 0; #X obj 108 22 gemhead -1; #X obj 196 26 gemmouse; #X obj 189 182 pack 0 0; #X obj 189 159 f; #X obj 125 316 pix_snap; #X msg 133 289 snap; #X obj 127 429 pix_dump; #X obj 134 213 t b b; #X obj 183 203 t b l b l; #X obj 108 62 t a b; #X obj 157 69 f; #X obj 136 126 select 1; #X msg 193 73 0; #X msg 204 300 1 1; #X obj 138 244 del 0; #X msg 247 69 500 $1; #X obj 250 94 -; #X msg 182 470 $1 $2 $3; #X obj 182 491 outlet; #X obj 124 349 t a b; #X obj 157 408 select 1; #X obj 178 360 f; #X msg 245 377 0; #X obj 180 383 t f b; #X obj 149 92 t f b f; #X connect 0 0 9 0; #X connect 1 0 3 1; #X connect 1 1 15 0; #X connect 1 2 10 1; #X connect 2 0 8 0; #X connect 3 0 2 0; #X connect 4 0 19 0; #X connect 5 0 4 0; #X connect 6 1 17 0; #X connect 7 0 14 0; #X connect 7 1 5 0; #X connect 8 0 7 0; #X connect 8 1 4 1; #X connect 8 2 13 0; #X connect 9 0 4 0; #X connect 9 1 10 0; #X connect 10 0 24 0; #X connect 11 0 3 0; #X connect 12 0 10 1; #X connect 13 0 4 2; #X connect 15 0 16 0; #X connect 16 0 2 1; #X connect 17 0 18 0; #X connect 19 0 6 0; #X connect 19 1 21 0; #X connect 20 0 6 0; #X connect 21 0 23 0; #X connect 22 0 21 1; #X connect 23 0 20 0; #X connect 23 1 22 0; #X connect 24 0 11 0; #X connect 24 1 12 0; #X connect 24 2 21 1; #X restore 198 271 pd colorpicker; #X connect 1 0 0 0; #X connect 4 0 0 0; #X connect 5 0 4 0; #X connect 6 0 3 0;
Yep, nice patch to select a color when you have many objects.
I have done a patch using only a picture and [pix_data] (like
photoshop), but the iohannes patch is more general.
++
Jack
Le 4 févr. 09 à 16:26, IOhannes m zmoelnig a écrit :
mark edward grimm wrote:
Hello, Is there anyway to choose a color from a Gem window with mouse?
and send RGB value to patch.... I'm thinking gimp/photoshop eye droplet kind of thing.should be rather simple to build with the existing objects. though i should do different things, here's a short sketch.
fgm,asdr IOhannes #N canvas 1355 173 609 613 10; #X obj 69 97 gemwin; #X msg 69 57 create , 1; #N canvas 0 0 799 308 scene 0; #X obj 84 54 gemhead; #X obj 83 116 color 1 0 0; #X obj 81 147 square; #X obj 83 84 translateXYZ -2 2 0; #X obj 299 50 gemhead; #X obj 296 143 square; #X obj 298 80 translateXYZ 2 2 0; #X obj 296 112 color 0 1 0; #X obj 483 49 gemhead; #X obj 480 142 square; #X obj 482 79 translateXYZ 2 -2 0; #X obj 479 110 color 0 0 1; #X obj 644 50 gemhead; #X obj 641 143 square; #X obj 643 80 translateXYZ -2 -2 0; #X obj 248 272 sphere; #X obj 247 190 gemhead; #X obj 250 227 color 1 1 0; #X obj 431 233 gemhead; #X obj 429 259 world_light; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 3 0 1 0; #X connect 4 0 6 0; #X connect 6 0 7 0; #X connect 7 0 5 0; #X connect 8 0 10 0; #X connect 10 0 11 0; #X connect 11 0 9 0; #X connect 12 0 14 0; #X connect 14 0 13 0; #X connect 16 0 17 0; #X connect 17 0 15 0; #X connect 18 0 19 0; #X restore 200 82 pd scene; #X obj 197 300 print color; #X msg 147 150 lighting $1; #X obj 151 131 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #N canvas 0 0 450 522 colorpicker 0; #X obj 108 22 gemhead -1; #X obj 196 26 gemmouse; #X obj 189 182 pack 0 0; #X obj 189 159 f; #X obj 125 316 pix_snap; #X msg 133 289 snap; #X obj 127 429 pix_dump; #X obj 134 213 t b b; #X obj 183 203 t b l b l; #X obj 108 62 t a b; #X obj 157 69 f; #X obj 136 126 select 1; #X msg 193 73 0; #X msg 204 300 1 1; #X obj 138 244 del 0; #X msg 247 69 500 $1; #X obj 250 94 -; #X msg 182 470 $1 $2 $3; #X obj 182 491 outlet; #X obj 124 349 t a b; #X obj 157 408 select 1; #X obj 178 360 f; #X msg 245 377 0; #X obj 180 383 t f b; #X obj 149 92 t f b f; #X connect 0 0 9 0; #X connect 1 0 3 1; #X connect 1 1 15 0; #X connect 1 2 10 1; #X connect 2 0 8 0; #X connect 3 0 2 0; #X connect 4 0 19 0; #X connect 5 0 4 0; #X connect 6 1 17 0; #X connect 7 0 14 0; #X connect 7 1 5 0; #X connect 8 0 7 0; #X connect 8 1 4 1; #X connect 8 2 13 0; #X connect 9 0 4 0; #X connect 9 1 10 0; #X connect 10 0 24 0; #X connect 11 0 3 0; #X connect 12 0 10 1; #X connect 13 0 4 2; #X connect 15 0 16 0; #X connect 16 0 2 1; #X connect 17 0 18 0; #X connect 19 0 6 0; #X connect 19 1 21 0; #X connect 20 0 6 0; #X connect 21 0 23 0; #X connect 22 0 21 1; #X connect 23 0 20 0; #X connect 23 1 22 0; #X connect 24 0 11 0; #X connect 24 1 12 0; #X connect 24 2 21 1; #X restore 198 271 pd colorpicker; #X connect 1 0 0 0; #X connect 4 0 0 0; #X connect 5 0 4 0; #X connect 6 0 3 0; _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Here a patch like iohannes, but using [pix_data] instead of [pix_dump].
Why i get different (wrong) colors with [pix_data] ? For exemple
white is (0.996,0.996,0.996), it should be (1,1,1).
It seems to work perfect with [pix_dump].
++
Jack
Le 4 févr. 09 à 16:50, Jack a écrit :
Yep, nice patch to select a color when you have many objects. I have done a patch using only a picture and [pix_data] (like
photoshop), but the iohannes patch is more general. ++Jack<color_select.pd>
Le 4 févr. 09 à 16:26, IOhannes m zmoelnig a écrit :
mark edward grimm wrote:
Hello, Is there anyway to choose a color from a Gem window with mouse?
and send RGB value to patch.... I'm thinking gimp/photoshop eye droplet kind of thing.should be rather simple to build with the existing objects. though i should do different things, here's a short sketch.
fgm,asdr IOhannes #N canvas 1355 173 609 613 10; #X obj 69 97 gemwin; #X msg 69 57 create , 1; #N canvas 0 0 799 308 scene 0; #X obj 84 54 gemhead; #X obj 83 116 color 1 0 0; #X obj 81 147 square; #X obj 83 84 translateXYZ -2 2 0; #X obj 299 50 gemhead; #X obj 296 143 square; #X obj 298 80 translateXYZ 2 2 0; #X obj 296 112 color 0 1 0; #X obj 483 49 gemhead; #X obj 480 142 square; #X obj 482 79 translateXYZ 2 -2 0; #X obj 479 110 color 0 0 1; #X obj 644 50 gemhead; #X obj 641 143 square; #X obj 643 80 translateXYZ -2 -2 0; #X obj 248 272 sphere; #X obj 247 190 gemhead; #X obj 250 227 color 1 1 0; #X obj 431 233 gemhead; #X obj 429 259 world_light; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 3 0 1 0; #X connect 4 0 6 0; #X connect 6 0 7 0; #X connect 7 0 5 0; #X connect 8 0 10 0; #X connect 10 0 11 0; #X connect 11 0 9 0; #X connect 12 0 14 0; #X connect 14 0 13 0; #X connect 16 0 17 0; #X connect 17 0 15 0; #X connect 18 0 19 0; #X restore 200 82 pd scene; #X obj 197 300 print color; #X msg 147 150 lighting $1; #X obj 151 131 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #N canvas 0 0 450 522 colorpicker 0; #X obj 108 22 gemhead -1; #X obj 196 26 gemmouse; #X obj 189 182 pack 0 0; #X obj 189 159 f; #X obj 125 316 pix_snap; #X msg 133 289 snap; #X obj 127 429 pix_dump; #X obj 134 213 t b b; #X obj 183 203 t b l b l; #X obj 108 62 t a b; #X obj 157 69 f; #X obj 136 126 select 1; #X msg 193 73 0; #X msg 204 300 1 1; #X obj 138 244 del 0; #X msg 247 69 500 $1; #X obj 250 94 -; #X msg 182 470 $1 $2 $3; #X obj 182 491 outlet; #X obj 124 349 t a b; #X obj 157 408 select 1; #X obj 178 360 f; #X msg 245 377 0; #X obj 180 383 t f b; #X obj 149 92 t f b f; #X connect 0 0 9 0; #X connect 1 0 3 1; #X connect 1 1 15 0; #X connect 1 2 10 1; #X connect 2 0 8 0; #X connect 3 0 2 0; #X connect 4 0 19 0; #X connect 5 0 4 0; #X connect 6 1 17 0; #X connect 7 0 14 0; #X connect 7 1 5 0; #X connect 8 0 7 0; #X connect 8 1 4 1; #X connect 8 2 13 0; #X connect 9 0 4 0; #X connect 9 1 10 0; #X connect 10 0 24 0; #X connect 11 0 3 0; #X connect 12 0 10 1; #X connect 13 0 4 2; #X connect 15 0 16 0; #X connect 16 0 2 1; #X connect 17 0 18 0; #X connect 19 0 6 0; #X connect 19 1 21 0; #X connect 20 0 6 0; #X connect 21 0 23 0; #X connect 22 0 21 1; #X connect 23 0 20 0; #X connect 23 1 22 0; #X connect 24 0 11 0; #X connect 24 1 12 0; #X connect 24 2 21 1; #X restore 198 271 pd colorpicker; #X connect 1 0 0 0; #X connect 4 0 0 0; #X connect 5 0 4 0; #X connect 6 0 3 0; _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Jack wrote:
Here a patch like iohannes, but using [pix_data] instead of [pix_dump]. Why i get different (wrong) colors with [pix_data] ? For exemple white is (0.996,0.996,0.996), it should be (1,1,1).
it's a minor bug in pix_data. to correct the values do | [ * 256] | [/ 255] |
mfgasdr IOhannes
Ok, thanx for the tips. ++
Jack
Le 4 févr. 09 à 17:23, IOhannes m zmoelnig a écrit :
Jack wrote:
Here a patch like iohannes, but using [pix_data] instead of
[pix_dump]. Why i get different (wrong) colors with [pix_data] ? For exemple
white is (0.996,0.996,0.996), it should be (1,1,1).it's a minor bug in pix_data. to correct the values do | [ * 256] | [/ 255] |
mfgasdr IOhannes
thats awesome! thanks... you guys rock!
m
--- On Wed, 2/4/09, Jack jack@rybn.org wrote:
From: Jack jack@rybn.org Subject: Re: [PD] Color Picker / Chooser From Gem Window To: "IOhannes m zmoelnig" zmoelnig@iem.at Cc: "pd_list" pd-list@iem.at Date: Wednesday, February 4, 2009, 11:29 AM Ok, thanx for the tips. ++
Jack
Le 4 févr. 09 à 17:23, IOhannes m zmoelnig a écrit :
Jack wrote:
Here a patch like iohannes, but using [pix_data]
instead of
[pix_dump]. Why i get different (wrong) colors with [pix_data]
? For exemple
white is (0.996,0.996,0.996), it should be
(1,1,1).
it's a minor bug in pix_data. to correct the values do | [ * 256] | [/ 255] |
mfgasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list