Alternative Color Pickers

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Alternative Color Pickers

Post by richmond62 » Sun Dec 07, 2014 8:22 pm

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 . . .

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Alternative Color Pickers

Post by richmond62 » Sun Dec 07, 2014 8:23 pm

One possibility would be to integrate a cross-platform color picker called 'gpick':

https://code.google.com/p/gpick/
gPick.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Alternative Color Pickers

Post by richmond62 » Sun Dec 07, 2014 11:16 pm

You can also have fun with this.
annoy.png
annoy.png (7.98 KiB) Viewed 7890 times
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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9670
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Alternative Color Pickers

Post by dunbarx » Mon Dec 08, 2014 12:20 am

Annoying??

I am trying the image as my desktop background. Looks cool.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Alternative Color Pickers

Post by richmond62 » Wed Dec 10, 2014 1:21 pm


richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Alternative Color Pickers

Post by richmond62 » Wed Dec 10, 2014 8:07 pm

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!
cPick.png
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.

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Alternative Color Pickers

Post by RogGuay » Thu Dec 11, 2014 2:11 pm

Thanks for all the hard work done amazingly fast. Your crayons are beautiful!

Roger

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Alternative Color Pickers

Post by richmond62 » Thu Dec 11, 2014 7:06 pm

"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.

TonyHecht@gmail.com
Posts: 1
Joined: Wed Aug 27, 2014 10:30 am

Re: Alternative Color Pickers

Post by TonyHecht@gmail.com » Fri Jan 23, 2015 8:32 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Alternative Color Pickers

Post by richmond62 » Sat Jan 24, 2015 1:54 pm

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 . . .

Post Reply

Return to “Off-Topic”