POV-Ray : Newsgroups : povray.windows : Colour Palette Tool Server Time
24 Nov 2024 18:15:46 EST (-0500)
  Colour Palette Tool (Message 1 to 2 of 2)  
From: Welgan
Subject: Colour Palette Tool
Date: 24 Nov 1998 21:36:33
Message: <365B6D5E.61F63EE1@telusplanet.net>
I made a small Windows utility that I find useful for povray.
If you add it on to your tool menu, it will bring up the Window's
colour palette and allow you to select a colour.  It then puts
your colour on the clipboard in the form of:

rgb<0.2509,0.5019,0.5019>

so you can paste it into your code.

As an added plus, it was written in assembler, so the file size is only
891 bytes zipped :)

http://www.telusplanet.net/public/brbi/povutil/pal2pov.zip

Bug reports are always welcome in an odd sort of way.

Cyrus


Post a reply to this message

From: Bob and Kelly Crispen
Subject: Re: Colour Palette Tool
Date: 13 Jan 1999 23:25:04
Message: <369D71A2.10C6089@hiwaay.net>
Welgan wrote:

> I made a small Windows utility that I find useful for povray.
> If you add it on to your tool menu, it will bring up the Window's
> colour palette and allow you to select a colour.  It then puts
> your colour on the clipboard in the form of:
> 
> rgb<0.2509,0.5019,0.5019>
> 
> so you can paste it into your code.

Lovely.  For other newbies who are just now catching up with this
newsgroup, here's what you do:

Go to the tools menu and select "Edit PVTOOLS.INI", then add the
following lines to Pvtools.ini:

[Menu]
...
Item8=&Color Palette

[Command]
...
Item8=$S %hutilities\pal2pov\pal2povcolour.exe

[Help]
...
Item8=Select a color from the palette

Obviously the pathname in Item8 will be the pathname where you
saved the file.  "%h" is the directory you installed POVRay for
Windows in, with a trailing backslash.

Equally obviously, if you've already got an Item8, name yours
Item9 -- duh!

Then select "Re-Load Tool Menu" from the Tools menu and you should
now see the entry.  Choose the color, select "Add to Custom Colors",
click "OK", and hit CTRL-V in the editor, and voilla!

Thank you very, very much, Cyrus.  Now I don't have to load up my
modeler just to change a color.
--
Bob & Kelly Crispen
cri### [at] hiwaaynet
"And I observe, when any Yahoo comes from London out of Curiosity [to]
visit me at mine own House, we neither of us are able to deliver our
Conceptions in a Manner intelligible to the other."


Post a reply to this message

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