CodingTrain / CodingTrain/Suggestion-Box
p5: Instance Mode, Multiple js-files and Library Design
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 570
- Forks
- 85
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hello everybody,
Small is beautiful and I like examples that take only one screen to show. But now that my projects grow bigger, I want to split code into different files. One 'class' per file. Daniel Shiffman explains how in this video: [Multiple js Files - p5.js Tutorial.](https://www.youtube.com/watch?v=Yk18ZKvXBj4) Excellent
Also I am interested in 'namespacing' my p5-projects, because I am in the habit of giving all my Box-objects the name 'boxy', which is kind of silly, though it could be worse. I found one tutorial on [Instance Mode (aka "namespacing") - p5.js Tutorial.](https://www.youtube.com/watch?v=Su792jEauZg)
Now I want to combine these 2 approaches and have my one-per-file objects interact with p5 in Instance Mode.
Ultimately I would like to be confident enough to write my own p5-Library. A tiny example of how to set up a multi-file, namespaced p5-library that behaves well with other code would be of great help. I've got things to share!
Thanks to Daniel Shiffman for the very interesting tutorials, that I watch with a smile and with respect.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Consultez d’abord les tutoriels liés sur plusieurs fichiers JavaScript et p5.js Instance Mode. Définissez un petit exemple de bibliothèque p5.js avec namespace pouvant interagir en toute sécurité avec d’autres codes ; le travail est considéré comme terminé lorsque l’exemple est documenté et démontre clairement la combinaison demandée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 20/100