Elive E27 Animated Background

No, not at all, I didn't know, it's very interesting, I'll try. For the distortion of square screens, I can't do anything, since we use the basic dimensions of the wallpaper. Well, the square screen I had was for my Amiga 500. :slight_smile:

yeah but the boot (plymouth) is an entirely different technology than EDC, if you know how to modify it in order to keep the aspect could be nice, I didn't spent more time on that theme:

sudo scite /usr/share/plymouth/themes/elive-retrowave/elive-retrowave.script

yes you can keep the aspect on it, try this setting for the BG:

aspect: 1.0 1.0;
aspect_preference: NONE;

or, also try to add this line after group:

      data { item: "style" "0"; }

try it also setting it to 4

1 Like

I'll try
Animated background shared: retrowave-BG - pling.com
If it works, I will update the download.

Better use a git repo :happy:

Remember: we have 2 EDC grapihcal editors: "enventor" and "eflete", they may have bugs but can be useful to play with them

In order to free up resources, you can make the animation to only happen when the mouse-in event (hovering the logo), run for 1 minute and then stop until the next mouse-in... but you will probably need to set an embryo (script) state to not trigger "from zero" the animation everytime the mouse moves on it

2 Likes

I came across this at Plymouth | Not a Number
It scales a flower image to the height or width (which will cut parts of the image) of the screen while keeping the aspect ratio:

flower_image = Image("flower.png");

screen_ratio = Window.GetHeight() / Window.GetWidth();
flower_image_ratio = flower_image.GetHeight() / flower_image.GetWidth();

if (screen_ratio > flower_image_ratio)
  {  # Screen ratio is taller than image ratio, we will match the screen height
     scale_factor =  Window.GetHeight() / flower_image.GetHeight();
  }
else
  {  # Screen ratio is wider than image ratio, we will match the screen width
     scale_factor =  Window.GetWidth() / flower_image.GetWidth();
  }

scaled_flower_image = flower_image.Scale(flower_image.GetWidth()  * scale_factor,
                                         flower_image.GetHeight() * scale_factor);
flower_sprite = Sprite(scaled_flower_image); # Create the a sprite using the scaled image

flower_sprite.SetX(Window.GetWidth()  / 2 - scaled_flower_image.GetWidth () / 2); # Place in the centre
flower_sprite.SetY(Window.GetHeight() / 2 - scaled_flower_image.GetHeight() / 2);
flower_sprite.SetZ(-10000); # Place right at the back

My current machine (yet another X1 :w00t: ) I'm typing on only has 'elive-vortex-glow'.
It's getting late here but I'll have a go tomorrow at the 'elive-retrowave.script'
It seems simple enough.:innocent:

To be fair, most screens have a similar aspect ratio these days it's only very old ones that have i.e a 4:3 ratio so I don't think it will really bother @triki1 's background.

For plymouth it could be a point considering Elive prides itself for being good for older hardware.
This "cutting" off the edges is a thing to be reckoned with when making a background image choice. :thinking: