# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=305

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

**Page:** 306

---

## [Getting HTML and its info](https://discourse.processing.org/t/getting-html-and-its-info/10546)

<div class="topic-metadata">

**Author:** [@niljon](https://discourse.processing.org/u/niljon)\
**Replies:** 2\
**Last updated:** [April 23, 2019, 2:07pm UTC](https://discourse.processing.org/t/getting-html-and-its-info/10546 "2019-04-23T14:07:54Z")

</div>

Hi all. gonna start with that if there already is a topic about this please redirect me there but i didnt seem to find it by myself. im in need of help with getting information from a website and take out some informat…

---

## [AI Flappy Bird Processing Java](https://discourse.processing.org/t/ai-flappy-bird-processing-java/10513)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 54\
**Last updated:** [April 23, 2019, 4:29am UTC](https://discourse.processing.org/t/ai-flappy-bird-processing-java/10513 "2019-04-23T04:29:19Z")

</div>

Hi I’m trying to learn to build an AI from the flappy bird video from coding train. I got another game I’m using what I learn on, anyways I reached the part of the video where he saves the bird in js & tried several ways…

---

## [Help: This sketch is attempting too much recursion, but there isn't much recursion](https://discourse.processing.org/t/help-this-sketch-is-attempting-too-much-recursion-but-there-isnt-much-recursion/10499)

<div class="topic-metadata">

**Author:** [@tahtackle](https://discourse.processing.org/u/tahtackle)\
**Replies:** 9\
**Last updated:** [April 22, 2019, 9:17pm UTC](https://discourse.processing.org/t/help-this-sketch-is-attempting-too-much-recursion-but-there-isnt-much-recursion/10499 "2019-04-22T21:17:35Z")

</div>

Hello everyone! I have a problem with my code, and I’m not sure where to start, as the error doesn’t give me much information (or rather, I don’t agree with the error). I have a sketch where I’m using thread() to creat…

---

## [Convert JSON String to JSON Object and Parse all data](https://discourse.processing.org/t/convert-json-string-to-json-object-and-parse-all-data/10407)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 4\
**Last updated:** [April 22, 2019, 8:14pm UTC](https://discourse.processing.org/t/convert-json-string-to-json-object-and-parse-all-data/10407 "2019-04-22T20:14:55Z")

</div>

Hi, I need to send a nested Json file to a client. The problem is to parse all data properly to recreate the JSON file. I tried some stuff but I don’t think is the right way. WebSocket Server import websockets.\*; imp…

---

## [Using Emoji's on OSX](https://discourse.processing.org/t/using-emojis-on-osx/10349)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 5\
**Last updated:** [April 22, 2019, 5:17pm UTC](https://discourse.processing.org/t/using-emojis-on-osx/10349 "2019-04-22T17:17:59Z")

</div>

Is it possible to make something like this work: void setup() { size(200, 200); char\[\] chars = Character.toChars(128149); textFont(createFont("AppleColorEmoji", 32, true, chars)); textAlign(CENTER, CENTER); te…

---

## [Stamp tool in processing](https://discourse.processing.org/t/stamp-tool-in-processing/10298)

<div class="topic-metadata">

**Author:** [@helen1216](https://discourse.processing.org/u/helen1216)\
**Replies:** 2\
**Last updated:** [April 22, 2019, 5:03pm UTC](https://discourse.processing.org/t/stamp-tool-in-processing/10298 "2019-04-22T17:03:30Z")

</div>

Hi, I want to know if this idea is possible. I am trying to create a random stamping tool if I do a key press. I want to know if it’s possible to create a stamping tool based on newly created image like this. Now, I…

---

## [What sample rate is Ketai audio input?](https://discourse.processing.org/t/what-sample-rate-is-ketai-audio-input/10528)

<div class="topic-metadata">

**Author:** [@T-matsumoto](https://discourse.processing.org/u/T-matsumoto)\
**Replies:** 2\
**Last updated:** [April 22, 2019, 12:36pm UTC](https://discourse.processing.org/t/what-sample-rate-is-ketai-audio-input/10528 "2019-04-22T12:36:30Z")

</div>

I am using ketai audio input on android apps created with processing, but I cannot find its mic sample rate and ketai’s reference is not described. Do you know the mic sample rate or how to find? Thank you.

---

## [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…

---

## [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…

---

## [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 - 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…

---

## [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

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [Processing 3 & SuperCollider Interaction](https://discourse.processing.org/t/processing-3-supercollider-interaction/10432)

<div class="topic-metadata">

**Author:** [@thedurf18](https://discourse.processing.org/u/thedurf18)\
**Replies:** 6\
**Last updated:** [April 20, 2019, 1:43pm UTC](https://discourse.processing.org/t/processing-3-supercollider-interaction/10432 "2019-04-20T13:43:10Z")

</div>

I’m working on a SuperCollider, Processing 3 interaction. Whenever a certain frequency is played from a synth, a shape appears in the Processing window, but when the frequency is not being played, the shape does not appe…

---

## [I need help for processing task](https://discourse.processing.org/t/i-need-help-for-processing-task/10252)

<div class="topic-metadata">

**Author:** [@derecH](https://discourse.processing.org/u/derecH)\
**Replies:** 5\
**Last updated:** [April 20, 2019, 11:44am UTC](https://discourse.processing.org/t/i-need-help-for-processing-task/10252 "2019-04-20T11:44:05Z")

</div>

Hi all! I need help for processing task. Condition: setup{} draw{} own Section drawing{} other own functions{} mousepressed{} keypressed{} project: Section Sketching Function (Incremental Algorithm or Midpoint A…

---

## [How to avoid that the background() call erase a previously drawn object?](https://discourse.processing.org/t/how-to-avoid-that-the-background-call-erase-a-previously-drawn-object/10444)

<div class="topic-metadata">

**Author:** [@danielrpma](https://discourse.processing.org/u/danielrpma)\
**Replies:** 4\
**Last updated:** [April 20, 2019, 11:06am UTC](https://discourse.processing.org/t/how-to-avoid-that-the-background-call-erase-a-previously-drawn-object/10444 "2019-04-20T11:06:39Z")

</div>

Hello, everyone! I want to make an animation where there are two circles orbiting some point, and I want to draw a line between the circles each 10 frames for example. The thing is, these lines are erased in the next fr…

---

## [Why does my int give me 3 results?](https://discourse.processing.org/t/why-does-my-int-give-me-3-results/10479)

<div class="topic-metadata">

**Author:** [@dewwolf](https://discourse.processing.org/u/dewwolf)\
**Replies:** 4\
**Last updated:** [April 20, 2019, 9:03am UTC](https://discourse.processing.org/t/why-does-my-int-give-me-3-results/10479 "2019-04-20T09:03:55Z")

</div>

Hello! I am re-entering the world of processing, and have hit a learning snag. With what I have right now, It is giving me 10, 11, and 12 as an answer. I understand the 11, but not the other 2. Can anyone explain? Thank …

---

## [2d platformer game, dont know how to implement a few features](https://discourse.processing.org/t/2d-platformer-game-dont-know-how-to-implement-a-few-features/10412)

<div class="topic-metadata">

**Author:** [@dakito](https://discourse.processing.org/u/dakito)\
**Replies:** 4\
**Last updated:** [April 20, 2019, 2:25am UTC](https://discourse.processing.org/t/2d-platformer-game-dont-know-how-to-implement-a-few-features/10412 "2019-04-20T02:25:59Z")

</div>

I dont know how to make proper collision with jumping and how to not allow the player to jump more than once. https://github.com/dakiito/platformer1

---

## [PDF export won't save with background for my 3d sketch](https://discourse.processing.org/t/pdf-export-wont-save-with-background-for-my-3d-sketch/10460)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 1\
**Last updated:** [April 20, 2019, 2:22am UTC](https://discourse.processing.org/t/pdf-export-wont-save-with-background-for-my-3d-sketch/10460 "2019-04-20T02:22:24Z")

</div>

I have read the Processing docs on PDF export for 3d sketches. For some reason, my sketch won’t save as a PDF with the specified background. It only saves on a white background. //Stuff for saving stage import processin…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=304)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=306)
