[PD] GUI-Edit Abstraction

Hans-Christoph Steiner hans at eds.org
Mon Mar 6 23:26:37 CET 2006



On Mar 5, 2006, at 7:23 PM, Frank Barknecht wrote:

> Hallo,
> João Miguel Pais hat gesagt: // João Miguel Pais wrote:
>
>>> I've been playing with it a bit more.  It is really quite  
>>> complicated.
>>> I was thinking it would be really useful to have some of that  
>>> available
>>> as standalone objects.
>>>
>>> [rgb->pd] for example.  It would be really handy to have an  
>>> object that
>>> converts RGB into Pd's odd format for colors.
>>
>> yeah, that can be isolated. I just copied it from the help patches  
>> of the
>> GUIs. This small patch (which does nothing) can also be helpful to  
>> someone
>> who wants a quick reference to the simple colors of pd.
>
> I made a little rgb2pd thing, maybe you're interested. It uses expr,
> which IMO is easier to read.


That's what I was after.  I made [rgb->pd] which takes in R, G, B on  
inlets and arguments.  The input range is 0-1, like Gem.  It outputs  
the Pd color format.

.hc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgb->pd.pd
Type: application/octet-stream
Size: 1122 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060306/3592f449/attachment.obj>
-------------- next part --------------


________________________________________________________________________ 
____

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.
Now that he can realize them, he must either change them, or perish.
		                                                -William Carlos  
Williams



More information about the Pd-list mailing list