MaxBittker / sandspiel

Creative cellular automata browser game
https://sandspiel.club
MIT License
2.98k stars 200 forks source link

Paste SVG string to load it into Sandspiel Universe #219

Closed forresto closed 1 year ago

forresto commented 1 year ago

This 300x300 SVG (Cuttle source design, with colors as named parameters.)

Cuttle

pasted into this branch loads to this composition with all Species represented

Color matching is fuzzy, so a range of colors will match:

Figma gradients

There are some holes in the simple HSL grid for future Species. I wouldn't worry about backwards-compatibility, if the colors are translated differently in the future. There could be a less-specific mapping, but after playing with it a bit I wanted to choose the color ranges.

forresto commented 1 year ago

ghostscript tiger

forresto commented 1 year ago

I pushed some tweaks to the SVG size and color parsing. Sand palette - Palette

Test paste: image

forresto commented 1 year ago

Demo: https://youtu.be/zUY6STXu6u0

labbo-lab commented 1 year ago

This is really cool! knowing sandspiel's community i have a feeling this would be abused though

On Thu, Nov 3, 2022 at 8:15 AM Forrest O. @.***> wrote:

Demo: https://youtu.be/zUY6STXu6u0

— Reply to this email directly, view it on GitHub https://github.com/MaxBittker/sandspiel/pull/219#issuecomment-1302100817, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO4YSA33PSQCXYMEACQIHV3WGO3G7ANCNFSM6AAAAAAQVI3SA4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

forresto commented 1 year ago

i have a feeling this would be abused though

Enough to reject the PR? If so I have ideas about making a fork without community/backend features.

MaxBittker commented 1 year ago

I will deploy this when I get back to my linux computer! Thanks for considering the color aspect of this so well Forresto, sorry for being so slow on the rollout :)

UnephenStephenOrSnail commented 1 year ago

quite useful. surprised it isnt being abused. i am literally the first "user" to find out about this. -snail

UnephenStephenOrSnail commented 1 year ago

Also. It would be cool if petal colors worked for this! -snail