# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=279

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

**Page:** 280

---

## [Convert String to Integer](https://discourse.processing.org/t/convert-string-to-integer/2430)

<div class="topic-metadata">

**Author:** [@jarlook](https://discourse.processing.org/u/jarlook)\
**Replies:** 11\
**Last updated:** [December 2, 2020, 11:40am UTC](https://discourse.processing.org/t/convert-string-to-integer/2430 "2020-12-02T11:40:31Z")

</div>

How can I convert a string to integer? I have a string that contains a set of values, some are text, but some are actually numeric values, all separated by commas. I can use split(string,",") to get any particular valu…

---

## [Move the box with keyboard and mouse](https://discourse.processing.org/t/move-the-box-with-keyboard-and-mouse/25824)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 9\
**Last updated:** [December 2, 2020, 10:01am UTC](https://discourse.processing.org/t/move-the-box-with-keyboard-and-mouse/25824 "2020-12-02T10:01:32Z")

</div>

I want to move the box using W,A,S,D keys and rotate the box in mouse direction (even while moving). Below is the code I’ve written but it isn’t working properly (haven’t yet implemented the mouse functionality). x = 10…

---

## [P5 node server with socket.io and websocket protocoll](https://discourse.processing.org/t/p5-node-server-with-socket-io-and-websocket-protocoll/25871)

<div class="topic-metadata">

**Author:** [@Theo68](https://discourse.processing.org/u/Theo68)\
**Replies:** 0\
**Last updated:** [December 1, 2020, 6:48pm UTC](https://discourse.processing.org/t/p5-node-server-with-socket-io-and-websocket-protocoll/25871 "2020-12-01T18:48:12Z")

</div>

I have created a P5 server node with socket.io. at locahost: 4000. I can also connect to it from the wifi network of my devices ( laptop, mobile). Can I integrate websocket protocol for communication with esp32 device i…

---

## [Animated Text p5](https://discourse.processing.org/t/animated-text-p5/25881)

<div class="topic-metadata">

**Author:** [@kketushkaaa](https://discourse.processing.org/u/kketushkaaa)\
**Replies:** 1\
**Last updated:** [December 2, 2020, 3:23am UTC](https://discourse.processing.org/t/animated-text-p5/25881 "2020-12-02T03:23:16Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I want to know how can I manage changing font weights so it’s animated

---

## [Exporting Applications](https://discourse.processing.org/t/exporting-applications/25853)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 2\
**Last updated:** [December 2, 2020, 3:03am UTC](https://discourse.processing.org/t/exporting-applications/25853 "2020-12-02T03:03:37Z")

</div>

I know how to export to an application. But when I export one, it create a lot of other files. Is it possible to export an application without the “lib” folder? I know the “source” folder is not necessary, and the “ja…

---

## [Help! I have some trouble with my IDE！！](https://discourse.processing.org/t/help-i-have-some-trouble-with-my-ide/25862)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 2\
**Last updated:** [December 2, 2020, 1:57am UTC](https://discourse.processing.org/t/help-i-have-some-trouble-with-my-ide/25862 "2020-12-02T01:57:34Z")

</div>

Hi guys . My IDE keeps reporting errors recently，I dont know what happen to it.The following is a screenshot of its error。 it will appear from time to time, and then the whole IDE will get stuck. Have any of you enco…

---

## [Help with placing a shape on grid for tic tac toe. My code is shown below](https://discourse.processing.org/t/help-with-placing-a-shape-on-grid-for-tic-tac-toe-my-code-is-shown-below/25846)

<div class="topic-metadata">

**Author:** [@seannyb2000](https://discourse.processing.org/u/seannyb2000)\
**Replies:** 2\
**Last updated:** [December 2, 2020, 12:51am UTC](https://discourse.processing.org/t/help-with-placing-a-shape-on-grid-for-tic-tac-toe-my-code-is-shown-below/25846 "2020-12-02T00:51:04Z")

</div>

please format code with \</\> button \* homework policy \* asking questions char player=‘X’+‘O’; // inputs 2 players int cols=3; int rows=3; Cell board= new Cell\[cols\]\[rows\]; void setup() { size(600,600); for(int i…

---

## [Array index out of bounds question](https://discourse.processing.org/t/array-index-out-of-bounds-question/25870)

<div class="topic-metadata">

**Author:** [@karenben](https://discourse.processing.org/u/karenben)\
**Replies:** 4\
**Last updated:** [December 1, 2020, 10:46pm UTC](https://discourse.processing.org/t/array-index-out-of-bounds-question/25870 "2020-12-01T22:46:51Z")

</div>

What’s causing the ArrayIndexOutOfBoundsException: 5? I want to make each bounce have a function that increases the value of the counter per ball. If the counter is greater than 10, stop drawing the ball int bounces = …

---

## [Int that goes from 1 to 100](https://discourse.processing.org/t/int-that-goes-from-1-to-100/25873)

<div class="topic-metadata">

**Author:** [@denis](https://discourse.processing.org/u/denis)\
**Replies:** 5\
**Last updated:** [December 1, 2020, 10:21pm UTC](https://discourse.processing.org/t/int-that-goes-from-1-to-100/25873 "2020-12-01T22:21:24Z")

</div>

Hello everyone, Im trying to make an int that goes from the number 1 to 100, increasing one by one and then to reset and start again. I hope someone can help, Thanks!! D.

---

## [Creating a grid for art](https://discourse.processing.org/t/creating-a-grid-for-art/25874)

<div class="topic-metadata">

**Author:** [@Matrix](https://discourse.processing.org/u/Matrix)\
**Replies:** 1\
**Last updated:** [December 1, 2020, 10:14pm UTC](https://discourse.processing.org/t/creating-a-grid-for-art/25874 "2020-12-01T22:14:16Z")

</div>

Hi, I’m trying to create grid that makes it so the rectangles that are created by my mouse clicks are lined up perfectly on either the x or y axis. This is all so I can make pixel art that’s consistent. This is what I ha…

---

## [Join crosses with random lines](https://discourse.processing.org/t/join-crosses-with-random-lines/25395)

<div class="topic-metadata">

**Author:** [@Dimdimtri](https://discourse.processing.org/u/Dimdimtri)\
**Replies:** 23\
**Last updated:** [December 1, 2020, 9:20pm UTC](https://discourse.processing.org/t/join-crosses-with-random-lines/25395 "2020-12-01T21:20:58Z")

</div>

Hi everyone, I have a simple question but which one I’m blocking on. I would like to join by a line the center of two crosses at random. I’m still new to processing. I’ve understood that line (x + 23, y + 23, random (…

---

## [How to create a reverse fill? Possible?](https://discourse.processing.org/t/how-to-create-a-reverse-fill-possible/25842)

<div class="topic-metadata">

**Author:** [@dgoren1](https://discourse.processing.org/u/dgoren1)\
**Replies:** 1\
**Last updated:** [December 1, 2020, 8:53pm UTC](https://discourse.processing.org/t/how-to-create-a-reverse-fill-possible/25842 "2020-12-01T20:53:10Z")

</div>

Hello! I am trying to figure out how to create a reverse fill of this shape that I have drawn. The purpose of the reverse fill will be to block out some other shapes that I’m drawing outside the borders of this original…

---

## [(Delete) Any Image Created Through Clicks](https://discourse.processing.org/t/delete-any-image-created-through-clicks/25867)

<div class="topic-metadata">

**Author:** [@Matrix](https://discourse.processing.org/u/Matrix)\
**Replies:** 1\
**Last updated:** [December 1, 2020, 7:16pm UTC](https://discourse.processing.org/t/delete-any-image-created-through-clicks/25867 "2020-12-01T19:16:09Z")

</div>

Hi, I’m trying to create a program that makes it so every new click reveals a rectangle in a specific region. When all of the clicks are done, then all the rectangles will be revealed- showing an image. Basically pixel a…

---

## [WIP 'Speak Into Existence'](https://discourse.processing.org/t/wip-speak-into-existence/25859)

<div class="topic-metadata">

**Author:** [@JustinJohnson](https://discourse.processing.org/u/JustinJohnson)\
**Replies:** 1\
**Last updated:** [December 1, 2020, 3:56pm UTC](https://discourse.processing.org/t/wip-speak-into-existence/25859 "2020-12-01T15:56:24Z")

</div>

Speak Into Existence OpenProcessing Sketch A work in progress sketch on OpenProcessing using the p5 Speech library. Very simple: speak into your microphone, and your words will float across the screen. I may eventually…

---

## [The constructor Gif(bodycreate.Particle, String) is undefined](https://discourse.processing.org/t/the-constructor-gif-bodycreate-particle-string-is-undefined/25719)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 4\
**Last updated:** [December 1, 2020, 3:45pm UTC](https://discourse.processing.org/t/the-constructor-gif-bodycreate-particle-string-is-undefined/25719 "2020-12-01T15:45:39Z")

</div>

Hi everyone ，I encountered some difficulties in the code. I want to create a new gif when I click the mouse . But it can’t work 。It said The constructor Gif(bodycreate.Particle, String) is undefined. The following is pa…

---

## [A moving ball which bounces off the sides](https://discourse.processing.org/t/a-moving-ball-which-bounces-off-the-sides/25860)

<div class="topic-metadata">

**Author:** [@thedarklord](https://discourse.processing.org/u/thedarklord)\
**Replies:** 1\
**Last updated:** [December 1, 2020, 3:25pm UTC](https://discourse.processing.org/t/a-moving-ball-which-bounces-off-the-sides/25860 "2020-12-01T15:25:10Z")

</div>

I wanna make a ball move and bounce off the walls. Can anyoune help me? thanks in advance

---

## [Use Kinect 1 or 2 sensors with Processing 2 or 3](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86)

<div class="topic-metadata">

**Author:** [@totovr76](https://discourse.processing.org/u/totovr76)\
**Replies:** 28\
**Last updated:** [December 1, 2020, 12:37pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86 "2020-12-01T12:37:57Z")

</div>

SimpleOpenNI Repository

---

## [Applying Specific Colors to Grid Array](https://discourse.processing.org/t/applying-specific-colors-to-grid-array/25852)

<div class="topic-metadata">

**Author:** [@NeatCoder47](https://discourse.processing.org/u/NeatCoder47)\
**Replies:** 4\
**Last updated:** [December 1, 2020, 11:18am UTC](https://discourse.processing.org/t/applying-specific-colors-to-grid-array/25852 "2020-12-01T11:18:54Z")

</div>

Hi! I’m brand new to coding with P5JS and I need some help. I’m currently taking a class for it and I’ve been watching a bunch of The Coding Train videos. For my specific project I’m trying to implement 30 unique colors …

---

## [Obfuscating your processing code on your own](https://discourse.processing.org/t/obfuscating-your-processing-code-on-your-own/25811)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 11\
**Last updated:** [December 1, 2020, 11:41am UTC](https://discourse.processing.org/t/obfuscating-your-processing-code-on-your-own/25811 "2020-12-01T11:41:43Z")

</div>

I know that anything a machine runs can be decompiled, that’s not what I’m asking. I’d like to find out what could be some good ways to obfuscate the sketch class in the jar file. I’ve searched the forum and found ProG…

---

## [Live Input from Multiple Computers?](https://discourse.processing.org/t/live-input-from-multiple-computers/24110)

<div class="topic-metadata">

**Author:** [@alsumwas](https://discourse.processing.org/u/alsumwas)\
**Replies:** 2\
**Last updated:** [December 1, 2020, 3:23am UTC](https://discourse.processing.org/t/live-input-from-multiple-computers/24110 "2020-12-01T03:23:16Z")

</div>

I am wondering if it is possible to have mic input from multiple users at the same time? Also is there an official name for the thing that I am trying to do? Here is a little sketch that I made from some examples on th…

---

## [Use a live video stream (from WebRTC) in P5?](https://discourse.processing.org/t/use-a-live-video-stream-from-webrtc-in-p5/23018)

<div class="topic-metadata">

**Author:** [@banggeul](https://discourse.processing.org/u/banggeul)\
**Replies:** 2\
**Last updated:** [December 1, 2020, 3:22am UTC](https://discourse.processing.org/t/use-a-live-video-stream-from-webrtc-in-p5/23018 "2020-12-01T03:22:29Z")

</div>

Hello, I’d like to run this WebRTC example (https://github.com/webrtc/apprtc) and manipulate the videos (local as well as remote) using P5. How do I work with the live stream video that’s not created by createCapture()? …

---

## [How do I change the color of a rectangle once clicked?](https://discourse.processing.org/t/how-do-i-change-the-color-of-a-rectangle-once-clicked/5536)

<div class="topic-metadata">

**Author:** [@CodingBoy](https://discourse.processing.org/u/CodingBoy)\
**Replies:** 3\
**Last updated:** [December 1, 2020, 12:28am UTC](https://discourse.processing.org/t/how-do-i-change-the-color-of-a-rectangle-once-clicked/5536 "2020-12-01T00:28:01Z")

</div>

Hello! I was trying to create many squares with different colors on them. I succeeded in doing so, but one thing I wanted to do is that once you click on a colored square, the color of that square would change into anoth…

---

## [General javascript question re: p5 tutorial](https://discourse.processing.org/t/general-javascript-question-re-p5-tutorial/25471)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 10\
**Last updated:** [November 30, 2020, 10:46pm UTC](https://discourse.processing.org/t/general-javascript-question-re-p5-tutorial/25471 "2020-11-30T22:46:40Z")

</div>

Hi. I’m following a p5.js tutorial and have the below code. Would anyone be able to help me understand how could add a second image to this fetch? Thanks! \` displayMyImg() .then(function (respons…

---

## [Smile TV project with p5.js](https://discourse.processing.org/t/smile-tv-project-with-p5-js/25738)

<div class="topic-metadata">

**Author:** [@Vero](https://discourse.processing.org/u/Vero)\
**Replies:** 2\
**Last updated:** [November 30, 2020, 8:41pm UTC](https://discourse.processing.org/t/smile-tv-project-with-p5-js/25738 "2020-11-30T20:41:34Z")

</div>

Hi! I’m a student and a beginner in p5.js. I would like to question if someone can help me with a project that I will like to do it. So I saw this interactive installation called “Smile TV”, and I’d love to do it with p…

---

## [Binary numbers with length and charAt function](https://discourse.processing.org/t/binary-numbers-with-length-and-charat-function/25817)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 5\
**Last updated:** [November 30, 2020, 12:56pm UTC](https://discourse.processing.org/t/binary-numbers-with-length-and-charat-function/25817 "2020-11-30T12:56:55Z")

</div>

Hello, I have to get the binary numbers from 0-32. The tutors just gave us the solution by trying, but I didn’t really understand what is happening. Could someone explain this code to me? How am I able to do a loop unt…

---

## [How to change String order and position and keep char order of each String?!](https://discourse.processing.org/t/how-to-change-string-order-and-position-and-keep-char-order-of-each-string/23656)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 21\
**Last updated:** [November 30, 2020, 6:59pm UTC](https://discourse.processing.org/t/how-to-change-string-order-and-position-and-keep-char-order-of-each-string/23656 "2020-11-30T18:59:29Z")

</div>

Hello, I got some amazing help from the great @jeremydouglass for my sketch, but I am stuck now. Jeremy wrote me this below, but I don’t find the solution to write properly the function he suggested to me. Blockquote …

---

## [mousePressed stays true after any JOptionPane.showMessageDialog](https://discourse.processing.org/t/mousepressed-stays-true-after-any-joptionpane-showmessagedialog/25828)

<div class="topic-metadata">

**Author:** [@RSV](https://discourse.processing.org/u/RSV)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 12:56pm UTC](https://discourse.processing.org/t/mousepressed-stays-true-after-any-joptionpane-showmessagedialog/25828 "2020-11-30T12:56:08Z")

</div>

Hello, I am encountering a problem with one of my programs where I use the JOptionPane.showMessageDialog. After the message dialog the mousePressed stays true causing unwanted actions. code below. Even running the JOp…

---

## [Processing 4 resize()](https://discourse.processing.org/t/processing-4-resize/25812)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 3\
**Last updated:** [November 30, 2020, 11:16am UTC](https://discourse.processing.org/t/processing-4-resize/25812 "2020-11-30T11:16:02Z")

</div>

Hi, I’m trying to use resize() in Processing 4: masque.resize(img.width, img.height); But I’ve got this error : RuntimeException: resize() not implemented for this PImage type It’s work fine with 3.5.4, there is a way…

---

## [Back button not working in processing program](https://discourse.processing.org/t/back-button-not-working-in-processing-program/25823)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 5\
**Last updated:** [November 30, 2020, 10:10am UTC](https://discourse.processing.org/t/back-button-not-working-in-processing-program/25823 "2020-11-30T10:10:10Z")

</div>

Hello, I want to implement a back button functionality in my program. When I click on the start button, it takes it to another screen but when I click on the back button, nothing happens. Below is the simplified code: d…

---

## [How to spawn a rectangle when mouse is clicked (however many times you want) and make it do the same functions as my code can](https://discourse.processing.org/t/how-to-spawn-a-rectangle-when-mouse-is-clicked-however-many-times-you-want-and-make-it-do-the-same-functions-as-my-code-can/25820)

<div class="topic-metadata">

**Author:** [@0w3n928](https://discourse.processing.org/u/0w3n928)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 8:35am UTC](https://discourse.processing.org/t/how-to-spawn-a-rectangle-when-mouse-is-clicked-however-many-times-you-want-and-make-it-do-the-same-functions-as-my-code-can/25820 "2020-11-30T08:35:07Z")

</div>

Code: float rectx,recty,xspeed=7,yspeed=7; void setup() { fullScreen(); } void draw() { background(0); rect(rectx,recty,300,150); fill(0,255,0); if(mousePressed==true); rect(recty,rectx,300,150); if(sideCollis…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=278)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=280)
