Difference between revisions of "Star Layer"

From Synfig Studio :: Documentation
Jump to: navigation, search
m (Angle)
m
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== About Stars ==
+
<!-- Page info -->
 +
{{Title|Star Layer}}
 +
{{Category|Layers}}
 +
{{Category|Geometry}}
 +
{{Category|Primitive Layers}}
 +
{{NewTerminology}}
 +
<!-- Page info end -->
  
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).
+
{{l|Image:Layer_geometry_star_icon.png|64px}}
  
[[Image:Star.png]]
+
== About Star Layers==
  
== Specific Star Layer Parameters ==
+
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).
  
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.
+
[[File:Star Layer 0.63.06.png|frame|none]]
  
The parameters of the Star Layers are:
+
==Parameters of Star Layers==
{| border = "1" cellpadding="2"
+
 
!width = "250" align="left"|
+
The parameters of the star layers are:
* [[Z Depth Parameter|Z Depth]]
+
 
* [[Amount Parameter|Amount]]
+
{|border="0" style="border-collapse"  cellpadding="3" cellspacing="0"  
* [[Blend Method]]
+
|-style="background:#silver"
* [[Colors Dialog|Color]]
+
|'''Name'''||'''Value'''||'''Type''' 
* [[Position Parameter|Position]]
+
|-style="background:#"
* [[Invert Parameter|Invert]]
+
||{{l|Image:Type_real_icon.png|16px}} {{l|Z Depth Parameter|Z Depth}}
* [[Antialiasing Parameter|Antialiasing]]
+
||0.000000
* [[Feather Parameter|Feather]]
+
||real
* [[Feather Parameter#Type_of_Feather|Type of Feather]]
+
 
* [[Winding Style Parameter|Winding Style]]
+
|-style="background:#eeeeee"
* [[#Outer Radius| Outer Radius]]
+
||{{l|Image:Type_real_icon.png|16px}} {{l|Amount Parameter|Amount}}
* [[#Inner Radius| Inner Radius]]
+
||1.000000
* [[#Angle | Angle]]
+
||real
* [[#Points | Points]]
+
 
| [[Image: StarLayerParams.png]]
+
|-style="background:#"
 +
||{{l|Image:type_integer_icon.png|16px}} {{l|Blend Method|Blend Method}}
 +
||Composite
 +
||integer
 +
 
 +
|-style="background:#eeeeee"
 +
||{{l|Image:Type_gradient_icon.png|16px}} {{l|Color Editor Dialog|Color}}
 +
||
 +
{| style="width:95%; height:16px; background:black; color:black" border="1"
 +
|-
 
|}
 
|}
 +
||color
 +
 +
|-style="background:#"
 +
||{{l|Image:Type_vector_icon.png|16px}} Origin
 +
||0.500000u,0.000000u
 +
||vector
 +
 +
|-style="background:#eeeeee"
 +
||{{l|Image:Type_bool_icon.png|16px}} {{l|Invert_Parameter|Invert}}
 +
||
 +
{| style="width:16px; height:16px" border="1"
 +
|-
 +
|}
 +
||bool
 +
 +
|-style="background:#"
 +
||{{l|Image:Type_bool_icon.png|16px}} Antialiasing
 +
||
 +
{| style="width:16px; height:16px" border="1"
 +
|-
 +
|}
 +
||bool
 +
 +
|-style="background:#eeeeee"
 +
||{{l|Image:Type_real_icon.png|16px}} Feather
 +
||0.500000u
 +
||real
 +
 +
|-style="background:#"
 +
||{{l|Image:Type_integer_icon.png|16px}} Type of Feather
 +
||Fast Gaussian Blur
 +
||integer
 +
 +
|-style="background:#eeeeee"
 +
||{{l|Image:Type_integer_icon.png|16px}} Winding Style
 +
||Non Zero
 +
||integer
 +
 +
|-style="background:#"
 +
||{{l|Image:Type_real_icon.png|16px}} Outer Radius
 +
||1.500000u
 +
||real
 +
 +
|-style="background:#eeeeee"
 +
||{{l|Image:Type_real_icon.png|16px}} Inner Radius
 +
||0.500000u
 +
||real
 +
 +
|-style="background:#"
 +
||{{l|Image:Type_angle_icon.png|16px}} Angle
 +
||0.00
 +
||angle
 +
 +
|-style="background:#eeeeee"
 +
||{{l|Image:Type_integer_icon.png|16px}} Points
 +
||5
 +
||integer
 +
 +
|-style="background:#"
 +
||{{l|Image:Type_bool_icon.png|16px}} Regular Polygon
 +
||
 +
{| style="width:16px; height:16px" border="1"
 +
|-
 +
|}
 +
||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 ===
 
=== Outer Radius ===
Line 39: 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 49: 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'''
 
|-
 
|-
|[[Image:Star_40_60.png]] || [[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 60: 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'''
 
|-
 
|-
|[[Image:Star_-40_60.png]] || [[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]]
 
|}
 
|}
  
 
=== Winding Style Hacks ===
 
=== Winding Style Hacks ===
  
You can even play with the [[Winding Style Parameter]] parameter and negative values to obtain some effects:
+
You can even play with the {{l|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  
+
|Inner Radius = '''40'''; Outer Radius = '''-60'''; WS='''even/odd''' || Inner Radius = '''-40'''; Outer Radius = '''60'''; WS='''even/odd'''
 
|-
 
|-
|[[Image:Star_40_-60_even.png]] || [[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 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)):
+
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)):
  
[[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