# Latest

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

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

**Page:** 497

---

## [I can not erase the old line](https://discourse.processing.org/t/i-can-not-erase-the-old-line/10172)

<div class="topic-metadata">

**Author:** [@nektarios](https://discourse.processing.org/u/nektarios)\
**Replies:** 5\
**Last updated:** [April 22, 2019, 10:16am UTC](https://discourse.processing.org/t/i-can-not-erase-the-old-line/10172 "2019-04-22T10:16:09Z")

</div>

Hi friends …I am new to processing…I write a code (combine examples) which create a graph speed- time from two sensors(later i will add acelleration-time also to the same graph) .The code run with only two problems:1) wh…

---

## [Saving instance state](https://discourse.processing.org/t/saving-instance-state/10535)

<div class="topic-metadata">

**Author:** [@Sarrio](https://discourse.processing.org/u/Sarrio)\
**Replies:** 4\
**Last updated:** [April 22, 2019, 9:01am UTC](https://discourse.processing.org/t/saving-instance-state/10535 "2019-04-22T09:01:39Z")

</div>

I’m writing a simple game using processing core library in android studio. I set up the project following the Developing with Android Studio tutorial and everything works fine. In particular in my project there is a m…

---

## [How to make crystal like shapes with Processing?](https://discourse.processing.org/t/how-to-make-crystal-like-shapes-with-processing/10392)

<div class="topic-metadata">

**Author:** [@liukov](https://discourse.processing.org/u/liukov)\
**Replies:** 8\
**Last updated:** [April 22, 2019, 8:47am UTC](https://discourse.processing.org/t/how-to-make-crystal-like-shapes-with-processing/10392 "2019-04-22T08:47:46Z")

</div>

Dear community, I’m new to Processing and would need your guidance and suggestions for creating 3D crystal shapes. My guess is I need to start with a PShape object but I have no clue what kind of transformations I shou…

---

## [The compilation is normal in JAVA mode, but the program is wrong in Android mode. How to solve it?](https://discourse.processing.org/t/the-compilation-is-normal-in-java-mode-but-the-program-is-wrong-in-android-mode-how-to-solve-it/10537)

<div class="topic-metadata">

**Author:** [@aienzer](https://discourse.processing.org/u/aienzer)\
**Replies:** 1\
**Last updated:** [April 22, 2019, 8:43am UTC](https://discourse.processing.org/t/the-compilation-is-normal-in-java-mode-but-the-program-is-wrong-in-android-mode-how-to-solve-it/10537 "2019-04-22T08:43:04Z")

</div>

Build folder: C:\\Users\\aienz\\AppData\\Local\\Temp\\android7567665112136503492sketch Unzipping C:\\Users\\aienz.gradle\\wrapper\\dists\\gradle-4.3-bin\\452wx51oxqsia28686mgqhot6\\gradle-4.3-bin.zip to C:\\Users\\aienz.gradle\\wrapp…

---

## [Draw a "sliced" circle shape](https://discourse.processing.org/t/draw-a-sliced-circle-shape/10524)

<div class="topic-metadata">

**Author:** [@smeskhishvili](https://discourse.processing.org/u/smeskhishvili)\
**Replies:** 5\
**Last updated:** [April 22, 2019, 8:14am UTC](https://discourse.processing.org/t/draw-a-sliced-circle-shape/10524 "2019-04-22T08:14:18Z")

</div>

Hello, I’m working on a project to create “sliced” circle, so that each slice would be separate shape so I would be able to fill with color. . . I’ve researched how circles are drawn with brazier’s but I can’t figure ou…

---

## [Joining 2 skeletons from 2 v1 Kinects](https://discourse.processing.org/t/joining-2-skeletons-from-2-v1-kinects/10472)

<div class="topic-metadata">

**Author:** [@charliebaby](https://discourse.processing.org/u/charliebaby)\
**Replies:** 4\
**Last updated:** [April 21, 2019, 11:40pm UTC](https://discourse.processing.org/t/joining-2-skeletons-from-2-v1-kinects/10472 "2019-04-21T23:40:14Z")

</div>

Working with processing and simpleopenni to complete a low res holoportation system. but I’ve come across a problem. since I haven’t calibrated the kinects within the scene, I’m attempting to auto rotate two skeletons (a…

---

## [\[SOLVED\] Converting millis to Sec, Min, Hrs, Days](https://discourse.processing.org/t/solved-converting-millis-to-sec-min-hrs-days/10473)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 13\
**Last updated:** [April 21, 2019, 7:44pm UTC](https://discourse.processing.org/t/solved-converting-millis-to-sec-min-hrs-days/10473 "2019-04-21T19:44:07Z")

</div>

I am well aware of the built in time functions of processing, the ones that get you the computer clock time. However I have a situation where I get large amounts of milliseconds of timed processes , and I would like to …

---

## [G4P guides, issues and changes](https://discourse.processing.org/t/g4p-guides-issues-and-changes/6167)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 5\
**Last updated:** [April 21, 2019, 5:10pm UTC](https://discourse.processing.org/t/g4p-guides-issues-and-changes/6167 "2019-04-21T17:10:27Z")

</div>

It has been ages since I updated the website so I got my duster out and got to work, There are 2 main changes Programmer Guides There have always been guides on some of the more esoteric features but this area has bee…

---

## [G4P - Peter, about the Droplist file - What Kind? Where?](https://discourse.processing.org/t/g4p-peter-about-the-droplist-file-what-kind-where/10475)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 5\
**Last updated:** [April 21, 2019, 5:06pm UTC](https://discourse.processing.org/t/g4p-peter-about-the-droplist-file-what-kind-where/10475 "2019-04-21T17:06:30Z")

</div>

Again, than you for the library. Tried to use for the first time that droplist but I get: The file “list\_396198” is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and…

---

## [Speech Recognition](https://discourse.processing.org/t/speech-recognition/10438)

<div class="topic-metadata">

**Author:** [@dannfelixx](https://discourse.processing.org/u/dannfelixx)\
**Replies:** 15\
**Last updated:** [April 21, 2019, 4:55pm UTC](https://discourse.processing.org/t/speech-recognition/10438 "2019-04-21T16:55:18Z")

</div>

Hello! I’m a student working on a small project for class and I’m having some troubles (I’m pretty new to p5.js). I’m using the p5.speech library to get speech recognition into my project; basically what I want to do is…

---

## [Remnants on movement and picture off-screening](https://discourse.processing.org/t/remnants-on-movement-and-picture-off-screening/10435)

<div class="topic-metadata">

**Author:** [@FlyingApple](https://discourse.processing.org/u/FlyingApple)\
**Replies:** 6\
**Last updated:** [April 21, 2019, 4:40pm UTC](https://discourse.processing.org/t/remnants-on-movement-and-picture-off-screening/10435 "2019-04-21T16:40:26Z")

</div>

This may be a stupid question but if you import a paint file with a character (rectangle) that moves on the screen is there any better way to clear the remnants left behind by the old copy of the character except just re…

---

## [The function printArray doesn't exist?](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [April 21, 2019, 3:55pm UTC](https://discourse.processing.org/t/the-function-printarray-doesnt-exist/10452 "2019-04-21T15:55:06Z")

</div>

Hi, I don’t manage to see an array of float. I don’t understand why. The array is declared like that before the setup public float\[\] naturalFrequency; and I use printArray (naturalFrequency\[i\]); but it doesn’t work …

---

## [Make the camera follow an object](https://discourse.processing.org/t/make-the-camera-follow-an-object/10386)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 5\
**Last updated:** [April 21, 2019, 3:52pm UTC](https://discourse.processing.org/t/make-the-camera-follow-an-object/10386 "2019-04-21T15:52:10Z")

</div>

Hi, I am trying to make a game in processing and I need to make the camera follow an object by using camera, but i can’t get it to work so it would be nice with just a simple example

---

## [Should width and height of canvas be double?](https://discourse.processing.org/t/should-width-and-height-of-canvas-be-double/10451)

<div class="topic-metadata">

**Author:** [@anthonygalea](https://discourse.processing.org/u/anthonygalea)\
**Replies:** 4\
**Last updated:** [April 21, 2019, 3:20pm UTC](https://discourse.processing.org/t/should-width-and-height-of-canvas-be-double/10451 "2019-04-21T15:20:01Z")

</div>

I’m using a Macbook pro (with a hidpi display) and just noticed that the width and height properties of the canvas element are double the width and height parameters passed to the createCanvas call. Screenshot attached. …

---

## [Click on shape in array](https://discourse.processing.org/t/click-on-shape-in-array/10515)

<div class="topic-metadata">

**Author:** [@Tims](https://discourse.processing.org/u/Tims)\
**Replies:** 2\
**Last updated:** [April 21, 2019, 12:13pm UTC](https://discourse.processing.org/t/click-on-shape-in-array/10515 "2019-04-21T12:13:57Z")

</div>

Hi everyone. I’m currently trying to create several shapes where each shape can be clicked on seperately. I currently have an array of rectangles which are being drawn onto the screen. I want to be able to click on a rec…

---

## [Processing eating storage](https://discourse.processing.org/t/processing-eating-storage/10507)

<div class="topic-metadata">

**Author:** [@luuk](https://discourse.processing.org/u/luuk)\
**Replies:** 2\
**Last updated:** [April 21, 2019, 8:20am UTC](https://discourse.processing.org/t/processing-eating-storage/10507 "2019-04-21T08:20:23Z")

</div>

Hello there, I’ve started to try to get started with Processing for Android today. However what’s really bothering me is the amount of storage it takes up on my laptop. Every time I run a sketch to my android device, I …

---

## [Trying to make a box rotate, getting error even after p5 check](https://discourse.processing.org/t/trying-to-make-a-box-rotate-getting-error-even-after-p5-check/10512)

<div class="topic-metadata">

**Author:** [@octaminotin](https://discourse.processing.org/u/octaminotin)\
**Replies:** 1\
**Last updated:** [April 21, 2019, 4:55am UTC](https://discourse.processing.org/t/trying-to-make-a-box-rotate-getting-error-even-after-p5-check/10512 "2019-04-21T04:55:39Z")

</div>

Heres the error code: Uncaught SyntaxError: missing ) after argument list (sketch: line 10) Thats, "rotateX(framecount \* 01.0) function setup() { createCanvas(400, 400); } function draw() { background(0); noStrok…

---

## [Ayuda! transparencia y relleno de ellipse](https://discourse.processing.org/t/ayuda-transparencia-y-relleno-de-ellipse/10481)

<div class="topic-metadata">

**Author:** [@lu4425](https://discourse.processing.org/u/lu4425)\
**Replies:** 1\
**Last updated:** [April 21, 2019, 1:00am UTC](https://discourse.processing.org/t/ayuda-transparencia-y-relleno-de-ellipse/10481 "2019-04-21T01:00:00Z")

</div>

Ayuda!! Como hacer para que la ellipse tome la textura de una imagen, solo logre que tome la paleta de colores, pero quisiera que se rellene con la textura de una imagen. Intente usar createShape para rellenar la ellips…

---

## [Using java code in processing](https://discourse.processing.org/t/using-java-code-in-processing/10416)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 10\
**Last updated:** [April 20, 2019, 7:27pm UTC](https://discourse.processing.org/t/using-java-code-in-processing/10416 "2019-04-20T19:27:00Z")

</div>

OK, I was looking into the toy AI coding train made and found the code for flappy bird nn in processing so I copied and pasted to see what would happen, but one file said java instead of the processing end letter. do I c…

---

## [Code gets replaced](https://discourse.processing.org/t/code-gets-replaced/10504)

<div class="topic-metadata">

**Author:** [@gooffyy80](https://discourse.processing.org/u/gooffyy80)\
**Replies:** 2\
**Last updated:** [April 20, 2019, 7:00pm UTC](https://discourse.processing.org/t/code-gets-replaced/10504 "2019-04-20T19:00:33Z")

</div>

Whenever I type one thing that has something following it such as x/y coordinates whatever is after that gets replaced by what I am currently typing. Is that supposed to happen? If not how do I fix it?

---

## [Configurar Api Modo Android](https://discourse.processing.org/t/configurar-api-modo-android/10500)

<div class="topic-metadata">

**Author:** [@jua3po](https://discourse.processing.org/u/jua3po)\
**Replies:** 2\
**Last updated:** [April 20, 2019, 6:42pm UTC](https://discourse.processing.org/t/configurar-api-modo-android/10500 "2019-04-20T18:42:36Z")

</div>

Hola, estoy intentando aprender a programar con processing (soy novato) , estaba utilizando processing 3.0.2 en modo android, funcionaba todo bien podía hacer las pruebas en el emulador (aunque fuera lento una vez ejecut…

---

## [How to create an sphere to have set of tiles in certain position p5](https://discourse.processing.org/t/how-to-create-an-sphere-to-have-set-of-tiles-in-certain-position-p5/10470)

<div class="topic-metadata">

**Author:** [@alpheraz](https://discourse.processing.org/u/alpheraz)\
**Replies:** 6\
**Last updated:** [April 20, 2019, 6:01pm UTC](https://discourse.processing.org/t/how-to-create-an-sphere-to-have-set-of-tiles-in-certain-position-p5/10470 "2019-04-20T18:01:11Z")

</div>

Hello all, I am interested in creating an object that I want to use to hold videos/ or images within but am having great trouble in creating the framework of it. After looking at multiple forums and posts, I can’t seem…

---

## [Cannot convert from double to float](https://discourse.processing.org/t/cannot-convert-from-double-to-float/10427)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 8:28pm UTC](https://discourse.processing.org/t/cannot-convert-from-double-to-float/10427 "2019-04-18T20:28:29Z")

</div>

Hi, I need to change variable from double to float but I can’t. private double differentiate(double phase, double noise, double naturalFrequency) { //float AvPh= averagePhase; // float Ph= phase; float AvPh…

---

## [How do you expand a kinect's window to match the size of the canvas?](https://discourse.processing.org/t/how-do-you-expand-a-kinects-window-to-match-the-size-of-the-canvas/10168)

<div class="topic-metadata">

**Author:** [@nicoles](https://discourse.processing.org/u/nicoles)\
**Replies:** 6\
**Last updated:** [April 20, 2019, 5:36pm UTC](https://discourse.processing.org/t/how-do-you-expand-a-kinects-window-to-match-the-size-of-the-canvas/10168 "2019-04-20T17:36:51Z")

</div>

I am playing with the Kinect and when I enlarge the size of the canvas, the Kinect window stays the same size and does not expand to match the size of the canvas. How can I enlarge it?

---

## [Hey guys if I want my text to be in the middle what can I change?](https://discourse.processing.org/t/hey-guys-if-i-want-my-text-to-be-in-the-middle-what-can-i-change/10346)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 7\
**Last updated:** [April 18, 2019, 6:24pm UTC](https://discourse.processing.org/t/hey-guys-if-i-want-my-text-to-be-in-the-middle-what-can-i-change/10346 "2019-04-18T18:24:50Z")

</div>

PFont myFont; String s1= ("OBECALP PHARMACY "); float angleSpeed= TWO\_PI/s1.length(); float letterX,letterY; int i,cntX,cntY; int radius =260; float z=random(TWO\_PI); float x=0; float y; float r =0; float offset; floa…

---

## [How do you combine canvases in p5j weather you overlap or organise them](https://discourse.processing.org/t/how-do-you-combine-canvases-in-p5j-weather-you-overlap-or-organise-them/10275)

<div class="topic-metadata">

**Author:** [@octaminotin](https://discourse.processing.org/u/octaminotin)\
**Replies:** 8\
**Last updated:** [April 20, 2019, 5:24pm UTC](https://discourse.processing.org/t/how-do-you-combine-canvases-in-p5j-weather-you-overlap-or-organise-them/10275 "2019-04-20T17:24:56Z")

</div>

basically here it is the basic form of this thought. im considering instance mode being something, although i don’t get the error message for my first equation; note this for someone who knows nothing, but needs to learn…

---

## [How can i use this higher dimmensional equation in p5](https://discourse.processing.org/t/how-can-i-use-this-higher-dimmensional-equation-in-p5/10285)

<div class="topic-metadata">

**Author:** [@octaminotin](https://discourse.processing.org/u/octaminotin)\
**Replies:** 7\
**Last updated:** [April 20, 2019, 5:22pm UTC](https://discourse.processing.org/t/how-can-i-use-this-higher-dimmensional-equation-in-p5/10285 "2019-04-20T17:22:01Z")

</div>

decided to start a math script it reads x^2 + y^2 = 1

---

## [2D Array Average of each row and ignoring single values](https://discourse.processing.org/t/2d-array-average-of-each-row-and-ignoring-single-values/10488)

<div class="topic-metadata">

**Author:** [@Zortak](https://discourse.processing.org/u/Zortak)\
**Replies:** 3\
**Last updated:** [April 20, 2019, 4:35pm UTC](https://discourse.processing.org/t/2d-array-average-of-each-row-and-ignoring-single-values/10488 "2019-04-20T16:35:38Z")

</div>

Hey, I’ve got an assignment about 2D Arrays in which the array is supposed to be an ozon meter and the values are hourly measurements per day, with the value = 0 meaning the meter was defect. We need to get the averag…

---

## [Adding numbers in an empty array in Processing 3.5.3](https://discourse.processing.org/t/adding-numbers-in-an-empty-array-in-processing-3-5-3/10496)

<div class="topic-metadata">

**Author:** [@TambourMagique](https://discourse.processing.org/u/TambourMagique)\
**Replies:** 3\
**Last updated:** [April 20, 2019, 3:34pm UTC](https://discourse.processing.org/t/adding-numbers-in-an-empty-array-in-processing-3-5-3/10496 "2019-04-20T15:34:17Z")

</div>

Hello, I am trying to code a rythm game in Processing. Since then I was coding in OpenProcessing but in order to import songs, I had to change the application. I had to make a list of 600 integer. To make the program m…

---

## [Arrange common items to spell out words](https://discourse.processing.org/t/arrange-common-items-to-spell-out-words/10498)

<div class="topic-metadata">

**Author:** [@rasmussen.bryan](https://discourse.processing.org/u/rasmussen.bryan)\
**Replies:** 0\
**Last updated:** [April 20, 2019, 3:22pm UTC](https://discourse.processing.org/t/arrange-common-items-to-spell-out-words/10498 "2019-04-20T15:22:26Z")

</div>

Hey I recently asked this on computergraphics.stachexchange.com but then I realized, I bet somebody has done this in processing - so I will copy the question below, it is quite verbose and detailed (maybe overly so) beca…

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

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