Alternative Color Pickers
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Alternative Color Pickers
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 . . .
"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 . . .
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Alternative Color Pickers
One possibility would be to integrate a cross-platform color picker called 'gpick':
https://code.google.com/p/gpick/
https://code.google.com/p/gpick/
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Alternative Color Pickers
You can also have fun with this.
This took me about 30 minutes; so anyone can make something better fairly quickly.
This took me about 30 minutes; so anyone can make something better fairly quickly.
- Attachments
-
- superpick.livecode.zip
- Here it is.
- (31.91 KiB) Downloaded 325 times
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Alternative Color Pickers
Annoying??
I am trying the image as my desktop background. Looks cool.
Craig
I am trying the image as my desktop background. Looks cool.
Craig
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Alternative Color Pickers
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 114
- Joined: Fri Apr 28, 2006 12:10 am
- Location: Seattle
Re: Alternative Color Pickers
Thanks for all the hard work done amazingly fast. Your crayons are beautiful!
Roger
Roger
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Alternative Color Pickers
"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.
NOT my crayons, they are lifted from Mac OS 10.5.8 . . .
However, ALL the coding is mine alone.
-
- Posts: 1
- Joined: Wed Aug 27, 2014 10:30 am
Re: Alternative Color Pickers
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
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
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Alternative Color Pickers
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 . . .
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 . . .