I'm currently trying to make a custom Plymouth splash that has an image centered on the screen that rotates. I've tested it using both the X11 plugin and system reboots; neither showed it successfully. Here's the script that I currently have:
What am I doing wrong here?
Code:
spiral_image = Image("Splash.png");
spiral_sprite = Sprite(spiral_image);
spiral_sprite.SetX(window.GetWidth() /2 - spiral_image.GetWidth() /2);
spiral_sprite.SetY(window.GetHeight() /2 - spiral_image.GetHeight() /2);
fun refresh_callback ()
{
time++;
theta = time / 100;
spiral_sprite.Rotate(theta);
}
Plymouth.SetRefreshFunction (refresh_callback);


Comment