Skip to content

About

ASCII clownfish Windows screensaver and Lively wallpaper, adapted from ASCII Lab

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Clownfish screensaver

This project extends the original work of sapozhkov: the Clownfish & anemone scene from ASCII Lab. It packages that animation so you can use it directly on Windows, as a screensaver or as an animated desktop wallpaper. The simulation, art and animation are sapozhkov's. This project adds the Windows screensaver, the widened 16:9 view and the wallpaper video.

The original is a tall 90-column frame. Here it is widened to 274 columns so it fills a 16:9 screen. The fish, its 22-second route, the anemone and the camera that follows the fish (zoom included) are unchanged. Every monitor gets a copy. Any key press, click or mouse movement closes it.

Install

  1. Copy the screensaver into the Windows system folder, so it is listed with the built-in ones (this asks for admin approval):
    Start-Process powershell -Verb RunAs -ArgumentList '-NoProfile', '-Command', "Copy-Item -LiteralPath '$PWD\saver\ClownfishSaver.scr' -Destination '$env:WINDIR\System32\Clownfish.scr' -Force"
    Run it from this folder. Do it again after every rebuild, because Windows runs the copy, not saver\ClownfishSaver.scr.
  2. In Settings → Personalization → Lock screen → Screen saver, pick Clownfish from the list, set the wait time and click OK.

To try it straight away, double-click the .scr file.

Animated wallpaper (Lively Wallpaper)

wallpaper\clownfish_1080p30.mp4 is the same wide scene as a 22-second seamless loop: H.264 High, 1920x1080, 30 fps, about 26 MB. In Lively Wallpaper, click + (Add wallpaper), choose the file, then set it as your wallpaper.

Rebuild it from the baked frames (needs FFmpeg, installed with winget install Gyan.FFmpeg):

.\.venv\Scripts\python.exe -I bake\make_mp4.py upstream saver\data\wide.bin.gz wallpaper\clownfish_1080p30.mp4 "$env:LOCALAPPDATA\Microsoft\WinGet\Links\ffmpeg.exe"

How it is built

The original is a Python/NumPy simulation that is too heavy to run live, so it is baked once:

Path What it is
upstream/ The unmodified clownfish.py and helpers from the ASCII Lab repo
bake/bake.py Runs the simulation and records every frame's characters and colours to saver/data/wide.bin.gz
bake/wide_preview.py Saves sample PNGs of the widened scene
saver/ClownfishSaver.cs The screensaver. It plays the frames back, draws the letters with Consolas and recreates the original glow.
saver/build.ps1 Compiles the .scr with the C# compiler built into Windows and embeds the frame data, so the screensaver is a single file

Rebuild

.\.venv\Scripts\python.exe -I bake\bake.py upstream wide saver\data\wide.bin.gz
.\saver\build.ps1

ClownfishSaver.scr /r out.png <seconds> <width> <height> renders one screensaver frame to a file.

The earlier three-panel version is still available from bake.py: center bakes the original 90 columns and still bakes a fish-less anemone. The current screensaver code no longer uses them.

Credit and licence

The animation, simulation and art belong to the ASCII Lab author. Their repository has no licence file, so this adaptation is for personal use. Ask the author before sharing the .scr or the baked frames.

About

ASCII clownfish Windows screensaver and Lively wallpaper, adapted from ASCII Lab

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages