Announcement

Collapse
No announcement yet.

I could use some help with my custom splash

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I could use some help with my custom splash

    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:

    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);
    What am I doing wrong here?
    Last edited by Guest; Jan 03, 2014, 05:04 PM.

    #2
    Have you thought to simply use the stop motion animation /1/ to rotate the image ?

    The http://gnome-look.org/content/show.p...content=152477 is using stop motion to rotate the Ubuntu logo.


    Links

    1. http://en.wikipedia.org/wiki/Stop_motion
    Last edited by Rog132; Jan 05, 2014, 07:45 AM.
    A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
    Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

    Comment


      #3
      Originally posted by Rog132 View Post
      Have you thought to simply use the stop motion animation /1/ to rotate the image ?

      The http://gnome-look.org/content/show.p...content=152477 is using stop motion to rotate the Ubuntu logo.
      I looked at its script, but it was too complicated for me to follow. Thanks anyways.

      Comment


        #4
        The Earth-sunrise seems to use the 'Rotate' command - Earth-sunrise:

        https://www.kubuntuforums.net/showth...Plymouth-theme
        --> http://askubuntu.com/questions/24857...boot-animation
        ----> http://www.istitutomajorana.it/scari...e-Plus8.tar.gz

        A good place to start: Topic: Top 20 Kubuntu FAQs & Answers
        Searching FAQ's: Google Search 'FAQ from Kubuntuforums'

        Comment


          #5
          I'll check that out, thanks!

          Comment


            #6
            Hmm. Still not having any luck getting it to rotate. I've got it to appear in the center of the screen like I intended, but still no rotation. Here's my current script:

            Code:
            spiral_image = Image("Splash.png");
            spiral_sprite = Sprite(spiral_image);
            
            screen_width = Window.GetWidth();
            screen_height = Window.GetHeight();
            
            spiral_sprite.SetX(screen_width /2 - spiral_image.GetWidth() /2);
            spiral_sprite.SetY(screen_height /2 - spiral_image.GetHeight() /2);
            spiral_sprite.sprite.SetPosition(spiral_sprite.SetX, spiral_sprite.SetY, 0);
            
            time = 0;
            
            fun refresh_callback ()
            {
            time++;
            spiral_sprite.SetImage(spiral_image.Rotate(Math.Sin() * time));
            }
            Plymouth.SetRefreshFunction (refresh_callback);

            Comment

            Working...
            X