HP_PNG is a $_GET-using, dynamic image creator designed for use with resource bars for PbP games.
Available variables are as follows:
####'c':
- The color of the HP bar, in RGB hex. Defaults to '00dd00' (green)
####'c2':
- The secondary bottom color of the HP bar, in RGB hex. Darker version of 'c' by default.
####'bg':
- The color of the background / empty HP field, in RGB hex. Defaults to '777777' (grey)
####'bg2':
- The secondary bottom color of the background, in RGB hex. Darker version of 'bg' by default.
####'ol':
- The color of the outline, in RGB hex. Defaults to '000000'.
####'w':
- The width of the image in pixels. Defaults to 200 pixels.
####'h':
- The height of the image in pixels. Defaults to 40 pixels.
####'mhp':
- The user's maximum HP. Defaults to 100.
####'chp':
- The users current HP. Defaults to 100.
####'text':
- Display text if exists. Defaults to not display.
Like all $_GET requests, variables should be appended to the end of the URL. For example:
- localhost:8080/dev/index.php?c=dd0000&mhp=543&chp=500&text
- This URL will create a red bar with 500 out of 543 HP, with the HP text overlaid on top of the image.