Theme Plymouth: chat photographe anime au boot
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
18
scripts/plymouth-theme/photobooth.script
Normal file
18
scripts/plymouth-theme/photobooth.script
Normal file
@@ -0,0 +1,18 @@
|
||||
// Animation du chat photographe
|
||||
frame = 0;
|
||||
total_frames = 20;
|
||||
|
||||
for (i = 0; i < total_frames; i++) {
|
||||
frames[i] = Image("frame-" + String(i).PadLeft(4, "0") + ".png");
|
||||
}
|
||||
|
||||
bg = Image("background.png");
|
||||
|
||||
fun refresh_callback() {
|
||||
bg.Draw(0, 0);
|
||||
frames[frame].Draw(0, 0);
|
||||
frame = (frame + 1) % total_frames;
|
||||
}
|
||||
|
||||
Plymouth.SetRefreshFunction(refresh_callback);
|
||||
Plymouth.SetRefreshRate(5);
|
||||
Reference in New Issue
Block a user