mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Implement choice between gradient and plasma for boot animation shine
This commit is contained in:
parent
97248d28f2
commit
accb8bba37
4 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue