Script file generated from LiVES
modulate2
0.1
Salsaman & Marco
Modulate|Modulating|1|1|
convert
_Brightness start|0|num0|100|0|10000|
B_rightness end|0|num0|100|0|10000|
_Saturation start|0|num0|100|0|10000|
Sa_turation end|0|num0|100|0|10000|
_Hue start|0|num0|100|0|10000|
H_ue end|0|num0|100|0|10000|
_Gamma start|0|num1|1.0|-1000.0|1000.0|
Ga_mma end|0|num1|1.0|-1000.0|1000.0|
_Contrast start|0|num0|0|0|50|
Increase c_ontrast over selection|0|bool|0|
_Enhance start|0|num0|0|0|50|
Increase e_nhance over selection|0|bool|0|
_Increase decontrast over selection|0|bool|0|
_Decontrast start|0|num0|0|0|50|
layout|p1|fill|p2|fill|
layout|p3|fill|p4|fill|
layout|p5|fill|p6|fill|
layout|p7|fill|p8|fill|
layout|p11|fill|p12|fill|
layout|p9|fill|p10|fill|
layout|p14|fill|p13|fill|
0x0001
0xF0
$step1=($p2-$p1)/($end-$start+1);
$step2=($p4-$p2)/($end-$start+1);
$step3=($p6-$p5)/($end-$start+1);
$gstep=($p8-$p7)/($end-$start+1);
$enhance=" -enhance ";
if ($p12) {
$estep="$p11";
}
$el="$p11";
$contrast=" -contrast ";
if ($p10) {
$cstep="$p9";
}
$cl="$p9";
$decontrast=" +contrast ";
if ($p13) {
$dstep="$p14";
}
$dl="$p14";
if ($p12) {
if ($estep <= 50) {
$totenhance=$enhance x $estep;
}
else {
$totenhance=$enhance x 50;
}
$estep++;
}
else {
$totenhance=$enhance x $el;
}
if ($p10) {
if ($cstep <= 50) {
$totcontrast=$contrast x $cstep;
}
else {
$totcontrast=$contrast x 50;
}
$cstep++;
}
else {
$totcontrast=$contrast x $cl;
}
if ($p13) {
if ($dstep <= 50) {
$totdecontrast=$decontrast x $dstep;
}
else {
$totdecontrast=$decontrast x 50;
}
$dstep++;
}
else {
$totdecontrast=$decontrast x $dl;
}
system("$convert_command $in -modulate $p1,$p3,$p5 -gamma $p7 $totcontrast $totdecontrast $totenhance $out");
$p1+=$step1;
$p3+=$step2;
$p5+=$step3;
$p7+=$gstep;