Hacker News new | ask | show | jobs
by cypressious 808 days ago
You could serialize the JS representation to Base64 or Base10 if you want it to be numeric.
1 comments

But that's a lot more data than just storing which of the ~2^50 possible faces was generated. You could serialize the entire face including the colors and scaling factors into a much smaller string, or just take one number that is used as a seed for a random number generator that sets the other parameters
The seed version with random parameters doesn't allow you to or your users to design their own. Just random selection until you get one you like, no editing of details.