Exploring raycasters and possibly make a little "doom like" game based on it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
raycaster/scripts/pixelize.ps1

14 lines
467 B

Param (
[string]$InFile,
[string]$OutFile,
[string]$Colors=16,
[string]$Size="256x256",
[string]$Pixel="7"
)
cp $InFile temp.png
# magick temp.png -colors $Colors -quantize sRGB -dither FloydSteinberg color.png
magick temp.png -posterize $Colors -quantize sRGB -dither FloydSteinberg color.png
bash ./scripts/magick/pixelize -s $Pixel -m 2 color.png pixels.png
magick.exe pixels.png -interpolate nearest -interpolative-resize $Size $OutFile