# Latest

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

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

**Page:** 467

---

## [Android createGraphics memory problem](https://discourse.processing.org/t/android-creategraphics-memory-problem/2916)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 1:55pm UTC](https://discourse.processing.org/t/android-creategraphics-memory-problem/2916 "2019-07-11T13:55:48Z")

</div>

Hi. Using code below it sometimes gives, and sometimes not, an error: (counter value below 4000 does not give an error. -using APDE-) Free memory = 4649576 java.lang.OutOfMemoryError at processing.a2d.PGraphicsAndro…

---

## [SOUND ILLUSTRATION of the different motives of five engines driven with Arduino](https://discourse.processing.org/t/sound-illustration-of-the-different-motives-of-five-engines-driven-with-arduino/12559)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 5\
**Last updated:** [July 11, 2019, 12:32pm UTC](https://discourse.processing.org/t/sound-illustration-of-the-different-motives-of-five-engines-driven-with-arduino/12559 "2019-07-11T12:32:36Z")

</div>

I try to illustrate with sounds the general movement of my artistic installation. Maybe there is easier way to do it with Max/msp but if someone can help with Processing, let’s try! For the moment, I can just play one s…

---

## [Look what I made! 6 months ago I had no JavaScript experience](https://discourse.processing.org/t/look-what-i-made-6-months-ago-i-had-no-javascript-experience/12350)

<div class="topic-metadata">

**Author:** [@NeilTheSeal](https://discourse.processing.org/u/NeilTheSeal)\
**Replies:** 0\
**Last updated:** [June 28, 2019, 12:19am UTC](https://discourse.processing.org/t/look-what-i-made-6-months-ago-i-had-no-javascript-experience/12350 "2019-06-28T00:19:28Z")

</div>

About 6 months ago, I had no idea how to program interactive web apps with JavaScript. Thanks to p5.js’ easy-to-learn platform and Daniel Shiffman’s awesome Coding Train videos on YouTube, I was able to learn web develop…

---

## [About creating an add on to draw graphs in p5](https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613)

<div class="topic-metadata">

**Author:** [@Jithin](https://discourse.processing.org/u/Jithin)\
**Replies:** 2\
**Last updated:** [July 10, 2019, 3:27pm UTC](https://discourse.processing.org/t/about-creating-an-add-on-to-draw-graphs-in-p5/12613 "2019-07-10T15:27:58Z")

</div>

I’m thinking of creating a library for drawing graphs in p5 sketch. We may provide options like where the origin is, dimensions of the graph, width of each unit in each axes, labels, function to be plotted etc. A graph w…

---

## [Sprite library in a game](https://discourse.processing.org/t/sprite-library-in-a-game/12516)

<div class="topic-metadata">

**Author:** [@Glowtube](https://discourse.processing.org/u/Glowtube)\
**Replies:** 22\
**Last updated:** [July 10, 2019, 11:27am UTC](https://discourse.processing.org/t/sprite-library-in-a-game/12516 "2019-07-10T11:27:16Z")

</div>

Hello. I am currently working on a “little” game which will look something like Civ. First I drew all hexagons by myself but I found some nice sprites so I wanted to use the sprite library. But somehow it is unplayable …

---

## [Make a camera who follow a player](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 3\
**Last updated:** [July 10, 2019, 11:16am UTC](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471 "2019-07-10T11:16:41Z")

</div>

Hi everyone, i want to make a camera who follow my player ( i allready make a topic about it but now it’s a bit different) so, i need a camera who follow the player but not linked to the screen so if i change the size o…

---

## [How to run processing sketch automatic when my PC is Shuting Up](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640)

<div class="topic-metadata">

**Author:** [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Replies:** 2\
**Last updated:** [July 10, 2019, 10:50am UTC](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640 "2019-07-10T10:50:09Z")

</div>

i want to run my processing sketch automatic when i open my PC. how it is possible and what method should i use. please share Your answer which will very help full for me. or can i use batch file for this . if this po…

---

## [The unit fraction problem](https://discourse.processing.org/t/the-unit-fraction-problem/12633)

<div class="topic-metadata">

**Author:** [@InferNova](https://discourse.processing.org/u/InferNova)\
**Replies:** 0\
**Last updated:** [July 9, 2019, 11:08pm UTC](https://discourse.processing.org/t/the-unit-fraction-problem/12633 "2019-07-09T23:08:05Z")

</div>

Hey Guys ! In university this year I was given a problem to solve ( or get the best possible solution ). It involves unit fractions and trying to get the largest set of unit fractions to add up to 1. So for example a se…

---

## [Real-Time dataviz with Neurosky Mindwave mobile](https://discourse.processing.org/t/real-time-dataviz-with-neurosky-mindwave-mobile/12567)

<div class="topic-metadata">

**Author:** [@yashkhataokar](https://discourse.processing.org/u/yashkhataokar)\
**Replies:** 7\
**Last updated:** [July 9, 2019, 7:31pm UTC](https://discourse.processing.org/t/real-time-dataviz-with-neurosky-mindwave-mobile/12567 "2019-07-09T19:31:52Z")

</div>

Hi, I have a visual that reacts to the live data from the EEG headset, the problem is the data streams at a 1 sec interval and the form of the visual changes accordingly, when there is a huge jump in the data value the a…

---

## [Cannot plot realtime (slow,delay)](https://discourse.processing.org/t/cannot-plot-realtime-slow-delay/12610)

<div class="topic-metadata">

**Author:** [@pauledd](https://discourse.processing.org/u/pauledd)\
**Replies:** 6\
**Last updated:** [July 9, 2019, 6:31pm UTC](https://discourse.processing.org/t/cannot-plot-realtime-slow-delay/12610 "2019-07-09T18:31:44Z")

</div>

Hi Intention: Realtime plot an ECG Signal from Arduino’s ADC (sent from Arduino–\>RaspberryPi–\>LAN–\>ClientPC–\>Processing). Problem: The plotting in processing somehow lags/delays behind realtime. In depth: I use a E…

---

## [OpenGL - cannot load shapes(objects)](https://discourse.processing.org/t/opengl-cannot-load-shapes-objects/12629)

<div class="topic-metadata">

**Author:** [@ProgrammableBoyCZECH](https://discourse.processing.org/u/ProgrammableBoyCZECH)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 4:21pm UTC](https://discourse.processing.org/t/opengl-cannot-load-shapes-objects/12629 "2019-07-09T16:21:25Z")

</div>

Hi, can you help me with this code please? I want to make program with OpenGL that shows up objects and if you click with mouse it will show another one. But it is showing only first two, but other not. HERE IS THE C…

---

## [P5js Project Template for ATOM](https://discourse.processing.org/t/p5js-project-template-for-atom/12491)

<div class="topic-metadata">

**Author:** [@mat650](https://discourse.processing.org/u/mat650)\
**Replies:** 4\
**Last updated:** [July 9, 2019, 4:11pm UTC](https://discourse.processing.org/t/p5js-project-template-for-atom/12491 "2019-07-09T16:11:41Z")

</div>

I was searching for a way to create rapidly new p5.js projects by template in Atom, but I have found none so I made mine and I hope it can help you as well: https://github.com/MatteRohrn/p5jsProjectTemplateForAtom It r…

---

## [Graphical user interface](https://discourse.processing.org/t/graphical-user-interface/12624)

<div class="topic-metadata">

**Author:** [@amitshishodia](https://discourse.processing.org/u/amitshishodia)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 3:55pm UTC](https://discourse.processing.org/t/graphical-user-interface/12624 "2019-07-09T15:55:24Z")

</div>

Hello All I want to make a GUI with this GUI I want to control the sampling rate. I have some devices in these devices have analog sensor I have used SPI serial communication for acquiring temperature and humidity data. …

---

## [Is parent parameter of Capture ever not "this"?](https://discourse.processing.org/t/is-parent-parameter-of-capture-ever-not-this/12543)

<div class="topic-metadata">

**Author:** [@cyanblue](https://discourse.processing.org/u/cyanblue)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 3:16pm UTC](https://discourse.processing.org/t/is-parent-parameter-of-capture-ever-not-this/12543 "2019-07-09T15:16:19Z")

</div>

I’ve just been playing around with the Capture class, and the default first (parent) parameter when declaring a new Capture object is “this” - which I understand to refer to the parent of the object…i.e. the current sket…

---

## [Maybe too many \> characters?](https://discourse.processing.org/t/maybe-too-many-characters/12599)

<div class="topic-metadata">

**Author:** [@pizzamaster77](https://discourse.processing.org/u/pizzamaster77)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 2:51pm UTC](https://discourse.processing.org/t/maybe-too-many-characters/12599 "2019-07-09T14:51:26Z")

</div>

Hi, I’m a noob to Processing and I was trying to create a simple circle bouncing around a screen. I got part way through to the point where I wanted it to detect when the circle got close to the edge. I started with when…

---

## [Wrap around iteration](https://discourse.processing.org/t/wrap-around-iteration/12586)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 9\
**Last updated:** [July 9, 2019, 12:05pm UTC](https://discourse.processing.org/t/wrap-around-iteration/12586 "2019-07-09T12:05:32Z")

</div>

Is there a way to get this effect of generating 0, 1 1, 2 2, 3 3, 0 … with a single condition, I mean either without using if/else, or taking the if/else out of the for loop? And avoid hard coding ‘0’ This just se…

---

## [Transform two int into one int](https://discourse.processing.org/t/transform-two-int-into-one-int/12604)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 3\
**Last updated:** [July 9, 2019, 9:54am UTC](https://discourse.processing.org/t/transform-two-int-into-one-int/12604 "2019-07-09T09:54:14Z")

</div>

Hello, I have two int variable that I would like to put end to end to form only one int variable : int a= 2, b= 3; int c=//I would like variable c to be equal to 23 Do you have an idea to solve my problem ? Thank you…

---

## [Make class get all functions of p5.js](https://discourse.processing.org/t/make-class-get-all-functions-of-p5-js/12558)

<div class="topic-metadata">

**Author:** [@Choky](https://discourse.processing.org/u/Choky)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 7:10am UTC](https://discourse.processing.org/t/make-class-get-all-functions-of-p5-js/12558 "2019-07-09T07:10:23Z")

</div>

When creating a class I cannot make it so the class gets all the functions of p5.js library. Can anyone help me? it says fill is not defined code : var game = function(g) { g.setup = function() { g.createCanvas(…

---

## [Issue "promises" creating a model P5.js and Tensorflow.js](https://discourse.processing.org/t/issue-promises-creating-a-model-p5-js-and-tensorflow-js/12532)

<div class="topic-metadata">

**Author:** [@dinda](https://discourse.processing.org/u/dinda)\
**Replies:** 3\
**Last updated:** [July 9, 2019, 1:27am UTC](https://discourse.processing.org/t/issue-promises-creating-a-model-p5-js-and-tensorflow-js/12532 "2019-07-09T01:27:14Z")

</div>

Hello!!! How are you? I am trying to fit a model to predict 3 vectors (x, y coordinates) when I show them 28x28px image tensors. I’m also doing it in P5.js because I want it to work in the browser. The thing is that …

---

## [Push() and pop() function isn't working](https://discourse.processing.org/t/push-and-pop-function-isnt-working/12593)

<div class="topic-metadata">

**Author:** [@CubingProgrammer](https://discourse.processing.org/u/CubingProgrammer)\
**Replies:** 4\
**Last updated:** [July 9, 2019, 1:19am UTC](https://discourse.processing.org/t/push-and-pop-function-isnt-working/12593 "2019-07-09T01:19:34Z")

</div>

I want to use push() and pop() function when i run the project it fails. What can i do?

---

## [Why is an E- float being returned when analysing sound](https://discourse.processing.org/t/why-is-an-e-float-being-returned-when-analysing-sound/12603)

<div class="topic-metadata">

**Author:** [@Matthbooth](https://discourse.processing.org/u/Matthbooth)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 1:14am UTC](https://discourse.processing.org/t/why-is-an-e-float-being-returned-when-analysing-sound/12603 "2019-07-09T01:14:49Z")

</div>

Hello I’m analysing the sound spectrum data of an imported sound file. As I loop through data I’m frequently getting numbers such as 5.4515745E-5 rather than a float from 0 to 1. Why is this and how do ignore those nu…

---

## [Coding problem(character Animation Program)](https://discourse.processing.org/t/coding-problem-character-animation-program/12598)

<div class="topic-metadata">

**Author:** [@megarou](https://discourse.processing.org/u/megarou)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 1:03am UTC](https://discourse.processing.org/t/coding-problem-character-animation-program/12598 "2019-07-09T01:03:46Z")

</div>

Hello there, i’m facing a some kind of coding problem?!!, the problem is, i’ve loaded some images of a character to animate, i’ve succeeded to animate the first loaded images of the character, but i couldn’t know how to …

---

## [How do i use another serial to send data from arduino to processing?](https://discourse.processing.org/t/how-do-i-use-another-serial-to-send-data-from-arduino-to-processing/12595)

<div class="topic-metadata">

**Author:** [@diazdaiz](https://discourse.processing.org/u/diazdaiz)\
**Replies:** 1\
**Last updated:** [July 9, 2019, 12:58am UTC](https://discourse.processing.org/t/how-do-i-use-another-serial-to-send-data-from-arduino-to-processing/12595 "2019-07-09T00:58:06Z")

</div>

i am using arduino teensy and i want to send data to processing using another serial, how do i write it in processing? i am following this tutorial: https://www.youtube.com/watch?v=NhyB00J6PiM but in my case, i need to…

---

## [Skip blank lines from network data](https://discourse.processing.org/t/skip-blank-lines-from-network-data/12551)

<div class="topic-metadata">

**Author:** [@pauledd](https://discourse.processing.org/u/pauledd)\
**Replies:** 8\
**Last updated:** [July 8, 2019, 6:28pm UTC](https://discourse.processing.org/t/skip-blank-lines-from-network-data/12551 "2019-07-08T18:28:05Z")

</div>

Hi there, Constitution: bloody beginner Situation: I try to receive serial data into processing via LAN from a Raspberry Pi that in turn receives the data from /dev/ttyUSB0 connected Arduino (ADC Data, println every …

---

## [Text keeps moving to the background](https://discourse.processing.org/t/text-keeps-moving-to-the-background/12591)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 4\
**Last updated:** [July 8, 2019, 4:09pm UTC](https://discourse.processing.org/t/text-keeps-moving-to-the-background/12591 "2019-07-08T16:09:07Z")

</div>

Hello, I’m trying to take text (a dialogue I put in avoid draw() )to the foreground because it shows in front of the screen for under a sec and then goes behind the background. void setup(){ //Sfondo Uomo1 = load…

---

## [Using PShapes as a canvas for images](https://discourse.processing.org/t/using-pshapes-as-a-canvas-for-images/12529)

<div class="topic-metadata">

**Author:** [@xce](https://discourse.processing.org/u/xce)\
**Replies:** 9\
**Last updated:** [July 8, 2019, 5:00pm UTC](https://discourse.processing.org/t/using-pshapes-as-a-canvas-for-images/12529 "2019-07-08T17:00:31Z")

</div>

Hello Everyone, I’m just getting started with P3D, although I’ve used Processing in the past, and have run into an issue: I can’t figure out how to place images on a PShape. I have looked at the Texture Cube example pro…

---

## [textBounds() -- can it be used on the default font?](https://discourse.processing.org/t/textbounds-can-it-be-used-on-the-default-font/12578)

<div class="topic-metadata">

**Author:** [@drail](https://discourse.processing.org/u/drail)\
**Replies:** 1\
**Last updated:** [July 8, 2019, 3:58pm UTC](https://discourse.processing.org/t/textbounds-can-it-be-used-on-the-default-font/12578 "2019-07-08T15:58:08Z")

</div>

If I want to make a background just behind some text that I draw on the canvas, I could draw a box behind the text, and I would get the box’s position and size with the textBounds() method. Can this be done with the def…

---

## [Thesis about creative coding and p5.js](https://discourse.processing.org/t/thesis-about-creative-coding-and-p5-js/12447)

<div class="topic-metadata">

**Author:** [@emsa16](https://discourse.processing.org/u/emsa16)\
**Replies:** 10\
**Last updated:** [July 8, 2019, 3:37pm UTC](https://discourse.processing.org/t/thesis-about-creative-coding-and-p5-js/12447 "2019-07-08T15:37:15Z")

</div>

Hi there, I recently finished my bachelor’s thesis about creative coding on the web, and p5.js in particular, so for anyone that might be interested, I wanted to share the link to the final paper. Take care!

---

## [Can't display Image: size error even if it is scaled right](https://discourse.processing.org/t/cant-display-image-size-error-even-if-it-is-scaled-right/12583)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 3\
**Last updated:** [July 8, 2019, 12:41pm UTC](https://discourse.processing.org/t/cant-display-image-size-error-even-if-it-is-scaled-right/12583 "2019-07-08T12:41:32Z")

</div>

Hello! I can’t figure out why I can’t display 1 Image: even if I imported it in the data folder, I wrote the right name with the right extension and scaled to the right size: import ddf.minim.\*; import ddf.minim.analysi…

---

## [Drawing java.awt.Shape](https://discourse.processing.org/t/drawing-java-awt-shape/12572)

<div class="topic-metadata">

**Author:** [@Sayeth\_We](https://discourse.processing.org/u/Sayeth_We)\
**Replies:** 1\
**Last updated:** [July 8, 2019, 10:23am UTC](https://discourse.processing.org/t/drawing-java-awt-shape/12572 "2019-07-08T10:23:36Z")

</div>

I’m using the java.awt.Shape class for collision detection with intersects() and contains(). However, this means that I’m duplication code, and in particular, magic numbers, when drawing vs checking collisions. an Examp…

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

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