4 ms·
You could serialize the JS representation to Base64 or Base10 if you want it to be numeric.
by cypressious 2y ago
You could serialize the JS representation to Base64 or Base10 if you want it to be numeric.
- wongarsu 2y agoBut 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
- pests 2y agoThe 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.