mirror of
https://github.com/dreamsmasher/Arch-Wireframe-Plymouth-Theme.git
synced 2025-12-30 08:59:34 -06:00
27 lines
701 B
Plaintext
Executable File
27 lines
701 B
Plaintext
Executable File
# Nice colour on top of the screen fading to
|
|
Window.SetBackgroundTopColor (0.0, 0.00, 0.0);
|
|
|
|
# an equally nice colour on the bottom
|
|
Window.SetBackgroundBottomColor (0.0, 0.00, 0.0);
|
|
|
|
# Image animation loop
|
|
for (i = 1; i < 30; i++)
|
|
flyingman_image[i] = Image("progress-" + i + ".png");
|
|
flyingman_sprite = Sprite();
|
|
|
|
|
|
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[1].GetWidth() / 2); # Place in the centre
|
|
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[1].GetHeight() / 2);
|
|
|
|
progress = 1;
|
|
|
|
fun refresh_callback ()
|
|
{
|
|
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 3) % 30]);
|
|
progress++;
|
|
}
|
|
|
|
Plymouth.SetRefreshFunction (refresh_callback);
|
|
|
|
|