[javascript-dev] transparency in jsui
Emmanuel Jourdan
c74-mailinglists at e--j.com
Tue May 20 01:33:15 MDT 2008
- Previous message: [javascript-dev] transparency in jsui
- Next message: [javascript-dev] Javascript documentation.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 20 mai 08, at 07:31, Stefan Tiedje wrote:
> Too bad, is there a way to find out the colour a jsui is sitting on?
> The I could do a fake transparency...
suckhah? If you need real transparency, you can also send commands to
lcd.
> I tried this and simply added:
>
> declareattribute(vbrgb);
> declareattribute(vfrgb);
> declareattribute(vrgb2);
>
> and yes they show up, but instead of the attribute name I see the
> default values, not too helpful as description, and when changing
> them they don't seem to pass the values...
>
> And if it would work, it would be nice if the examples of all these
> jsui examples in the help file reflect this. Then it would not be
> necessary to define the colours with arguments...
Here's an example. It display toto and bgcolor as attribute name in
the inspector. bgcolor is saved with the patcher.
var toto = 74;
var bgcolor = [ 1., 1., 0.6, 0.8 ];
declareattribute("toto");
declareattribute("bgcolor", null, null, 1);
function bang()
{
post(toto, "\n");
post(bgcolor, "\n");
}
ej
- Previous message: [javascript-dev] transparency in jsui
- Next message: [javascript-dev] Javascript documentation.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
