# Latest

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

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

**Page:** 355

---

## [Key pressed variable](https://discourse.processing.org/t/key-pressed-variable/20555)

<div class="topic-metadata">

**Author:** [@ploop1](https://discourse.processing.org/u/ploop1)\
**Replies:** 7\
**Last updated:** [May 7, 2020, 11:52am UTC](https://discourse.processing.org/t/key-pressed-variable/20555 "2020-05-07T11:52:42Z")

</div>

Hi, I am a student and struggling to figure out what is wrong with my programme. It is simply to play/pause a video at the press of the space bar however it doesn’t seem to continue not playing when the spacebar is relea…

---

## [Analyzing sound problem in effect 03 (minim)](https://discourse.processing.org/t/analyzing-sound-problem-in-effect-03-minim/20578)

<div class="topic-metadata">

**Author:** [@firetryer](https://discourse.processing.org/u/firetryer)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:41am UTC](https://discourse.processing.org/t/analyzing-sound-problem-in-effect-03-minim/20578 "2020-05-07T11:41:31Z")

</div>

float t; // currentTime int t1 = 2000; //2000ms = after 2s int t2 = 6000; //6000ms = after 6s int t3 = 10000; //10000ms = after 10s int t4 = 15000; //1500ms = after 15s int finish = 20000; //2000ms = 20s Amplitude a…

---

## [Can't open p5.js sketch on mobile which works on mac](https://discourse.processing.org/t/cant-open-p5-js-sketch-on-mobile-which-works-on-mac/20557)

<div class="topic-metadata">

**Author:** [@lohoso](https://discourse.processing.org/u/lohoso)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 9:27am UTC](https://discourse.processing.org/t/cant-open-p5-js-sketch-on-mobile-which-works-on-mac/20557 "2020-05-07T09:27:52Z")

</div>

https://editor.p5js.org/lohoso/present/Td-myBfmT The sketch works on laptop, but does not work on my iPhone. Anyone can help?

---

## [Motion detection send to arduino](https://discourse.processing.org/t/motion-detection-send-to-arduino/20533)

<div class="topic-metadata">

**Author:** [@kanktonk](https://discourse.processing.org/u/kanktonk)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 8:43am UTC](https://discourse.processing.org/t/motion-detection-send-to-arduino/20533 "2020-05-07T08:43:03Z")

</div>

Hi you all! Im an art student from berlin and for my latest project I need to send Data I get from Processing to Arduino. I use a serial port to communicate and I basically want to find the x Position of an person in Fro…

---

## [Need help with processing ball game](https://discourse.processing.org/t/need-help-with-processing-ball-game/20561)

<div class="topic-metadata">

**Author:** [@kchabs](https://discourse.processing.org/u/kchabs)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 7:59am UTC](https://discourse.processing.org/t/need-help-with-processing-ball-game/20561 "2020-05-07T07:59:03Z")

</div>

Create a program that displays a window, 300 by 400, randomly placing a red ball (circle) of diameter 20 randomly somewhere in that space. When any key is pressed, the ball will bounce back and forth horizontally on th…

---

## [Geolocation example for Processing ;)](https://discourse.processing.org/t/geolocation-example-for-processing/20342)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 3:51am UTC](https://discourse.processing.org/t/geolocation-example-for-processing/20342 "2020-05-07T03:51:44Z")

</div>

This is a simple example to get geoLocation in Processing JAVA MODE on “windows / linux / macosx / andorid”. import java.net.\*; import java.io.\*; void setup(){ String\[\] l = geolocation(); for(String s : l){ …

---

## [Seeking p5 data visualization help](https://discourse.processing.org/t/seeking-p5-data-visualization-help/20334)

<div class="topic-metadata">

**Author:** [@felixthefein](https://discourse.processing.org/u/felixthefein)\
**Replies:** 4\
**Last updated:** [May 7, 2020, 1:35am UTC](https://discourse.processing.org/t/seeking-p5-data-visualization-help/20334 "2020-05-07T01:35:29Z")

</div>

Hello, I am new to p5, and I am creating a simple data visualization about wind using data from an accelerometer (in a .csv file). My “x” values are represented by the variable sensorx, and my “y” values are represente…

---

## [How do I find out all the methods that are available to an object?](https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 1:06am UTC](https://discourse.processing.org/t/how-do-i-find-out-all-the-methods-that-are-available-to-an-object/20571 "2020-05-07T01:06:35Z")

</div>

I want to know all the methods that are part of a button or input box. The reference doesn’t list them all I think.

---

## [Processing web sketch embeds on this forum](https://discourse.processing.org/t/processing-web-sketch-embeds-on-this-forum/19097)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 16\
**Last updated:** [May 7, 2020, 12:19am UTC](https://discourse.processing.org/t/processing-web-sketch-embeds-on-this-forum/19097 "2020-05-07T00:19:09Z")

</div>

Discourse has the ability to whitelist embedded iframes from select hosts. We could use this to enable embedding web-hosted Processing / p5.js sketches from community-trusted platforms such as the p5.js web editor, or o…

---

## [When a game jam in Processing?](https://discourse.processing.org/t/when-a-game-jam-in-processing/20390)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 11:10pm UTC](https://discourse.processing.org/t/when-a-game-jam-in-processing/20390 "2020-05-06T23:10:19Z")

</div>

I really want a processing game contest, do we have one?

---

## [removeAll in p5.js (vs Processing)](https://discourse.processing.org/t/removeall-in-p5-js-vs-processing/20566)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 10\
**Last updated:** [May 6, 2020, 10:48pm UTC](https://discourse.processing.org/t/removeall-in-p5-js-vs-processing/20566 "2020-05-06T22:48:51Z")

</div>

There is a bug in the removeAll() function that has been fixed, but will only be available in the next release. EDIT: moved from Processing thread

---

## [Can't find a mistake or removeAll() doesn't work](https://discourse.processing.org/t/cant-find-a-mistake-or-removeall-doesnt-work/18368)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 10\
**Last updated:** [March 12, 2020, 3:43pm UTC](https://discourse.processing.org/t/cant-find-a-mistake-or-removeall-doesnt-work/18368 "2020-03-12T15:43:49Z")

</div>

Hello, Please check the sketch at https://www.openprocessing.org/sketch/851540 it seems that when run in openprocessing.org it passes but a few iterations of the while() loop of the getRandom() method, but it prints th…

---

## [I have a question about arc()](https://discourse.processing.org/t/i-have-a-question-about-arc/20396)

<div class="topic-metadata">

**Author:** [@356](https://discourse.processing.org/u/356)\
**Replies:** 14\
**Last updated:** [May 6, 2020, 7:28pm UTC](https://discourse.processing.org/t/i-have-a-question-about-arc/20396 "2020-05-06T19:28:52Z")

</div>

I have a question about arc(). I’m not good at English, so I’m using machine translation. The behavior below seems intuitive. // P5.js function setup(){ createCanvas(200, 400); } function draw(){ translate(0, hei…

---

## [Transforming object to a letter (text)](https://discourse.processing.org/t/transforming-object-to-a-letter-text/20548)

<div class="topic-metadata">

**Author:** [@LennieCZ](https://discourse.processing.org/u/LennieCZ)\
**Replies:** 5\
**Last updated:** [May 6, 2020, 5:58pm UTC](https://discourse.processing.org/t/transforming-object-to-a-letter-text/20548 "2020-05-06T17:58:00Z")

</div>

Hello everyone! I’ve got a question. I am absolute newbie in processing and I want to create some interactive typographic thing. Can you help me? I need to transform an ellipse to a letter (text). Let’s say “A”. It sh…

---

## [How to increase number of lines over time - till it reaches 150?](https://discourse.processing.org/t/how-to-increase-number-of-lines-over-time-till-it-reaches-150/20543)

<div class="topic-metadata">

**Author:** [@noa\_noa](https://discourse.processing.org/u/noa_noa)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 5:31pm UTC](https://discourse.processing.org/t/how-to-increase-number-of-lines-over-time-till-it-reaches-150/20543 "2020-05-06T17:31:35Z")

</div>

I understand that i need it to start drawing 1 line, and then in another section update it, so that it keeps adding 1 line - so from 1 to i, when i is the current loop, and in the loop draw the line in the coordinates i …

---

## [Need help with moving one array rather than two](https://discourse.processing.org/t/need-help-with-moving-one-array-rather-than-two/20551)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 5:46pm UTC](https://discourse.processing.org/t/need-help-with-moving-one-array-rather-than-two/20551 "2020-05-06T17:46:39Z")

</div>

I am making a two-player top down dungeon game. The movement style I settled on is the level moving around the player, giving the illusion the player is always in the middle of the screen. The way it works is by taking a…

---

## [Display arduino values on a processing interface](https://discourse.processing.org/t/display-arduino-values-on-a-processing-interface/20176)

<div class="topic-metadata">

**Author:** [@amina](https://discourse.processing.org/u/amina)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 4:49pm UTC](https://discourse.processing.org/t/display-arduino-values-on-a-processing-interface/20176 "2020-05-06T16:49:14Z")

</div>

I’m a beginner in processing and I want to make this diagram, I tried but I can’t do it can you help me?please

---

## [Help me! It is about making random color in ToxicLibs library](https://discourse.processing.org/t/help-me-it-is-about-making-random-color-in-toxiclibs-library/20541)

<div class="topic-metadata">

**Author:** [@narabagus](https://discourse.processing.org/u/narabagus)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 3:33pm UTC](https://discourse.processing.org/t/help-me-it-is-about-making-random-color-in-toxiclibs-library/20541 "2020-05-06T15:33:36Z")

</div>

Hi! I’m currently making an abstract pattern project using a ToxicLibs. Below is the coding :slight\_smile: import toxi.sim.grayscott.\*; import toxi.color.\*; int NUM\_ITERATIONS = 5; GrayScott gs; ToneMap toneMap; void…

---

## [Help with color changing and display of drawn objects](https://discourse.processing.org/t/help-with-color-changing-and-display-of-drawn-objects/20508)

<div class="topic-metadata">

**Author:** [@Andrej](https://discourse.processing.org/u/Andrej)\
**Replies:** 3\
**Last updated:** [May 6, 2020, 3:09pm UTC](https://discourse.processing.org/t/help-with-color-changing-and-display-of-drawn-objects/20508 "2020-05-06T15:09:50Z")

</div>

Hello everybody, I am currently in 4th year of my college and I need some help with my code. (My coding skills aren’t that great…) We got assignment to create simpler version of MS Paint in Processing. Currently, my pr…

---

## [Simple Maze Game Problem](https://discourse.processing.org/t/simple-maze-game-problem/20391)

<div class="topic-metadata">

**Author:** [@Filo96ge](https://discourse.processing.org/u/Filo96ge)\
**Replies:** 6\
**Last updated:** [May 6, 2020, 1:54pm UTC](https://discourse.processing.org/t/simple-maze-game-problem/20391 "2020-05-06T13:54:36Z")

</div>

Hi there! I am using Processing for a school project and I am not able to resolve an issue. I don’t know how to stop the red ball when it hits the boundary of the maze. I’m thinking to put the pixels of the ball and the…

---

## [On Chrome, createSlider with instance mode makes duplicated sliders](https://discourse.processing.org/t/on-chrome-createslider-with-instance-mode-makes-duplicated-sliders/20531)

<div class="topic-metadata">

**Author:** [@ahirose](https://discourse.processing.org/u/ahirose)\
**Replies:** 3\
**Last updated:** [May 6, 2020, 12:05pm UTC](https://discourse.processing.org/t/on-chrome-createslider-with-instance-mode-makes-duplicated-sliders/20531 "2020-05-06T12:05:07Z")

</div>

Hi all, Thank you for your effort to keep the quality of this great community. I just tried to port a createSlider example to the instance mode then hit a issue. How can I solve it? Following is my code, it’s working …

---

## [Animate .step model and show in a browser](https://discourse.processing.org/t/animate-step-model-and-show-in-a-browser/20348)

<div class="topic-metadata">

**Author:** [@emanuelegiampieri](https://discourse.processing.org/u/emanuelegiampieri)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 8:31am UTC](https://discourse.processing.org/t/animate-step-model-and-show-in-a-browser/20348 "2020-05-06T08:31:48Z")

</div>

Hello everyone. Premised I’m completely new to computer graphics,apologize for the inappropriate terms used. I’m asked to get a 3D sketch, animate some parts of it reading varables from a database, and show the result in…

---

## [Function loadShader throwing a NullPointerException for no reason](https://discourse.processing.org/t/function-loadshader-throwing-a-nullpointerexception-for-no-reason/20038)

<div class="topic-metadata">

**Author:** [@Ayfri](https://discourse.processing.org/u/Ayfri)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 7:04am UTC](https://discourse.processing.org/t/function-loadshader-throwing-a-nullpointerexception-for-no-reason/20038 "2020-05-06T07:04:41Z")

</div>

Hi, I’m trying to make shaders in my Program, I have this code that loads a simple vertex Shader from his name to find it in the resources folder : public void init() throws FileNotFoundException { try { Registry.reg…

---

## [Create a Chatbot for Android](https://discourse.processing.org/t/create-a-chatbot-for-android/20529)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 5:28am UTC](https://discourse.processing.org/t/create-a-chatbot-for-android/20529 "2020-05-06T05:28:50Z")

</div>

Hello everyone, I have been thinking about what can be programmed with the community for days. Now I got the idea how about a Chatbot? A chatbot is definitely good against the boring corona time.

---

## [Looping a texture on 3D Shape that Reacts to Slider Adjustments](https://discourse.processing.org/t/looping-a-texture-on-3d-shape-that-reacts-to-slider-adjustments/20528)

<div class="topic-metadata">

**Author:** [@mzerby](https://discourse.processing.org/u/mzerby)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 4:20am UTC](https://discourse.processing.org/t/looping-a-texture-on-3d-shape-that-reacts-to-slider-adjustments/20528 "2020-05-06T04:20:19Z")

</div>

Hello! I am trying to figure out how to create a looping texture on a 3D that will restart after it has filled the shape to reflect the adjustment made with the slider. I currently have a texture that is a spiral pattern…

---

## [Rotate vectors in 3D](https://discourse.processing.org/t/rotate-vectors-in-3d/18660)

<div class="topic-metadata">

**Author:** [@OrSarfati](https://discourse.processing.org/u/OrSarfati)\
**Replies:** 6\
**Last updated:** [May 6, 2020, 1:11am UTC](https://discourse.processing.org/t/rotate-vectors-in-3d/18660 "2020-05-06T01:11:59Z")

</div>

Hi there! I did some research about this topic on this forum and in general. The subject was discussed here before but with no-code solutions for 3D. I like to address that topic again with the hope to find an easy solu…

---

## [Processing Exporting](https://discourse.processing.org/t/processing-exporting/20520)

<div class="topic-metadata">

**Author:** [@jonuvug](https://discourse.processing.org/u/jonuvug)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 1:03am UTC](https://discourse.processing.org/t/processing-exporting/20520 "2020-05-06T01:03:14Z")

</div>

What does “Embed Java” and “Presentation Mode” do?

---

## [Simulate a ZX-Spectrum (8 bit machine!) screen loading using JavaScript](https://discourse.processing.org/t/simulate-a-zx-spectrum-8-bit-machine-screen-loading-using-javascript/20523)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [May 5, 2020, 11:24pm UTC](https://discourse.processing.org/t/simulate-a-zx-spectrum-8-bit-machine-screen-loading-using-javascript/20523 "2020-05-05T23:24:44Z")

</div>

Did you use any 8 bit computer like Commodore 64, Apple II, ZX-Spectrum? Those were fun machines! Remember those times with this small JavaScript program that simulates how a ZX-Spectrum used to load a screen… 6912 byt…

---

## [Collection of type-in programs for young coders](https://discourse.processing.org/t/collection-of-type-in-programs-for-young-coders/20403)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 11:15pm UTC](https://discourse.processing.org/t/collection-of-type-in-programs-for-young-coders/20403 "2020-05-05T23:15:03Z")

</div>

Hi all, I discovered that one of the best way to introduce young coders to text based coding … in as little as 1 hour … is via mini type-in programs. I put together a collection of 30 type-in programs that can be used …

---

## [Problem with p5 Collections Folder](https://discourse.processing.org/t/problem-with-p5-collections-folder/20467)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 4\
**Last updated:** [May 5, 2020, 11:09pm UTC](https://discourse.processing.org/t/problem-with-p5-collections-folder/20467 "2020-05-05T23:09:14Z")

</div>

I appreciate the “My Collections” feature but for the past two weeks I have been unable to drop a sketch into it. After clicking “My account” then “My collections” the list of collections appears as it should. However, c…

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

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