# Latest

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

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

**Page:** 380

---

## [Key Pressed to Change text](https://discourse.processing.org/t/key-pressed-to-change-text/18810)

<div class="topic-metadata">

**Author:** [@arianzz](https://discourse.processing.org/u/arianzz)\
**Replies:** 2\
**Last updated:** [March 20, 2020, 3:44pm UTC](https://discourse.processing.org/t/key-pressed-to-change-text/18810 "2020-03-20T15:44:10Z")

</div>

Hello! I am trying to add text with every keypressed. So if key is pressed, words “I BET” show up, then when key pressed again, “YOU DIDN’T”… and so on. So far this is what I have: it shows all the text at once when key…

---

## [\[SOLVED\] Strings in .txt file won't display the same as in the program](https://discourse.processing.org/t/solved-strings-in-txt-file-wont-display-the-same-as-in-the-program/12273)

<div class="topic-metadata">

**Author:** [@kartibrown](https://discourse.processing.org/u/kartibrown)\
**Replies:** 13\
**Last updated:** [July 2, 2019, 6:03pm UTC](https://discourse.processing.org/t/solved-strings-in-txt-file-wont-display-the-same-as-in-the-program/12273 "2019-07-02T18:03:59Z")

</div>

Hello! I’m new to programming in java Processing. I made my first game that actually works, but I can’t get the leaderboard to work. The strings in the .txt file looks like this: Bubblegum 654 Hello 765 looooo…

---

## [Changing the size of a triangle depending on mouseY](https://discourse.processing.org/t/changing-the-size-of-a-triangle-depending-on-mousey/18841)

<div class="topic-metadata">

**Author:** [@PixelVolt38](https://discourse.processing.org/u/PixelVolt38)\
**Replies:** 2\
**Last updated:** [March 20, 2020, 3:29pm UTC](https://discourse.processing.org/t/changing-the-size-of-a-triangle-depending-on-mousey/18841 "2020-03-20T15:29:02Z")

</div>

Hey, So I was trying to do a program that, among other things, changed the size of a triangle depending on how high the mouse was. What I wanted to do is start with the triangle at size 0 at a point and gradually make i…

---

## [Processing For pi: GSoC 2020](https://discourse.processing.org/t/processing-for-pi-gsoc-2020/18047)

<div class="topic-metadata">

**Author:** [@Debabrata](https://discourse.processing.org/u/Debabrata)\
**Replies:** 4\
**Last updated:** [March 20, 2020, 6:48am UTC](https://discourse.processing.org/t/processing-for-pi-gsoc-2020/18047 "2020-03-20T06:48:18Z")

</div>

Hi I,m Debabrata an undergrad from NIT- Rourkela. I am a hobbyist generative artist working on p5.js since a year. As part of my GSoC proposal I want to work on Processing for ARM and fix bugs on the OS issues it is hav…

---

## [Google Summer of Code Proposal Review](https://discourse.processing.org/t/google-summer-of-code-proposal-review/18829)

<div class="topic-metadata">

**Author:** [@usman](https://discourse.processing.org/u/usman)\
**Replies:** 0\
**Last updated:** [March 20, 2020, 1:52am UTC](https://discourse.processing.org/t/google-summer-of-code-proposal-review/18829 "2020-03-20T01:52:23Z")

</div>

Hi, I am Muhammad Usman and a third year PhD student at the University of Texas at Austin. I am doing my PhD in automated testing of software systems. I am interested in contributing to the p5.js web editor by adding th…

---

## [Opening up Processing](https://discourse.processing.org/t/opening-up-processing/18813)

<div class="topic-metadata">

**Author:** [@PropagandA](https://discourse.processing.org/u/PropagandA)\
**Replies:** 10\
**Last updated:** [March 20, 2020, 12:13am UTC](https://discourse.processing.org/t/opening-up-processing/18813 "2020-03-20T00:13:16Z")

</div>

Whenever I open up Processing, it opens up and immediately shuts down.

---

## [Not enough memory while referencing array](https://discourse.processing.org/t/not-enough-memory-while-referencing-array/18787)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 2\
**Last updated:** [March 19, 2020, 10:43pm UTC](https://discourse.processing.org/t/not-enough-memory-while-referencing-array/18787 "2020-03-19T22:43:04Z")

</div>

I am trying to create a simulation of an ocean and I need to be able to move fish around based on a background fluid. When I try to do this I get a message saying “Could not run the sketch (Target VM failed to initialize…

---

## [Tengo una duda enorme](https://discourse.processing.org/t/tengo-una-duda-enorme/18816)

<div class="topic-metadata">

**Author:** [@Vallano](https://discourse.processing.org/u/Vallano)\
**Replies:** 3\
**Last updated:** [March 19, 2020, 9:11pm UTC](https://discourse.processing.org/t/tengo-una-duda-enorme/18816 "2020-03-19T21:11:37Z")

</div>

en su función draw() SOLO dibujará cuadrados si su posición esta dentro de un círculo con posición central de radio 100 pixels: Dos métodos: Generar la posición del cuadrado de forma aleatoria y luego “decidir” si pi…

---

## [Help creating an ArrayList of color values](https://discourse.processing.org/t/help-creating-an-arraylist-of-color-values/18475)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 24\
**Last updated:** [March 19, 2020, 8:49pm UTC](https://discourse.processing.org/t/help-creating-an-arraylist-of-color-values/18475 "2020-03-19T20:49:14Z")

</div>

Hello - I am trying to create an ArrayList of color values so I can utilize the features it has for dynamically slotting values in and out at various places. But as color is a primitive data type, it will not work in an…

---

## [Enhancement/Improvement in P5.Touchgui Library - GSOC 2020](https://discourse.processing.org/t/enhancement-improvement-in-p5-touchgui-library-gsoc-2020/18610)

<div class="topic-metadata">

**Author:** [@singhvisha](https://discourse.processing.org/u/singhvisha)\
**Replies:** 4\
**Last updated:** [March 13, 2020, 7:40pm UTC](https://discourse.processing.org/t/enhancement-improvement-in-p5-touchgui-library-gsoc-2020/18610 "2020-03-13T19:40:23Z")

</div>

Hi, I am Vishal Singh and I’m pursuing my graduation in Computer Science At Harcourt Butler Technical University in India.I have been using p5.js from last one year and made few contribution to p5.js. I was going throug…

---

## [How to deal with conflicting classes](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [March 19, 2020, 6:09pm UTC](https://discourse.processing.org/t/how-to-deal-with-conflicting-classes/18794 "2020-03-19T18:09:15Z")

</div>

I have imported the poi library, a library which deals with parsing word documents, however the library itself uses a class called table which is shared with the main processing library, which I would also like to make u…

---

## [Save poses into data base](https://discourse.processing.org/t/save-poses-into-data-base/18776)

<div class="topic-metadata">

**Author:** [@reut](https://discourse.processing.org/u/reut)\
**Replies:** 4\
**Last updated:** [March 19, 2020, 5:26pm UTC](https://discourse.processing.org/t/save-poses-into-data-base/18776 "2020-03-19T17:26:25Z")

</div>

hi, is there a way that i can save the poses in real-time into a data base? how can i approach to those arrays ? thanks!

---

## [Making my 'bird' flappy fly](https://discourse.processing.org/t/making-my-bird-flappy-fly/18749)

<div class="topic-metadata">

**Author:** [@bry\_pk](https://discourse.processing.org/u/bry_pk)\
**Replies:** 6\
**Last updated:** [March 19, 2020, 10:01am UTC](https://discourse.processing.org/t/making-my-bird-flappy-fly/18749 "2020-03-19T10:01:16Z")

</div>

Here is my code for this game I’m making, it is a knockoff flappy birds. My Bird just disappears off-screen and will not return even when I press my key(s). int x = 0; void setup() { PImage tubeImg = loadImage("TUBE.p…

---

## [Gsoc20 revised idea selection](https://discourse.processing.org/t/gsoc20-revised-idea-selection/18640)

<div class="topic-metadata">

**Author:** [@endurance21](https://discourse.processing.org/u/endurance21)\
**Replies:** 2\
**Last updated:** [March 19, 2020, 8:22am UTC](https://discourse.processing.org/t/gsoc20-revised-idea-selection/18640 "2020-03-19T08:22:02Z")

</div>

hello everyone, This is Divyanshu Raj , an undergrad from INDIA . I have interests in audio processing and web development . I am fluent with javascript specially node.js , react , WEB AUDIO API ,and its audioworkle…

---

## [Organising a single canvas-long code in instance mode](https://discourse.processing.org/t/organising-a-single-canvas-long-code-in-instance-mode/18779)

<div class="topic-metadata">

**Author:** [@calornorte](https://discourse.processing.org/u/calornorte)\
**Replies:** 0\
**Last updated:** [March 18, 2020, 11:40pm UTC](https://discourse.processing.org/t/organising-a-single-canvas-long-code-in-instance-mode/18779 "2020-03-18T23:40:57Z")

</div>

I’m writing a very long code for a single canvas in instance mode and it’s getting confusing, specially the draw area. how can I organise an instance mode code in different sketches (for a single canvas) considering its…

---

## [Python mode for Rosetta Code -- wiki and examples](https://discourse.processing.org/t/python-mode-for-rosetta-code-wiki-and-examples/18721)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 23\
**Last updated:** [March 18, 2020, 6:09pm UTC](https://discourse.processing.org/t/python-mode-for-rosetta-code-wiki-and-examples/18721 "2020-03-18T18:09:21Z")

</div>

Hi Jeremy! I’ve got so excited about your work with the Rosetta examples… I have created a category there for Processing\_Python but now I’m not sure I should have done that… maybe marking using this would be best: =={…

---

## [Lavoro con le Classi](https://discourse.processing.org/t/lavoro-con-le-classi/18769)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 5:32pm UTC](https://discourse.processing.org/t/lavoro-con-le-classi/18769 "2020-03-18T17:32:13Z")

</div>

Ciao a tutti! Sto lavorando per creare un’interfaccia per un gioco in modo che si attivo (cliccando su Play Game inizia il gioco), questo è il codice che dovrebbe risultare all’interno del gioco: int state = 0; PImage …

---

## [Could someone explain this code to me](https://discourse.processing.org/t/could-someone-explain-this-code-to-me/18767)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 18\
**Last updated:** [March 18, 2020, 3:50pm UTC](https://discourse.processing.org/t/could-someone-explain-this-code-to-me/18767 "2020-03-18T15:50:52Z")

</div>

Hi everyone, I wonder if someone can explaine to me how this code work : int locX, locY; int offsetX, offsetY; final int unit = 32; byte\[\]\[\] terrain = new byte\[10\]\[10\]; void setup() { size(321, 321); for (int …

---

## [Background appearing above array of images](https://discourse.processing.org/t/background-appearing-above-array-of-images/18746)

<div class="topic-metadata">

**Author:** [@jake\_b](https://discourse.processing.org/u/jake_b)\
**Replies:** 2\
**Last updated:** [March 18, 2020, 2:56pm UTC](https://discourse.processing.org/t/background-appearing-above-array-of-images/18746 "2020-03-18T14:56:58Z")

</div>

Hi everyone, I’ve got an issue whereby an array of images I’ve got loading as a grid is appearing behind the background. In the pen I’ve attached the images have been replaced with rectangles, but hopefully the issue can…

---

## [Not sure why interface and implementation is not working](https://discourse.processing.org/t/not-sure-why-interface-and-implementation-is-not-working/18736)

<div class="topic-metadata">

**Author:** [@jeromepayne](https://discourse.processing.org/u/jeromepayne)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 2:22pm UTC](https://discourse.processing.org/t/not-sure-why-interface-and-implementation-is-not-working/18736 "2020-03-18T14:22:20Z")

</div>

Can you all take a look at my code and tell me where I am going wrong? interface IBeacon { // Determines whether beacon is within range of truck Boolean isPresent(); // Determines how for beacon is from truck int g…

---

## [Mobile Device - x and y coordinates for finger touch](https://discourse.processing.org/t/mobile-device-x-and-y-coordinates-for-finger-touch/18744)

<div class="topic-metadata">

**Author:** [@brooksofmaine](https://discourse.processing.org/u/brooksofmaine)\
**Replies:** 2\
**Last updated:** [March 18, 2020, 1:13pm UTC](https://discourse.processing.org/t/mobile-device-x-and-y-coordinates-for-finger-touch/18744 "2020-03-18T13:13:01Z")

</div>

When a user touches a screen on a mobile device, how do I find out the coordinates of the user’s touch? I’d like to reposition an image based on the touch location on the screen.

---

## [How to move a object, not in draw()](https://discourse.processing.org/t/how-to-move-a-object-not-in-draw/18761)

<div class="topic-metadata">

**Author:** [@Mike2020](https://discourse.processing.org/u/Mike2020)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 12:57pm UTC](https://discourse.processing.org/t/how-to-move-a-object-not-in-draw/18761 "2020-03-18T12:57:31Z")

</div>

Hi folks, how to move a object, not in draw()? I make a function ship(), how can I make the ship() move from one point to another point slowly ? Is there any function relate to time, for example ship() can move from poi…

---

## [Adding test coverage for p5.js webeditor](https://discourse.processing.org/t/adding-test-coverage-for-p5-js-webeditor/18763)

<div class="topic-metadata">

**Author:** [@hvss007](https://discourse.processing.org/u/hvss007)\
**Replies:** 0\
**Last updated:** [March 18, 2020, 9:38am UTC](https://discourse.processing.org/t/adding-test-coverage-for-p5-js-webeditor/18763 "2020-03-18T09:38:37Z")

</div>

Hello, I am Harsh Vardhan a third-year undergraduate student at IIT Roorkee. I have previously worked with platforms like Jest and would like to delve deeper into the subject. I am interested in contributing to the p5.j…

---

## [How to change the properties of class with sensor data from Arduino](https://discourse.processing.org/t/how-to-change-the-properties-of-class-with-sensor-data-from-arduino/18638)

<div class="topic-metadata">

**Author:** [@Gbouna](https://discourse.processing.org/u/Gbouna)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 6:03am UTC](https://discourse.processing.org/t/how-to-change-the-properties-of-class-with-sensor-data-from-arduino/18638 "2020-03-18T06:03:25Z")

</div>

Hello; I’m so new to processing and I need help with my code. Basically i have a sensor connected to Arduino that sends out data of an array of data. I’m able to send the data to processing and gets them converted to i…

---

## [P5.js Web Editor - Adding Test Coverage](https://discourse.processing.org/t/p5-js-web-editor-adding-test-coverage/18759)

<div class="topic-metadata">

**Author:** [@usman](https://discourse.processing.org/u/usman)\
**Replies:** 0\
**Last updated:** [March 18, 2020, 2:56am UTC](https://discourse.processing.org/t/p5-js-web-editor-adding-test-coverage/18759 "2020-03-18T02:56:16Z")

</div>

Hi, I am Muhammad Usman and a third year PhD student at the University of Texas at Austin. I am doing my PhD in Automated testing of software systems. I am interested in contributing to the p5.js web editor by adding th…

---

## [Calling all shader users in Processing!](https://discourse.processing.org/t/calling-all-shader-users-in-processing/18751)

<div class="topic-metadata">

**Author:** [@izzatariq](https://discourse.processing.org/u/izzatariq)\
**Replies:** 4\
**Last updated:** [March 18, 2020, 2:22am UTC](https://discourse.processing.org/t/calling-all-shader-users-in-processing/18751 "2020-03-18T02:22:41Z")

</div>

Hi Processing Community! We are currently conducting a research study on the usability of shader programming in the PDE (Processing Development Environment). The study would be conducted remotely and will involve filling…

---

## [Número: A friendly and intuitive math library for p5.js](https://discourse.processing.org/t/numero-a-friendly-and-intuitive-math-library-for-p5-js/18719)

<div class="topic-metadata">

**Author:** [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Replies:** 2\
**Last updated:** [March 17, 2020, 8:57pm UTC](https://discourse.processing.org/t/numero-a-friendly-and-intuitive-math-library-for-p5-js/18719 "2020-03-17T20:57:05Z")

</div>

Hello! Thought I’d share the p5.js math library I’ve been playing around with for a few months: número. It’s a minimal wrapper around TensorFlow.js’ linear algebra engine. Here it is powering a 2D fluid simulation that m…

---

## [GSoC proposal for android Migrating core library to AndroidX](https://discourse.processing.org/t/gsoc-proposal-for-android-migrating-core-library-to-androidx/18747)

<div class="topic-metadata">

**Author:** [@udhay24](https://discourse.processing.org/u/udhay24)\
**Replies:** 0\
**Last updated:** [March 17, 2020, 7:20pm UTC](https://discourse.processing.org/t/gsoc-proposal-for-android-migrating-core-library-to-androidx/18747 "2020-03-17T19:20:50Z")

</div>

hello everyone, I am posting my proposal for GSoC or android Migrating core library to AndroidX. in this proposal I have planned to perform more than just one task of migrating to AndroidX, I will also be migrating the …

---

## [Playing with sound wave](https://discourse.processing.org/t/playing-with-sound-wave/18732)

<div class="topic-metadata">

**Author:** [@diego](https://discourse.processing.org/u/diego)\
**Replies:** 2\
**Last updated:** [March 17, 2020, 7:18pm UTC](https://discourse.processing.org/t/playing-with-sound-wave/18732 "2020-03-17T19:18:35Z")

</div>

various types of viewing and scene output : simple sound viewer import processing.sound.\*; ///////////////////////////// AudioIn input; Waveform waveform; ////////////////////// int NCampioni; float\[\] punti ; ArrayLi…

---

## [blendMode() behaves differently in Chrome vs Firefox](https://discourse.processing.org/t/blendmode-behaves-differently-in-chrome-vs-firefox/18590)

<div class="topic-metadata">

**Author:** [@hellonearthis](https://discourse.processing.org/u/hellonearthis)\
**Replies:** 1\
**Last updated:** [March 17, 2020, 6:16pm UTC](https://discourse.processing.org/t/blendmode-behaves-differently-in-chrome-vs-firefox/18590 "2020-03-17T18:16:45Z")

</div>

I’ve been playing around with blendmode() and found it seems to behave different in chrome vs firefox. Is this a browser thing or a p5 bug? I’m using latest versions of the browser and win 10 pro. Tried it on my deskt…

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

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