Clamp Layer

From Synfig Studio :: Documentation
Jump to: navigation, search
(clamp!)
(About Clamp Layer: Tried to understand function from the source code...)
Line 8: Line 8:
 
{{l|Image:Layer_filter_clamp_icon.png‎|64px}}
 
{{l|Image:Layer_filter_clamp_icon.png‎|64px}}
  
Clamp layer is used to... [write me]
+
Clamp layer is used to limit colours to a certain range of component values.
 +
 
 +
The R, G, B and A (alpha) components of each pixel are forced to lie within the range Floor...Ceiling.
 +
 
 +
If "Clamp Ceiling" is off, then only the Floor is considered.
 +
 
 +
If "Invert Negative" is on, then a pixel with a value of A less than Floor is first negated (-R, -G, -B, -A)
 +
and then something funny happens to raise all the components to at least Floor.  Any ideas what this is for?
  
 
== Parameters of Clamp Layer ==
 
== Parameters of Clamp Layer ==

Revision as of 22:16, 12 April 2011

Languages Language: 

English


This page hasn't been finished yet. Please help.

About Clamp Layer

Layer filter clamp icon.png

Clamp layer is used to limit colours to a certain range of component values.

The R, G, B and A (alpha) components of each pixel are forced to lie within the range Floor...Ceiling.

If "Clamp Ceiling" is off, then only the Floor is considered.

If "Invert Negative" is on, then a pixel with a value of A less than Floor is first negated (-R, -G, -B, -A) and then something funny happens to raise all the components to at least Floor. Any ideas what this is for?

Parameters of Clamp Layer

The parameters of the Clamp Layers are:

Name Value Type
Type bool icon.png Invert Negative
bool
Type bool icon.png Clamp Ceiling
bool
Type real icon.png Ceiling 1.000000 real
Type real icon.png Floor 0.000000 real


Languages Language: 

English