Sign up ×  So I'm working on an html5/javascript/css3-based
game. Without going into too much detail, I'm thinking of having
the characters be simple 8 or 16-bit style sprites, but I'd like
to allow the user to customize the colors of their character.
Here are some examples of what I'm talking about :  So the
problem I'm having is two-fold:  1) Should I use something other
than a sprite map for my characters, like actually draw them as
shapes and animate them in a canvas element? That way I can fill
the sprite with colors of the user's choosing? My fear there is
that this would be inefficient as far as resources and also
waste a lot of time hand-drawing everything, but could allow
other customization (like height/width etc).  2) Are there
potentially some web apis that would allow you to alter colors
inside of a sprite? I suppose I could do it on the back-end with
GD, but I'm trying to make it entirely in-browser (including
local storage).  It's not a definitive one-answer only question,
but I'm hoping someo