11 March 2024

sprites

System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000

ImageMagick can be used to generate a sprite, e.g. from three 32 x 32 PNG files.

bash-5.1$ convert *.png +append sprite.png
bash-5.1$

The CSS background-positon property can then be used to display the images.

bash-5.1$ cd /tmp
bash-5.1$ git clone -q https://github.com/varehus/homepage.git
bash-5.1$

[   ]



See the previous Post to run on localhost.