-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p5.Vector in LocalStorage #3990
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
@outofambit , |
@Exifers I like that idea! This should be relatively straightforward. The serialization happens here and deserialization would be a new switch case here.. @singhvisha it is a good idea to only be assigned to one issue at a time, at least for your first few contributions. If you no longer want to work on #3897, that is definitely okay, just let us know so we can pass the task on to other people that are interested in helping. |
@stalgiag |
Hi @singhvisha! I highly recommend that you work in a branch within your fork. This allows you to work on different parts of p5 independently. So this means that you should have a different branch for every new issue that you work on. Such as:
So for that second branch above, you would make a new branch with something like: I think the easiest way to clean up this work is to make backups, create new branches, add your work back in, and then open new separate pull requests. I will give detailed instructions in #3978 in order to keep this issue thread somewhat on topic. |
Added p5.Vector in localStorags(#3990)
Nature of issue?
Most appropriate sub-area of p5.js?
New feature details:
Hi,
I'm making a small web app where I store some data in localStorage. storeitem and getitem are very handy for this, but somehow it is not supposed to work with p5.Vector (only String|Number|Object|Boolean|p5.Color).
I thought it would be cool if p5 would provide this feature so that we don't have to serialize/deserialize the vectors in the code.
Thanks
The text was updated successfully, but these errors were encountered: