Skip to content

kfrancoeur/HP_PNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HP_PNG

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages