# Latest

**URL:** https://discourse.processing.org/latest.md?page=236

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

**Page:** 237

---

## [Creating screen boundaries](https://discourse.processing.org/t/creating-screen-boundaries/28855)

<div class="topic-metadata">

**Author:** [@NewProgrammer123](https://discourse.processing.org/u/NewProgrammer123)\
**Replies:** 22\
**Last updated:** [April 6, 2021, 6:30pm UTC](https://discourse.processing.org/t/creating-screen-boundaries/28855 "2021-04-06T18:30:41Z")

</div>

Hello, I am making a simple game but as a beginner I cannot find a way to do the following. It a moving square but I want to write an IF statement so that when it hits the edge of the window for the game to restart. I al…

---

## [GSOC 2021 French translatipn](https://discourse.processing.org/t/gsoc-2021-french-translatipn/29082)

<div class="topic-metadata">

**Author:** [@Django](https://discourse.processing.org/u/Django)\
**Replies:** 2\
**Last updated:** [April 6, 2021, 4:00pm UTC](https://discourse.processing.org/t/gsoc-2021-french-translatipn/29082 "2021-04-06T16:00:30Z")

</div>

Hello everyone, I’m Django from Uganda. And I’m new here. After going through the list of 2021 Gsoc projects I decide to go with Contributing to p5.js website internationalization (i18n), and I am going to start a new …

---

## [Sin() cos() functions acting strangely](https://discourse.processing.org/t/sin-cos-functions-acting-strangely/29149)

<div class="topic-metadata">

**Author:** [@psemme](https://discourse.processing.org/u/psemme)\
**Replies:** 6\
**Last updated:** [April 6, 2021, 1:44pm UTC](https://discourse.processing.org/t/sin-cos-functions-acting-strangely/29149 "2021-04-06T13:44:36Z")

</div>

Hello, Can’t understand this: In one simple sketch sin(30) and cos(30) produce results that appear incorrect while the exact same code in another sketch (from the Examples section) returns the correct result. Here…

---

## [Ketai sensor onTemperatureEvent](https://discourse.processing.org/t/ketai-sensor-ontemperatureevent/28924)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 20\
**Last updated:** [April 6, 2021, 1:06pm UTC](https://discourse.processing.org/t/ketai-sensor-ontemperatureevent/28924 "2021-04-06T13:06:31Z")

</div>

Why is Temp: 0.0? import ketai.sensors.\*; KetaiSensor sensor; float temp; void setup() { fullScreen(); sensor = new KetaiSensor(this); sensor.start(); sensor.list(); orientation(LANDSCAPE); textAlign(CENTE…

---

## [Basic word cloud without overlapping](https://discourse.processing.org/t/basic-word-cloud-without-overlapping/26316)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 1:06pm UTC](https://discourse.processing.org/t/basic-word-cloud-without-overlapping/26316 "2021-04-06T13:06:07Z")

</div>

Dear all, I would like to build a basic word cloud, but I have issue with overlapping and placing text. I have seen a mention of a wordcloud library “wordcram.org” but it seems obselete. The code below is based on 9…

---

## [How to add new words in a string and display them to create a word-cloud](https://discourse.processing.org/t/how-to-add-new-words-in-a-string-and-display-them-to-create-a-word-cloud/5951)

<div class="topic-metadata">

**Author:** [@polispace](https://discourse.processing.org/u/polispace)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 11:22am UTC](https://discourse.processing.org/t/how-to-add-new-words-in-a-string-and-display-them-to-create-a-word-cloud/5951 "2021-04-06T11:22:18Z")

</div>

Hi everyone. I’m doing an installation for a project, this is my stand point. What do I want to achieve: A program that display a word-cloud (the more a specific word has been say, the bigger it appears in the word cl…

---

## [How to implement this wave animation (link provided)](https://discourse.processing.org/t/how-to-implement-this-wave-animation-link-provided/29153)

<div class="topic-metadata">

**Author:** [@fsterg](https://discourse.processing.org/u/fsterg)\
**Replies:** 2\
**Last updated:** [April 6, 2021, 10:52am UTC](https://discourse.processing.org/t/how-to-implement-this-wave-animation-link-provided/29153 "2021-04-06T10:52:39Z")

</div>

Please have a look at this animation. Do you think it would be possible to implement it using Processing? The text should be dynamic (keyboard input), but first I want to do the wave animation part. I’m searching usin…

---

## [Unexpected result with random pattern](https://discourse.processing.org/t/unexpected-result-with-random-pattern/29133)

<div class="topic-metadata">

**Author:** [@xiquip](https://discourse.processing.org/u/xiquip)\
**Replies:** 5\
**Last updated:** [April 6, 2021, 10:49am UTC](https://discourse.processing.org/t/unexpected-result-with-random-pattern/29133 "2021-04-06T10:49:46Z")

</div>

Hello, I thought every time I ran the code, the black boxes would appear like this. (image 1 and 2) But they are doing it like this (image 3) or anything but this. Does anyone know why? function blacksquare1() { f…

---

## [p5JS server side render - using node-canvas](https://discourse.processing.org/t/p5js-server-side-render-using-node-canvas/29126)

<div class="topic-metadata">

**Author:** [@DCsan](https://discourse.processing.org/u/DCsan)\
**Replies:** 4\
**Last updated:** [April 6, 2021, 7:53am UTC](https://discourse.processing.org/t/p5js-server-side-render-using-node-canvas/29126 "2021-04-06T07:53:09Z")

</div>

I’d like to render images from a P5 script, for preview thumbnails. Has someone got advice on that? The node-canvas library would seem to be a good fit for this, but not sure how p5 deals with things like the event loop…

---

## [TypeError: Cannot set property '0' of undefined](https://discourse.processing.org/t/typeerror-cannot-set-property-0-of-undefined/29139)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 6\
**Last updated:** [April 6, 2021, 7:30am UTC](https://discourse.processing.org/t/typeerror-cannot-set-property-0-of-undefined/29139 "2021-04-06T07:30:13Z")

</div>

In my constructor I define my variable like this: constructor(){ this.myvar = \[\]; } and then, inside a function, I init the array like this: initSutff(){ for (let i = 0; i \< labels.length; i++) { this.m…

---

## [NodeJS with Fastify but want to make an canvas (p5js server-side)](https://discourse.processing.org/t/nodejs-with-fastify-but-want-to-make-an-canvas-p5js-server-side/24317)

<div class="topic-metadata">

**Author:** [@Bas950](https://discourse.processing.org/u/Bas950)\
**Replies:** 15\
**Last updated:** [April 6, 2021, 6:56am UTC](https://discourse.processing.org/t/nodejs-with-fastify-but-want-to-make-an-canvas-p5js-server-side/24317 "2021-04-06T06:56:44Z")

</div>

Hey so I am kinda new to this, But I am making an API using Fastify & NodeJS and want to add an overlay to a video, I have looked at multiple things and found that p5js would be the best for me, but I am failing to set …

---

## [This is a question related to the'gicentre' library. 'JAVA' and'ANDROID' results are different](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [April 5, 2021, 11:54pm UTC](https://discourse.processing.org/t/this-is-a-question-related-to-thegicentre-library-java-andandroid-results-are-different/29136 "2021-04-05T23:54:46Z")

</div>

This is a question related to the’gicentre’ library. Hello. Thank you for your interest in my writing. Please refer to the picture. When executed with’JAVA’, the text is written as the left standard. When exec…

---

## [Submission for draft proposal](https://discourse.processing.org/t/submission-for-draft-proposal/28948)

<div class="topic-metadata">

**Author:** [@KarthikSundar](https://discourse.processing.org/u/KarthikSundar)\
**Replies:** 9\
**Last updated:** [April 5, 2021, 8:56pm UTC](https://discourse.processing.org/t/submission-for-draft-proposal/28948 "2021-04-05T20:56:32Z")

</div>

Where should we submit our draft proposal for projects

---

## [Discussion regarding FriendlyGlobalFunctionBinder in FES](https://discourse.processing.org/t/discussion-regarding-friendlyglobalfunctionbinder-in-fes/29140)

<div class="topic-metadata">

**Author:** [@bhushan](https://discourse.processing.org/u/bhushan)\
**Replies:** 0\
**Last updated:** [April 5, 2021, 8:04pm UTC](https://discourse.processing.org/t/discussion-regarding-friendlyglobalfunctionbinder-in-fes/29140 "2021-04-05T20:04:05Z")

</div>

While implementing ‘friendly error when user overwrites p5.js functions’ discussed in this issue, the approach taken was that (solved by this PR) at the start of the run, every function in p5.js is assigned a “binding” …

---

## [Is there a "file -\> open" possibility inside of a sketch?](https://discourse.processing.org/t/is-there-a-file-open-possibility-inside-of-a-sketch/29102)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 6\
**Last updated:** [April 5, 2021, 7:06pm UTC](https://discourse.processing.org/t/is-there-a-file-open-possibility-inside-of-a-sketch/29102 "2021-04-05T19:06:52Z")

</div>

I am using the sketch to read various CSV files that have a date in them. Then I interpret the data and make graphs out of it. I use table = loadTable(“Infinity\_Report\_3\_31\_2021.csv”, “header”); Then I populate arra…

---

## [How can I 3d rotate a shape while using size(P2D)?](https://discourse.processing.org/t/how-can-i-3d-rotate-a-shape-while-using-size-p2d/29134)

<div class="topic-metadata">

**Author:** [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Replies:** 5\
**Last updated:** [April 5, 2021, 6:59pm UTC](https://discourse.processing.org/t/how-can-i-3d-rotate-a-shape-while-using-size-p2d/29134 "2021-04-05T18:59:10Z")

</div>

Hi! I designed a 3D sign using PSHAPE on a P3D environment. The problem is I want to use it in a mixed 2D/3D environment /\* displaying text or 2d graphics on a 3d canvas is a pain. But we can cast a 3d canvas inside…

---

## [Beads is using too much memory](https://discourse.processing.org/t/beads-is-using-too-much-memory/27975)

<div class="topic-metadata">

**Author:** [@morusque](https://discourse.processing.org/u/morusque)\
**Replies:** 9\
**Last updated:** [April 5, 2021, 5:08pm UTC](https://discourse.processing.org/t/beads-is-using-too-much-memory/27975 "2021-04-05T17:08:23Z")

</div>

hello, I am using the Beads library to play many sound files, sometimes simultaneously. As new files get periodically loaded and played I want the old ones to stop and be unloaded. But even when I explicitly ask Beads…

---

## [Mix 2d and 3d drawings](https://discourse.processing.org/t/mix-2d-and-3d-drawings/29125)

<div class="topic-metadata">

**Author:** [@KelvinLamptey](https://discourse.processing.org/u/KelvinLamptey)\
**Replies:** 1\
**Last updated:** [April 5, 2021, 2:21pm UTC](https://discourse.processing.org/t/mix-2d-and-3d-drawings/29125 "2021-04-05T14:21:12Z")

</div>

Please how do I draw 2d shapes in 3d mode. With processing in Android. With the APDE.

---

## [Switch with createCheckbox()](https://discourse.processing.org/t/switch-with-createcheckbox/28945)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 10\
**Last updated:** [April 5, 2021, 1:41pm UTC](https://discourse.processing.org/t/switch-with-createcheckbox/28945 "2021-04-05T13:41:59Z")

</div>

Hi Again Sorry, I’m a beginner, I didn’t understand what was formatting the code. I hope now I will get some help :slightly\_smiling\_face: I would like to be able to select different circle A and B with a createCheckbox…

---

## [P5.js video upload into switch statement](https://discourse.processing.org/t/p5-js-video-upload-into-switch-statement/29107)

<div class="topic-metadata">

**Author:** [@empero1615](https://discourse.processing.org/u/empero1615)\
**Replies:** 5\
**Last updated:** [April 5, 2021, 7:18am UTC](https://discourse.processing.org/t/p5-js-video-upload-into-switch-statement/29107 "2021-04-05T07:18:45Z")

</div>

How can I upload a video into a switch statement and get it to play? I have referred to the video canvas example and have applied that code within my program but it still doesn’t run, I’m not sure if P5 allows me to uplo…

---

## [How can I get version constant in p5.js?](https://discourse.processing.org/t/how-can-i-get-version-constant-in-p5-js/28217)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 5\
**Last updated:** [April 5, 2021, 6:56am UTC](https://discourse.processing.org/t/how-can-i-get-version-constant-in-p5-js/28217 "2021-04-05T06:56:18Z")

</div>

basically what the title says - for debugging purpose I want to get the version as a constant variable. I checked each variable in “this” but didn’t get anything relevant matches /version/i function setup() { createCa…

---

## [Detect p5 1.1.9 vs 1.0.0?](https://discourse.processing.org/t/detect-p5-1-1-9-vs-1-0-0/22920)

<div class="topic-metadata">

**Author:** [@grege2](https://discourse.processing.org/u/grege2)\
**Replies:** 5\
**Last updated:** [April 5, 2021, 6:19am UTC](https://discourse.processing.org/t/detect-p5-1-1-9-vs-1-0-0/22920 "2021-04-05T06:19:43Z")

</div>

Hi folks, Since p5.js 0.7.2 I’ve been able to distinguish what release I’m running on by checking that “typeof” some function or constant is “undefined” or not. This relies on new functions etc. being available to check…

---

## [Scrolling text in different text sizes](https://discourse.processing.org/t/scrolling-text-in-different-text-sizes/28383)

<div class="topic-metadata">

**Author:** [@Ida](https://discourse.processing.org/u/Ida)\
**Replies:** 1\
**Last updated:** [April 5, 2021, 3:19am UTC](https://discourse.processing.org/t/scrolling-text-in-different-text-sizes/28383 "2021-04-05T03:19:05Z")

</div>

Hello, My code writes lines to the screen after the previous one has left it. Is there a possibility to write the lines directly unter the other and not wait until one has left the screen, just like on a website? I als…

---

## [GSOC 2021- Discussion regarding FES project](https://discourse.processing.org/t/gsoc-2021-discussion-regarding-fes-project/29121)

<div class="topic-metadata">

**Author:** [@bhushan](https://discourse.processing.org/u/bhushan)\
**Replies:** 5\
**Last updated:** [April 4, 2021, 8:06pm UTC](https://discourse.processing.org/t/gsoc-2021-discussion-regarding-fes-project/29121 "2021-04-04T20:06:14Z")

</div>

Hello everyone, I am Sai Bhushan an undergraduate student of IIT KGP, India. I have been looking into the FES project and need some help. Firstly, in the ideas list it is mentioned that we should add internationalizatio…

---

## [Using OscP5 in native Android environment](https://discourse.processing.org/t/using-oscp5-in-native-android-environment/29118)

<div class="topic-metadata">

**Author:** [@5tefan](https://discourse.processing.org/u/5tefan)\
**Replies:** 0\
**Last updated:** [April 4, 2021, 6:23pm UTC](https://discourse.processing.org/t/using-oscp5-in-native-android-environment/29118 "2021-04-04T18:23:15Z")

</div>

Hello, I’m not sure this is the right forum for my question but as it concerns OscP5 I thought I give it a try. I’m working on an Android application, using OscP5 in a native Android environment (i.e. not Android mode …

---

## [Camera Animation: Move camera on 3D curve](https://discourse.processing.org/t/camera-animation-move-camera-on-3d-curve/13623)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [April 4, 2021, 6:01pm UTC](https://discourse.processing.org/t/camera-animation-move-camera-on-3d-curve/13623 "2021-04-04T18:01:46Z")

</div>

Hello all, when making a movie, I always wanted to go by the scene or object with a flying camera. This would be cool for Animation. I made a sketch now that features two different curves to animate the flying camera: …

---

## [OpenTrack UDP Data Tracking](https://discourse.processing.org/t/opentrack-udp-data-tracking/29115)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [April 4, 2021, 5:32pm UTC](https://discourse.processing.org/t/opentrack-udp-data-tracking/29115 "2021-04-04T17:32:11Z")

</div>

Hello folks, I was inspired by this topic by @jetjaguar: Convert UDP packet to floats? And this gallery post: Live Face Tracking (sans OpenCV) And was working on receiving the UDP data without the java.nio.ByteBuffe…

---

## [I have a club laser, now to... ...](https://discourse.processing.org/t/i-have-a-club-laser-now-to/28981)

<div class="topic-metadata">

**Author:** [@TheBuildingShow](https://discourse.processing.org/u/TheBuildingShow)\
**Replies:** 4\
**Last updated:** [April 4, 2021, 4:12pm UTC](https://discourse.processing.org/t/i-have-a-club-laser-now-to/28981 "2021-04-04T16:12:18Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi friends, I recently bought a Kvant laser, it’s amazing. I’m trying to see if there’s any processing code that I can upload to it. Within the…

---

## [Copy objects correctly](https://discourse.processing.org/t/copy-objects-correctly/29110)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 6\
**Last updated:** [April 4, 2021, 10:49am UTC](https://discourse.processing.org/t/copy-objects-correctly/29110 "2021-04-04T10:49:52Z")

</div>

I am currently trying to make a program to play chess. I have the following problem. I want to duplicate my object from my board-class and check and evaluate the position. However when I apply a method to a direct cop…

---

## [Coding problem 123 (Messy Curve Draw)](https://discourse.processing.org/t/coding-problem-123-messy-curve-draw/29085)

<div class="topic-metadata">

**Author:** [@fxddf](https://discourse.processing.org/u/fxddf)\
**Replies:** 4\
**Last updated:** [April 4, 2021, 9:18am UTC](https://discourse.processing.org/t/coding-problem-123-messy-curve-draw/29085 "2021-04-04T09:18:23Z")

</div>

I found this code from the following site, but I do not see anything by changing the values. Can anyone help me?

[Previous page](https://discourse.processing.org/latest.md?page=235)

[Next page](https://discourse.processing.org/latest.md?page=237)
