rimworld-blax-slaves/Source/Art/README.md

13 lines
951 B
Markdown
Raw Normal View History

# Preview art
`preview.html` renders `About/Preview.png` (1280x720) and `icon.html` renders `About/ModIcon.png` (256x256), in the Blax CI from https://www.blax.at/ui-ci: Blax black `#050805`, Blax green `#19C63C`, logo gray `#CDCDCD`, Geist for headings, Inter for body, Rajdhani only for the "Blax Gaming" wordmark. Fonts are the woff2 files blax.at self-hosts (all SIL Open Font License); icons are lucide.
Render with Edge headless from this folder:
```powershell
$edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
$here = (Get-Location).Path -replace '\','/'
& $edge --headless=new --disable-gpu --hide-scrollbars --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\preview.png" "file:///$here/preview.html"
& $edge --headless=new --disable-gpu --hide-scrollbars --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\icon.png" "file:///$here/icon.html"
```