Clamp Layer
From Synfig Studio :: Documentation
(→About Clamp Layer: Tried to understand function from the source code...) |
m |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
{{Title|Clamp Layer}} | {{Title|Clamp Layer}} | ||
{{Category|Layers}} | {{Category|Layers}} | ||
+ | {{Category|Filters}} | ||
+ | {{NewTerminology}} | ||
<!-- Page info end --> | <!-- Page info end --> | ||
− | |||
− | |||
{{l|Image:Layer_filter_clamp_icon.png|64px}} | {{l|Image:Layer_filter_clamp_icon.png|64px}} | ||
+ | This page hasn't been finished yet. Please help. | ||
+ | |||
+ | == About Clamp Layer == | ||
Clamp layer is used to limit colours to a certain range of component values. | Clamp layer is used to limit colours to a certain range of component values. | ||
Line 19: | Line 22: | ||
== Parameters of Clamp Layer == | == Parameters of Clamp Layer == | ||
The parameters of the Clamp Layers are: | The parameters of the Clamp Layers are: | ||
− | {| | + | {|{{Parameters}} |
− | |-style="background: | + | |
− | + | |-style="background:#" | |
− | + | ||
||{{l|Image:Bool_icon.png|16px}} Invert Negative | ||{{l|Image:Bool_icon.png|16px}} Invert Negative | ||
− | || | + | || {{Bool|}} |
− | {| | + | |
− | + | ||
− | + | ||
||bool | ||bool | ||
+ | |||
|-style="background:#eeeeee" | |-style="background:#eeeeee" | ||
||{{l|Image:Bool_icon.png|16px}} Clamp Ceiling | ||{{l|Image:Bool_icon.png|16px}} Clamp Ceiling | ||
− | || | + | || {{Bool|}} |
− | {| | + | |
− | + | ||
− | + | ||
||bool | ||bool | ||
− | |- | + | |
+ | |-style="background:#" | ||
||{{l|Image:Real_icon.png|16px}} Ceiling | ||{{l|Image:Real_icon.png|16px}} Ceiling | ||
||1.000000 | ||1.000000 | ||
||real | ||real | ||
+ | |||
|-style="background:#eeeeee" | |-style="background:#eeeeee" | ||
||{{l|Image:Real_icon.png|16px}} Floor | ||{{l|Image:Real_icon.png|16px}} Floor | ||
||0.000000 | ||0.000000 | ||
||real | ||real | ||
+ | |||
+ | |- | ||
|} | |} |
Latest revision as of 16:34, 2 March 2017
This page hasn't been finished yet. Please help.
About Clamp Layer
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 | |
Invert Negative | |
bool | |
Clamp Ceiling | |
bool | |
Ceiling | 1.000000 | real | |
Floor | 0.000000 | real |