Re-creation of PS2's display clock in Raylib
For Desktop: 'k' to show/hide time, 'j' to enable/disable 'orbs only' mode.
For Mobile: 'Swipe up' to show/hide time, 'Swipe down' to enable/disable 'orbs only' mode
Windows users have the option to set -DDESKTOP_WALLPAPER=ON to build
live wallpaper version of the program.
cmake -S . -B build -DDESKTOP_WALLPAPER=OFF
cmake --build build --config ReleaseBinary will appear in bin/Release directory. Copy resources/ directory there or create a symlink:
ln -s ../../resources resources
mklink resources ../../resources
Note:
Live wallpaper version will ignore resolution and window style parameters. To specify target display for the wallpaper, use -display.
Specify width and height of the window:
crystalclock.exe -width 1920 -height 1080
Specify which display the program should appear on:
crystalclock.exe -width 1920 -height 1080 -display 1
Shorter form:
crystalclock.exe -w 1920 -h 1080 -d 1
Additional flags:
-fullscreen -borderless -undecorated -nosound -nofadein
Parameters can also be specified in config.ini file, place it into resources/
# CrystalClock configuration file
# NOTE: Do not put comments on the same line with properties: width = 1920 # window width
# Boolean properties can also accept integer as value: fullscreen = 1, fullscreen = true
# Properties with invalid values will be ignored
[window]
width = 1920
height = 1080
fullscreen = 0
undecorated = 0
borderless = 0
nofadein = 0
nosound = 0
Jens Roth https://github.com/jensroth-git/RaylibLiveWallpaper Ray https://github.com/raysan5/raylib