Sg2.9
How fillcolor with alpha
Recent RSS
How fillcolor with alpha
From:  Eugen
Date:  8. February 2012, 22:57

hello,
how can i get a path with an outline and a transparent fill.
this script doesnt seem to work:

var circlePath = new Path.Circle(new Point(50, 50), 25);
circlePath.style =
{
fillColor: new RGBColor(1, 0, 0, .2),
strokeColor: new RGBColor(0, 1, 0, .1),
strokeWidth: 5
};

documentation says its possible to have alpha in colors.
but how?
http://scriptographer.org/reference/ai/rgbcolor/

thanks in advance!
eugen

Re: How fillcolor with alpha
From:  pqbd
Date:  9. February 2012, 00:29

Gradients can have an alpha value for each color, not solid fill colors or strokes. If you need to have a transparent stoke, you'll need to use the opacity property of the path.

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
Newton Curve 08.09.11