Sg2.9
Problemes with RGBColor
Recent RSS
Problemes with RGBColor
Date:  18. November 2008, 19:07

Hi all, i'm having a problem with the RGBColor, i can't acces the alpha..

obj.style.fill.color = new RGBColor(0.5,0.5,0.5,0.0);

it's working fine for the color chanel, but the alpha doesn't change ?
in fact it does, cause if i print(obj.style.fill.color);

i get:
{ red: 0.5, green: 0.5, blue: 0.5, alpha: 0.0 }

but on the stage i can't see any differences.
Thanks

Re: Problemes with RGBColor
Date:  18. November 2008, 19:27

Use the opacity property of the art item:

path.opacity = 0.1;
Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Convert GPS .csv files to Illustrator paths 28.12.11