First cut of pulling out the relevant parts of my original game to make a little framework.
This commit is contained in:
commit
6a0c9e8d46
177 changed files with 18197 additions and 0 deletions
16
scripts/pixelize.ps1
Normal file
16
scripts/pixelize.ps1
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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 poster.png
|
||||
|
||||
bash ./scripts/magick/pixelize -s $Pixel -m 2 poster.png pixels.png
|
||||
|
||||
magick.exe pixels.png -interpolate nearest -interpolative-resize $Size $OutFile
|
||||
Loading…
Add table
Add a link
Reference in a new issue