PathStyle is used for changing the visual styles of items contained within an Illustrator document and is returned by Item#style and Document#currentStyle.
All properties of PathStyle are also reflected directly in Item, i.e.: Item#fillColor.
To set multiple style properties in one go, you can pass an object to Item#style. This is a convenient way to define a style once and apply it to a series of items:
var circleStyle = { fillColor: new RGBColor(1, 0, 0), strokeColor: new GrayColor(1), strokeWidth: 5 }; var path = new Path.Circle(new Point(50, 50), 50); path.style = circleStyle;