POV-Ray : Newsgroups : povray.binaries.utilities : ColorPicker Server Time
23 Dec 2024 11:51:08 EST (-0500)
  ColorPicker (Message 1 to 1 of 1)  
From: Bob and Kelly Crispen
Subject: ColorPicker
Date: 28 Feb 1999 13:09:07
Message: <36D985A8.2C17593D@hiwaay.net>
Some time ago Cyrus Welgan published on povray.windows a cute little
tool that pops up standard Windows color picker window and lets you
pick out a color.  It copies the POVRay color string that corresponds
to the color to the clipboard where you can then paste it into the
POVRay editor.

Cyrus must not have thought it was all that cool, since it isn't on
his website and the only place you can find it is povray.windows --
he probably confused how easy it was to write with how useful it can
be -- but I sure liked it.

So I reverse engineered it (with liberal help from Petzold's book,
being *much* more of a Win32 API novice than Cyrus) and had it create
a VRML color string -- same thing as the POVRay string, except no
"rgb", no angle brackets and no commas -- and published it at
http://home.hiwaay.net/~crispen/src/#ColorPicker

It includes the Win32 executable and all the sources.  I compiled
it in lcc.  Haven't tried egcs or Cygnus, but it shouldn't be that
hard to adapt if you've got a different compiler.

So if you want a POVRay color picker, grab Cyrus Welgan's from
the newsgroup -- see the followup note on the newsgroup on how
to integrate it into POVRay -- and if you want to play with the
source, you can get it from my site.

If the POVRay team wants to adapt my source for the next version,
they're welcome to it -- it's not like it was hard or anything.
--
Bob Crispen
cri### [at] hiwaaynet
'T is with our judgments as our watches,--none 
Go just alike, yet each believes his own.
-- Alexander Pope: _Essay on Criticism_


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.