Difference between revisions of "Star Layer"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (Playing Around)
m (Angle)
Line 39: Line 39:
 
=== Angle ===
 
=== Angle ===
  
Is the rotation angle for the first peak of the star. Its defaul value is 90 degrees.
+
Is the rotation angle for the first peak of the star. Its default value is 90 degrees.
  
 
=== Points ===
 
=== Points ===

Revision as of 23:06, 2 October 2007

Languages Language: 

English


About Stars

A Star Layer is a geometric object that is made by the filling the region resulting from connecting the points of two concentric circles with straight lines. The number of points on which the circles are divided defines the number of peaks of the star. The points over the circles are spread regularly over both circles but one of them has the points rotated N/360/2 degrees from the other circle (being N the number of peaks or points).

Star.png

Specific Star Layer Parameters

The parameters of the star layers are the same as the majority of the shape-like objects but it has specific parameters for its own properties.

The parameters of the Star Layers are:

StarLayerParams.png

Outer Radius

Defines the radius of the circle where the peaks of the star lay.

Inner Radius

Defines the radius of the circle where the valleys of the star lay.

Angle

Is the rotation angle for the first peak of the star. Its default value is 90 degrees.

Points

Defines the number of divisions done in the circles and therefore the number of points and peaks in the star.

Playing Around

Crazy Radii

The outer radius shouldn't be greater than inner radius. It only changes the star's orientation:

Inner radius = 40; outer radius = 60 Inner radius = 60; outer radius = 40
Star 40 60.png Star 60 40.png

You can also play with negative values:

Inner radius = -40; outer radius = 60 Inner radius = 40; outer radius = -60
Star -40 60.png Star 40 -60.png

Winding Style Hacks

You can even play with the Winding Style Parameter parameter and negative values to obtain some effects:

Inner radius = 40; outer radius = -60; WS=even/odd Inner radius = -40; outer radius = 60; WS=even/odd
Star 40 -60 even.png Star -40 60 even.png

Regular 2N-sided Polygons

Also you can link both radii to create a 2*N sided regular polygon, where N is the number of points (3 points for this case (six sides)):

Star same radius.png


Languages Language: 

English