Implement choice between gradient and plasma for boot animation shine

This commit is contained in:
Tad 2018-06-25 09:34:50 -04:00
parent 97248d28f2
commit accb8bba37
4 changed files with 10 additions and 5 deletions

View file

@ -97,9 +97,13 @@ export -f generateBootAnimationMask;
generateBootAnimationShine() {
color=$1;
output=$2;
#convert -size 1024x128 -define gradient:angle=90 plasma:"$color" \( +clone -flop \) +append "$output";
convert -size 2048x128 plasma:"$color" "$output";
style=$2;
output=$3;
if [ "$style" = "gradient"]; then
convert -size 1024x128 -define gradient:angle=90 plasma:"$color" \( +clone -flop \) +append "$output";
elif [ "$style" = "plasma" ]; then
convert -size 2048x128 plasma:"$color" "$output";
fi;
}
export -f generateBootAnimationShine;