Page 1 of 1
Alternative Color Pickers
Posted: Sun Dec 07, 2014 8:22 pm
by richmond62
A recent post on the Use-List about color pickers and the fact that Livecode in an attempt to be
"all things to all men" leverages each operating systems' color picker, rather than have an in-built color picker
(which is used to do, once upon a time - inherited from MetaCard), provoked me . . .
Re: Alternative Color Pickers
Posted: Sun Dec 07, 2014 8:23 pm
by richmond62
One possibility would be to integrate a cross-platform color picker called 'gpick':
https://code.google.com/p/gpick/
Re: Alternative Color Pickers
Posted: Sun Dec 07, 2014 11:16 pm
by richmond62
You can also have fun with this.

- annoy.png (7.98 KiB) Viewed 9129 times
This took me about 30 minutes; so anyone can make something better fairly quickly.
Re: Alternative Color Pickers
Posted: Mon Dec 08, 2014 12:20 am
by dunbarx
Annoying??
I am trying the image as my desktop background. Looks cool.
Craig
Re: Alternative Color Pickers
Posted: Wed Dec 10, 2014 1:21 pm
by richmond62
Re: Alternative Color Pickers
Posted: Wed Dec 10, 2014 8:07 pm
by richmond62
If anybody asks: YES: I ripped-off Apple's Crayon Colour picker.
https://www.dropbox.com/sh/ja47l87gg87s ... C5ORa?dl=0
File: superpick.livecode.zip
I was careful to rip-off the images from my G5 iMac's Mac OS 10.5.8 installation
so I didn't end up with the "flat horrors" now on offer in Mac Yosemite.
If you feel a "desperate urge" to craft your own crayon picker: don't, steal mine: it took hours of extremely tedious work,
and you would be silly to repeat it unnecessarily!
Is this what is called "decompiling" or "reverse engineering" ?
I don't think so: all I did was lift the crayon images from: System/Library/ColorPickers/NSColorPickerCrayon.colorPicker
then separate each 'crayon' into individual PNG images with transparent backgrounds using GIMP.
Then layer the things in Livecode and code each one individually.
Re: Alternative Color Pickers
Posted: Thu Dec 11, 2014 2:11 pm
by RogGuay
Thanks for all the hard work done amazingly fast. Your crayons are beautiful!
Roger
Re: Alternative Color Pickers
Posted: Thu Dec 11, 2014 7:06 pm
by richmond62
"Your crayons are beautiful" . . . well they would be as they are
NOT my crayons, they are lifted from Mac OS 10.5.8 . . .
However, ALL the coding is mine alone.
Re: Alternative Color Pickers
Posted: Fri Jan 23, 2015 8:32 pm
by TonyHecht@gmail.com
What a beautiful color picker!
I'm new to Livecode, and I don't know how (if?) extensible the environment is. Is there a known procedure for integrating this into the Livecode IDE as some kind of extension or something? Or is it intended to just be run standalone, and then one would copy the RGB numbers in wherever you needed them.
Thanks for the beautiful work,
--Tony
Re: Alternative Color Pickers
Posted: Sat Jan 24, 2015 1:54 pm
by richmond62
Well, Tony, to be honest, that colour picker was just knocked together one day when I was in a filthy temper
for no obvious reason and felt that making a colour picker was probably a better way of calming down
than going around the town smashing shop windows!
So, any further considerations such as integration into the IDE were never thought about.
However . . .