Tinygraphs
avatar generator web service
Install / Use
/learn @taironas/TinygraphsREADME
tinygraphs
tinygraphs is an avatar generator web service. Checkout tinygraphs.com to try it.
Contributors
Blog post:
<a href="http://www.sanarias.com/blog/415BuildingtinygraphsanavatarwebserviceinGo" target="_blank">Building tinygraphs an avatar web service in Go</a>
How to use:
- You can set the HTML source of the image to point directly to tinygraphs.com
<img src="http://tinygraphs.com/squares/helloworld">
- You can save the image and use it directly on your site
- You can
go getthis repo and use it.
just remember to give us credit with a link to tinygraphs.com ;)
Supported routes:
http://tinygraphs.com/squares/anything
http://tinygraphs.com/isogrids/helloworld
http://tinygraphs.com/spaceinvaders/helloworld
http://tinygraphs.com/squares/banner/random?h=50&xs=100
http://tinygraphs.com/squares/banner/random/gradient?theme=frogideas&xs=100
http://tinygraphs.com/isogrids/banner/random?h=50&xt=100
http://tinygraphs.com/isogrids/banner/random/gradient?theme=frogideas&h=50&xt=100
##Lab routes:
http://tinygraphs.com/labs/checkerboard
http://tinygraphs.com/labs/squares/random
http://tinygraphs.com/labs/isogrids/random
http://tinygraphs.com/labs/isogrids/hexa
http://tinygraphs.com/labs/isogrids/hexa16
http://tinygraphs.com/labs/squares/banner/gradient
http://tinygraphs.com/labs/isogrids/banner/gradient
Parameters:
-
size:
tinygraphs.com/squares/hello?size=60 -
formats:
tinygraphs.com/squares/hello?fmt=svgThe default format is
SVG.All routes support SVG format, except
Squareroutes who also support JPEG. -
background and foreground:
tinygraphs.com/squares/hello?bg=ff4008&fg=04d6f2You can specify the color of the background or foreground by using parameters
bgandfgand passing an hexadecimal value of the color: -
theme:
tinygraphs.com/labs/squares/random?theme=frogideasYou can specify the theme you want to take into account in the image.
Here is the list of existing themes:
base
sugarsweets
heatwave
daisygarden
seascape
summerwarmth
bythepool
duskfalling
frogideas
berrypie
-
numcolors:
tinygraphs.com/labs/squares/random?theme=summerwarmth&numcolors=4You can specify the number of colors that you want to render the image. Default value is 2 and can be extended to 4.
-
inv:
tinygraphs.com/squares/hello?theme=frogideas&numcolors=2&inv=1You can specify if you want to see the colors inverted. Default value is false.
invparameter works with theme colors or default (black and white) colors. The number of colors has to be equal to 2. -
order:
tinygraphs.com/squares/hello?theme=frogideas&numcolors=4&order=3&order=2&order=1&order=0You can specify the order in which you want to see the colors by using the
orderparameter. Just add the indexes in which you wish to see the colors to the order array (indexes are zero based) Like so:order=3&order=2&order=1&order=0 -
lines:
tinygraphs.com/isogrids/hello?lines=4
You can specify the number of lines that an isogrid can have using the linesparameter. Default parameter is 6. Value has to be greater or equal to 4.
- colors:
tinygraphs.com/isogrids/hello?lines=4&colors=43e0e8&colors=e84b43
You can specify use you own colors by using the colors parameter and passing hexa colors.

-
banner parameters:
h: height parameter.w: width parameter.xt: number of triangles inisogridbanner in x axis.xs: number of squares insquaresbanner in x axis.theme: tinygraphs theme to use in banner.numcolors: number of colors to take into account when rendering banner.
tinygraphs.com/isogrids/banner/random/gradient?theme=bythepool&numcolors=4
-
random banner parameters:
p: probability of the main color in the banner. Default value is0.5. Values should be between0and1
`tinygraphs.com/labs/i

