# Project Guidance

**URL:** https://discourse.processing.org/c/p5js/p5js-guidance/23.md?page=1

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 2

---

## [Issue when synchronizing several devices with second()](https://discourse.processing.org/t/issue-when-synchronizing-several-devices-with-second/39470)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 6:32pm UTC](https://discourse.processing.org/t/issue-when-synchronizing-several-devices-with-second/39470 "2022-10-28T18:32:40Z")

</div>

I’m doing a music synchronization code but in my imagination all devices works on the same clock. Is this not true? When I execute this code on three devices (mi laptop, cellphone, and Android Tablet) the all go in diff…

---

## [Publish p5 project](https://discourse.processing.org/t/publish-p5-project/38841)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 7:24am UTC](https://discourse.processing.org/t/publish-p5-project/38841 "2022-09-20T07:24:57Z")

</div>

Hey, I have a p5 project on my computer (HTML, CSS, a few js scripts, and some audio files) and I want to publish it. I can’t use the p5 web editor because the audio files are too big. What is the best way to do it? I …

---

## [HTML as texture in WEBGL](https://discourse.processing.org/t/html-as-texture-in-webgl/38600)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 0\
**Last updated:** [September 1, 2022, 1:01pm UTC](https://discourse.processing.org/t/html-as-texture-in-webgl/38600 "2022-09-01T13:01:00Z")

</div>

Hello. Is it possible to use a HTML as texture in a 3D object? Lets say I have a tweet card like this: That have been generated by a code like this (from tweet embed code, this is not the one for this particular tw…

---

## [Understanding p5 server side with node](https://discourse.processing.org/t/understanding-p5-server-side-with-node/38498)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 12\
**Last updated:** [August 30, 2022, 9:52am UTC](https://discourse.processing.org/t/understanding-p5-server-side-with-node/38498 "2022-08-30T09:52:58Z")

</div>

How does p5js and node integrate? There is 2 ways as I’ve found: serving a js file to be executed in the client and a implementation using node-canvas found at npm: node-p5 here. Although, I got a little confused, as the…

---

## [How does the P5 web editor sandbox code?](https://discourse.processing.org/t/how-does-the-p5-web-editor-sandbox-code/38456)

<div class="topic-metadata">

**Author:** [@dayetown](https://discourse.processing.org/u/dayetown)\
**Replies:** 1\
**Last updated:** [August 22, 2022, 4:39pm UTC](https://discourse.processing.org/t/how-does-the-p5-web-editor-sandbox-code/38456 "2022-08-22T16:39:24Z")

</div>

How does the P5 web editor take user code and run it while disallowing malicious user access. Does it simply use the eval function? Or does it interpret a subset of js on its own? Or neither? Asking because I’d like to …

---

## [Advice regarding reading .mat file in p5.js](https://discourse.processing.org/t/advice-regarding-reading-mat-file-in-p5-js/38437)

<div class="topic-metadata">

**Author:** [@ramith](https://discourse.processing.org/u/ramith)\
**Replies:** 5\
**Last updated:** [August 21, 2022, 6:40pm UTC](https://discourse.processing.org/t/advice-regarding-reading-mat-file-in-p5-js/38437 "2022-08-21T18:40:21Z")

</div>

Hi ! A js newbie here… I’m trying to read a .mat file through p5.js I found this library, but cannot quite integrate it with p5.js Any pointers would be really helpful. Thanks!!

---

## [\[P5\] Can I import IP camera video data?](https://discourse.processing.org/t/p5-can-i-import-ip-camera-video-data/36580)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [April 25, 2022, 2:30am UTC](https://discourse.processing.org/t/p5-can-i-import-ip-camera-video-data/36580 "2022-04-25T02:30:14Z")

</div>

\[P5\] Can I import IP camera video data? Please refer to the photo above. In JAVA Mode (1) Video library (2) IP Capture library (3) VLCJVideo library It can be solved through In P5 Mode Do you have any solution…

---

## [Nowadays, p5.js website is supported by which Java version?](https://discourse.processing.org/t/nowadays-p5-js-website-is-supported-by-which-java-version/35908)

<div class="topic-metadata">

**Author:** [@dikshashukla455](https://discourse.processing.org/u/dikshashukla455)\
**Replies:** 5\
**Last updated:** [March 25, 2022, 7:29pm UTC](https://discourse.processing.org/t/nowadays-p5-js-website-is-supported-by-which-java-version/35908 "2022-03-25T19:29:52Z")

</div>

Hello everyone, This is Diksha shukla. I am a front-end developer and programmer. I am excited to contribute to the processing foundation. I was started to contribute to the p5.js website but got stuck in the setup part…

---

## [Converting 2d output to 3d](https://discourse.processing.org/t/converting-2d-output-to-3d/35210)

<div class="topic-metadata">

**Author:** [@elonmusk](https://discourse.processing.org/u/elonmusk)\
**Replies:** 1\
**Last updated:** [March 5, 2022, 9:32pm UTC](https://discourse.processing.org/t/converting-2d-output-to-3d/35210 "2022-03-05T21:32:32Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello Team, I was given a task, I was able to get the output in 2D format, but I have to make use use of 3D perlin noise for my output. What i…

---

## [How to create this kind of curve?](https://discourse.processing.org/t/how-to-create-this-kind-of-curve/35011)

<div class="topic-metadata">

**Author:** [@liukov](https://discourse.processing.org/u/liukov)\
**Replies:** 12\
**Last updated:** [February 9, 2022, 3:23pm UTC](https://discourse.processing.org/t/how-to-create-this-kind-of-curve/35011 "2022-02-09T15:23:14Z")

</div>

Hello, I recently found about this animation on instagram and wonder how it was made. Do you have any idea how to create a similar shape ? By similar I mean a closed space-filling curve with pleats of similar size …

---

## [Access the magnetometer sensor](https://discourse.processing.org/t/access-the-magnetometer-sensor/33605)

<div class="topic-metadata">

**Author:** [@sasharvrn](https://discourse.processing.org/u/sasharvrn)\
**Replies:** 3\
**Last updated:** [January 3, 2022, 4:06pm UTC](https://discourse.processing.org/t/access-the-magnetometer-sensor/33605 "2022-01-03T16:06:41Z")

</div>

Hello, I am working on a project to display and test the phone’s sensors (accelerometer, gyroscope etc) by using p5.js. I can’t find any information to access the magnetometer sensor, is there something implemented in P5…

---

## [How to obfuscate P5js?](https://discourse.processing.org/t/how-to-obfuscate-p5js/34245)

<div class="topic-metadata">

**Author:** [@nemecsek69](https://discourse.processing.org/u/nemecsek69)\
**Replies:** 2\
**Last updated:** [December 31, 2021, 4:20pm UTC](https://discourse.processing.org/t/how-to-obfuscate-p5js/34245 "2021-12-31T16:20:22Z")

</div>

I embedded some P5js sketches in another app (python+flask). Any way to obfuscate P5js code? How is the code in Hungry Bird 3: Drop a seed obfuscated obtained? I tried some javascript minifiers online and offline ( YU…

---

## [Is there any way to upload a p5.js game to the galaxy store?](https://discourse.processing.org/t/is-there-any-way-to-upload-a-p5-js-game-to-the-galaxy-store/33799)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [December 19, 2021, 3:13am UTC](https://discourse.processing.org/t/is-there-any-way-to-upload-a-p5-js-game-to-the-galaxy-store/33799 "2021-12-19T03:13:25Z")

</div>

I tried to figure out if you can upload a p5.js game to the galaxy store but I’m struggling to do it. I’m especially having trouble with this I have no idea what I have to but in here. well it’s probably the binary …

---

## [\[p5.js\] Web page source code security issues / How can I do 'p5 Encryption'?](https://discourse.processing.org/t/p5-js-web-page-source-code-security-issues-how-can-i-do-p5-encryption/34094)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 14\
**Last updated:** [December 19, 2021, 1:58am UTC](https://discourse.processing.org/t/p5-js-web-page-source-code-security-issues-how-can-i-do-p5-encryption/34094 "2021-12-19T01:58:27Z")

</div>

\[p5.js\] Web page source code security issues Hello. You can easily create web pages through ‘p5.js’. good. However, I am curious about one thing. Can’t you hide the code? If you press the ‘F12’ button after implementi…

---

## [How to upload p5js game from openprocessing.org to itch.io?](https://discourse.processing.org/t/how-to-upload-p5js-game-from-openprocessing-org-to-itch-io/33781)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [November 29, 2021, 8:36am UTC](https://discourse.processing.org/t/how-to-upload-p5js-game-from-openprocessing-org-to-itch-io/33781 "2021-11-29T08:36:33Z")

</div>

i would like to upload this game to itch.io, how do i do this?

---

## [P5.js Output for projection Mapping](https://discourse.processing.org/t/p5-js-output-for-projection-mapping/17587)

<div class="topic-metadata">

**Author:** [@LaserCrafterLP](https://discourse.processing.org/u/LaserCrafterLP)\
**Replies:** 3\
**Last updated:** [November 26, 2021, 3:12am UTC](https://discourse.processing.org/t/p5-js-output-for-projection-mapping/17587 "2021-11-26T03:12:45Z")

</div>

Heyho Guys^^ right now Im working on a Project in witch we would like to project some reactive Visuals we made in P5.js onto a Wall in the City. Right now in our normal workflow we are using Resolume for the mapping pa…

---

## [System Performance](https://discourse.processing.org/t/system-performance/33702)

<div class="topic-metadata">

**Author:** [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Replies:** 2\
**Last updated:** [November 24, 2021, 9:42pm UTC](https://discourse.processing.org/t/system-performance/33702 "2021-11-24T21:42:55Z")

</div>

I will be upgrading to a 4k display from the current 1080P. I realize that at times, the increased pixel count will decrease my framerate/ performance. So I am trying to decide if a new system is warranted (or not). For …

---

## [Use Webgl2 in p5js](https://discourse.processing.org/t/use-webgl2-in-p5js/33695)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [November 23, 2021, 5:45pm UTC](https://discourse.processing.org/t/use-webgl2-in-p5js/33695 "2021-11-23T17:45:54Z")

</div>

Is there any way (with example prefered), to use WEBGL2? I have to make quite advanced shaders, that at this point I would prefer to move to three.js then missing out on certain shader features.

---

## [Interactive sketches](https://discourse.processing.org/t/interactive-sketches/33602)

<div class="topic-metadata">

**Author:** [@jarlook](https://discourse.processing.org/u/jarlook)\
**Replies:** 0\
**Last updated:** [November 19, 2021, 1:03am UTC](https://discourse.processing.org/t/interactive-sketches/33602 "2021-11-19T01:03:33Z")

</div>

Several years ago I used Processing to create sketches for my chess visualization project. I created videos of the sketches and stored them on Vimeo, for viewing on a website. I am returning to that project, but now wa…

---

## [P5 and InfluxDB](https://discourse.processing.org/t/p5-and-influxdb/32496)

<div class="topic-metadata">

**Author:** [@Jhdgkss](https://discourse.processing.org/u/Jhdgkss)\
**Replies:** 0\
**Last updated:** [September 28, 2021, 10:09pm UTC](https://discourse.processing.org/t/p5-and-influxdb/32496 "2021-09-28T22:09:07Z")

</div>

Hi, all has anyone used P5.js to read data from a time-series database such as InfluxDB. If so is there any example code?

---

## [I could use some help to reverse engineer this artwork :)](https://discourse.processing.org/t/i-could-use-some-help-to-reverse-engineer-this-artwork/32181)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 2\
**Last updated:** [September 18, 2021, 6:30pm UTC](https://discourse.processing.org/t/i-could-use-some-help-to-reverse-engineer-this-artwork/32181 "2021-09-18T18:30:28Z")

</div>

Hello, I came across a couple of artworks that I really appreciate. I’m very intrigued by these results, and I’m absolutely struggling to reverse engineer the way it has been done. One of the most beautiful example I …

---

## [How to get this texture?](https://discourse.processing.org/t/how-to-get-this-texture/32157)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 5\
**Last updated:** [September 12, 2021, 10:00am UTC](https://discourse.processing.org/t/how-to-get-this-texture/32157 "2021-09-12T10:00:28Z")

</div>

Hello, I’m trying to work on adding more textures to my work. I’d like to understand how this type of texture can be achieved. Thanks for your help.

---

## [Combine 2 projects](https://discourse.processing.org/t/combine-2-projects/31921)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 10:20pm UTC](https://discourse.processing.org/t/combine-2-projects/31921 "2021-08-25T22:20:04Z")

</div>

Hey, What is the best way to combine 2 projects together? The two of them are in the same screen size (full), and I want to make 1 project that the user can select which project to watch and the go back to the other on…

---

## [Web Assembly (WASM) best practices for p5.js andeditor.p5js.org?](https://discourse.processing.org/t/web-assembly-wasm-best-practices-for-p5-js-andeditor-p5js-org/28111)

<div class="topic-metadata">

**Author:** [@danbri](https://discourse.processing.org/u/danbri)\
**Replies:** 2\
**Last updated:** [August 18, 2021, 10:54pm UTC](https://discourse.processing.org/t/web-assembly-wasm-best-practices-for-p5-js-andeditor-p5js-org/28111 "2021-08-18T22:54:07Z")

</div>

Hello! I spent a while making sure this post had lots of useful links, but couldn’t post it because new users only get 2 links. Which is fair enough but I feel I’m being needy if I just ask without trying to share what …

---

## [Equirectangular sketches](https://discourse.processing.org/t/equirectangular-sketches/30626)

<div class="topic-metadata">

**Author:** [@JuanIrache](https://discourse.processing.org/u/JuanIrache)\
**Replies:** 6\
**Last updated:** [June 14, 2021, 11:03am UTC](https://discourse.processing.org/t/equirectangular-sketches/30626 "2021-06-14T11:03:18Z")

</div>

Hi, I’m trying to draw things on top of a 360 equirectangular image. The problem is, of course elements I draw won’t keep their proportions when viewed with a 360 viewer. Is there any library or technique that would he…

---

## [Mapping mouse position of user screen to](https://discourse.processing.org/t/mapping-mouse-position-of-user-screen-to/30574)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 3\
**Last updated:** [June 12, 2021, 3:37pm UTC](https://discourse.processing.org/t/mapping-mouse-position-of-user-screen-to/30574 "2021-06-12T15:37:20Z")

</div>

I want to synchronize the stream projection of an environment video (youtube stream) with some geometrical objects drawn in it (e.g. little non intersecting circles) in such a way that a user on a smartphone or pc monito…

---

## [How many ways to make an eraser and how to do that?](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.processing.org/u/turtle)\
**Replies:** 3\
**Last updated:** [April 17, 2021, 5:22pm UTC](https://discourse.processing.org/t/how-many-ways-to-make-an-eraser-and-how-to-do-that/29433 "2021-04-17T17:22:54Z")

</div>

I am going to make a sketch board and it needs one eraser, I have made one but it’s not nice enough. Maybe you guys can make some awesome. Looking forward you reply :grinning:.

---

## [Simple question](https://discourse.processing.org/t/simple-question/28937)

<div class="topic-metadata">

**Author:** [@Rodrigo](https://discourse.processing.org/u/Rodrigo)\
**Replies:** 2\
**Last updated:** [March 29, 2021, 12:10pm UTC](https://discourse.processing.org/t/simple-question/28937 "2021-03-29T12:10:02Z")

</div>

Hello, I’m a beginner in P5 library, is it possible drawing an interactive diagram similar to the image (below). ? each square represents walkways. each yellow (x) represent pieces that can be repaired depending if t…

---

## [Data Visualizations in p5.js](https://discourse.processing.org/t/data-visualizations-in-p5-js/28946)

<div class="topic-metadata">

**Author:** [@Quorum](https://discourse.processing.org/u/Quorum)\
**Replies:** 1\
**Last updated:** [March 29, 2021, 11:47am UTC](https://discourse.processing.org/t/data-visualizations-in-p5-js/28946 "2021-03-29T11:47:42Z")

</div>

Good morning everyone, I am studying p5.js, but my skills are basic. I would like to learn how to approach it creatively and so I would like to see some data visualizations for inspiration and to learn new ways of usin…

---

## [Need help with trigonometry or circle geometry](https://discourse.processing.org/t/need-help-with-trigonometry-or-circle-geometry/28773)

<div class="topic-metadata">

**Author:** [@Yom](https://discourse.processing.org/u/Yom)\
**Replies:** 10\
**Last updated:** [March 26, 2021, 4:51am UTC](https://discourse.processing.org/t/need-help-with-trigonometry-or-circle-geometry/28773 "2021-03-26T04:51:24Z")

</div>

Hello! For a little project, I would like to put rectangles around a circle… with a twist : the length of the rectangle, the space between each rectangle, and the circle diameter, are user parameters, they must not be c…

[Previous page](https://discourse.processing.org/c/p5js/p5js-guidance/23.md)

[Next page](https://discourse.processing.org/c/p5js/p5js-guidance/23.md?page=2)
