Difference between revisions of "Star Layer"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (cleanup param list)
m
 
(8 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
{{Title|Star Layer}}
 
{{Title|Star Layer}}
 
{{Category|Layers}}
 
{{Category|Layers}}
 +
{{Category|Geometry}}
 +
{{Category|Primitive Layers}}
 +
{{NewTerminology}}
 
<!-- Page info end -->
 
<!-- Page info end -->
  
Line 8: Line 11:
 
== About Star Layers==
 
== About Star Layers==
  
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).
+
A {{Literal|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).
 
+
{{l|Image:Star.png}}
+
  
 +
[[File:Star Layer 0.63.06.png|frame|none]]
  
 
==Parameters of Star Layers==
 
==Parameters of Star Layers==
Line 17: Line 19:
 
The parameters of the star layers are:
 
The parameters of the star layers are:
  
{|border="0" align="left" style="border-collapse"  cellpadding="3" cellspacing="0"  
+
{|border="0" style="border-collapse"  cellpadding="3" cellspacing="0"  
 
|-style="background:#silver"
 
|-style="background:#silver"
 
|'''Name'''||'''Value'''||'''Type'''   
 
|'''Name'''||'''Value'''||'''Type'''   
Line 36: Line 38:
  
 
|-style="background:#eeeeee"
 
|-style="background:#eeeeee"
||{{l|Image:Type_gradient_icon.png|16px}} {{l|Color Dialog|Color}}
+
||{{l|Image:Type_gradient_icon.png|16px}} {{l|Color Editor Dialog|Color}}
 
||
 
||
 
{| style="width:95%; height:16px; background:black; color:black" border="1"
 
{| style="width:95%; height:16px; background:black; color:black" border="1"
Line 49: Line 51:
  
 
|-style="background:#eeeeee"
 
|-style="background:#eeeeee"
||{{l|Image:Type_bool_icon.png|16px}} Invert
+
||{{l|Image:Type_bool_icon.png|16px}} {{l|Invert_Parameter|Invert}}
 
||
 
||
 
{| style="width:16px; height:16px" border="1"
 
{| style="width:16px; height:16px" border="1"
Line 70: Line 72:
  
 
|-style="background:#"
 
|-style="background:#"
||{{l|Image:Type_integer_icon.png|16px}} Tyep of Feather
+
||{{l|Image:Type_integer_icon.png|16px}} Type of Feather
 
||Fast Gaussian Blur
 
||Fast Gaussian Blur
 
||integer
 
||integer
Line 100: Line 102:
  
 
|-style="background:#"
 
|-style="background:#"
||{{l|Image:Type_bool_icon.png|16px}} Ragular Polygon
+
||{{l|Image:Type_bool_icon.png|16px}} Regular Polygon
 
||
 
||
 
{| style="width:16px; height:16px" border="1"
 
{| style="width:16px; height:16px" border="1"
Line 108: Line 110:
  
 
|}
 
|}
 +
  
  
Line 122: Line 125:
 
=== Angle ===
 
=== Angle ===
  
Is the rotation angle for the first peak of the star. Its default value is 90 degrees.
+
Is the rotation angle for the first peak of the star. Its default value is '''90''' degrees.
  
 
=== Points ===
 
=== Points ===
Line 132: Line 135:
 
=== Crazy Radii ===
 
=== Crazy Radii ===
  
The outer radius shouldn't be greater than inner radius. It only changes the star's orientation:
+
The {{Literal|Outer Radius}} shouldn't be greater than {{Literal|Inner Radius}}. It only changes the star's orientation:
  
 
{|
 
{|
|Inner radius = 40; outer radius = 60 || Inner radius = 60; outer radius = 40  
+
|Inner Radius = '''40'''; Outer Radius = '''60''' || Inner Radius = '''60'''; Outer Radius = '''40'''
 
|-
 
|-
|{{l|Image:Star_40_60.png}} || {{l|Image:Star_60_40.png}}
+
|[[File:Star Layer 40-60 0.63.06.png|500px]] || [[File:Star Layer 60-40 0.63.06.png|500px]]
 
|}
 
|}
  
Line 143: Line 146:
  
 
{|
 
{|
|Inner radius = -40; outer radius = 60 || Inner radius = 40; outer radius = -60  
+
|Inner Radius = '''-40'''; Outer Radius = '''60''' || Inner Radius = '''40'''; Outer Radius = '''-60'''
 
|-
 
|-
|{{l|Image:Star_-40_60.png}} || {{l|Image:Star_40_-60.png}}
+
|[[File:Star_Layer_m40-60_0.63.06.png|500px]] || [[File:Star_Layer_60-m40_0.63.06.png|500px]]
 
|}
 
|}
  
Line 153: Line 156:
  
 
{|
 
{|
|Inner radius = 40; outer radius = -60; WS=even/odd || Inner radius = -40; outer radius = 60; WS=even/odd  
+
|Inner Radius = '''40'''; Outer Radius = '''-60'''; WS='''even/odd''' || Inner Radius = '''-40'''; Outer Radius = '''60'''; WS='''even/odd'''
 
|-
 
|-
|{{l|Image:Star_40_-60_even.png}} || {{l|Image:Star_-40_60_even.png}}
+
|[[File:Star_Layer_m40-60_ws_0.63.06.png|500px]] || [[File:Star_Layer_60-m40_ws_0.63.06.png|500px]]
 
|}
 
|}
  
 
=== Regular 2N-sided Polygons ===
 
=== Regular 2N-sided Polygons ===
  
Also you can {{l|Linking|link}} both radii to create a 2*N sided regular {{l|Polygon Layer|polygon}}, where N is the number of points (3 points for this case (six sides)):
+
Also you can {{l|Linking|link}} both radii to create a '''2*N''' sided regular {{l|Polygon Layer|polygon}}, where '''N''' is the number of points (3 points for this case (six sides)):
  
{{l|Image:Star_same_radius.png}}
+
[[File:Star_Layer_Radius_Linked_0.63.06.png|500px]]

Latest revision as of 13:12, 26 February 2017

Languages Language: 

English


Layer geometry star icon.png

About Star Layers

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 Layer 0.63.06.png

Parameters of Star Layers

The parameters of the star layers are:

Name Value Type
Type real icon.png Z Depth 0.000000 real
Type real icon.png Amount 1.000000 real
Type integer icon.png Blend Method Composite integer
Type gradient icon.png Color
color
Type vector icon.png Origin 0.500000u,0.000000u vector
Type bool icon.png Invert
bool
Type bool icon.png Antialiasing
bool
Type real icon.png Feather 0.500000u real
Type integer icon.png Type of Feather Fast Gaussian Blur integer
Type integer icon.png Winding Style Non Zero integer
Type real icon.png Outer Radius 1.500000u real
Type real icon.png Inner Radius 0.500000u real
Type angle icon.png Angle 0.00 angle
Type integer icon.png Points 5 integer
Type bool icon.png Regular Polygon
bool


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.

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 Layer 40-60 0.63.06.png Star Layer 60-40 0.63.06.png

You can also play with negative values:

Inner Radius = -40; Outer Radius = 60 Inner Radius = 40; Outer Radius = -60
Star Layer m40-60 0.63.06.png Star Layer 60-m40 0.63.06.png

Winding Style Hacks

You can even play with the Winding Style 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 Layer m40-60 ws 0.63.06.png Star Layer 60-m40 ws 0.63.06.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 Layer Radius Linked 0.63.06.png


Languages Language: 

English