Skip to content

Instantly share code, notes, and snippets.

@ikr7
Created June 19, 2014 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikr7/bcac6930d02e58dd3741 to your computer and use it in GitHub Desktop.
Save ikr7/bcac6930d02e58dd3741 to your computer and use it in GitHub Desktop.
PublicHair API
An API that generates public hair image. Outputs PNG, JPEG, Animated GIF, SVG and JSON.
API Endpoint is "/v1/[width]x[height].[type]". Max size is 1024x1024. If type is "gif", max size is 512x512.
Parameters
amount: Specifies number of hair. defaults to 15. max is 1000.
curly: Specifies curly of hair. defaults to 30. min is 0, max is 360.
length: Specifies length of hair. defaults to 100. min is 0, max is 100.
color: Specifies color of hair. defaults to "black". You can use CSS Colors.
bgcolor: Specifies background color of image. defaults to "rgba(0,0,0,0)". You can use CSS Colors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment