# Latest

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

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

**Page:** 505

---

## [Help with making code more effective and efficient](https://discourse.processing.org/t/help-with-making-code-more-effective-and-efficient/9924)

<div class="topic-metadata">

**Author:** [@peachman](https://discourse.processing.org/u/peachman)\
**Replies:** 3\
**Last updated:** [April 5, 2019, 11:05pm UTC](https://discourse.processing.org/t/help-with-making-code-more-effective-and-efficient/9924 "2019-04-05T23:05:41Z")

</div>

Hi All, First time poster, apologises in advance for bad formatting, I have only been using P5.js for about 2 weeks now. I have had previous knowledge of how code works from my programming course at college. 5 years on …

---

## [GSOC proposal review](https://discourse.processing.org/t/gsoc-proposal-review/10004)

<div class="topic-metadata">

**Author:** [@ankur\_54](https://discourse.processing.org/u/ankur_54)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 11:04pm UTC](https://discourse.processing.org/t/gsoc-proposal-review/10004 "2019-04-05T23:04:57Z")

</div>

Sir/Mam, I am Ankur Mazumder, B.Tech 2nd year pursuing Computer Science Electronics from IIT Bhubaneshwar. I am willing to work on the GIF project. Unfortunately, there are no mentors allocated for this project. It woul…

---

## [Processing-java and G4P on Mac](https://discourse.processing.org/t/processing-java-and-g4p-on-mac/9905)

<div class="topic-metadata">

**Author:** [@lao8n](https://discourse.processing.org/u/lao8n)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 10:14pm UTC](https://discourse.processing.org/t/processing-java-and-g4p-on-mac/9905 "2019-04-05T22:14:40Z")

</div>

Question: How do we set sketchPath and dataPath in processing-java? Project context: We are creating a game using processing-java where most of our code is java, with some of those files being essentially processing co…

---

## [Can you manipulate frameRate/Speed of draw()?](https://discourse.processing.org/t/can-you-manipulate-framerate-speed-of-draw/971)

<div class="topic-metadata">

**Author:** [@colleen](https://discourse.processing.org/u/colleen)\
**Replies:** 3\
**Last updated:** [June 14, 2018, 8:45pm UTC](https://discourse.processing.org/t/can-you-manipulate-framerate-speed-of-draw/971 "2018-06-14T20:45:50Z")

</div>

Hello, I am new to Processing (and I learned Java almost 3 years ago so I’m a little rusty). I am trying to make an animation of several bike-riding trips over a 24-hour period. The time lapses at a good speed while the…

---

## [\[SOLVED\]\[not swapping\]Need help with Comb Sort visualzation](https://discourse.processing.org/t/solved-not-swapping-need-help-with-comb-sort-visualzation/9894)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 9:07pm UTC](https://discourse.processing.org/t/solved-not-swapping-need-help-with-comb-sort-visualzation/9894 "2019-04-05T21:07:25Z")

</div>

from SkyScrapperClasSS import Sky width = 1000 height = width/2 num = 100 heights = \[\] counter = 0 gap = num\*10/13 swapped = False caounter = 0 getg = False r = color(255,0,0) def setup(): size(width,height) fo…

---

## [GSOC 2019 - Algorithms and data structure visualization](https://discourse.processing.org/t/gsoc-2019-algorithms-and-data-structure-visualization/9933)

<div class="topic-metadata">

**Author:** [@atulnair](https://discourse.processing.org/u/atulnair)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 8:21pm UTC](https://discourse.processing.org/t/gsoc-2019-algorithms-and-data-structure-visualization/9933 "2019-04-05T20:21:06Z")

</div>

Hi, Myself Atul Nair. I have been working on data structure and algorithm visualization using p5js. I would love to participate in this year GSOC and continue my work. https://www.youtube.com/watch?v=-AP1kaAB98o Lo…

---

## [Alternating Bands of two images](https://discourse.processing.org/t/alternating-bands-of-two-images/9857)

<div class="topic-metadata">

**Author:** [@Daspitz3](https://discourse.processing.org/u/Daspitz3)\
**Replies:** 2\
**Last updated:** [April 5, 2019, 7:24pm UTC](https://discourse.processing.org/t/alternating-bands-of-two-images/9857 "2019-04-05T19:24:01Z")

</div>

I am trying to create two alternating bands of two live video streams onto a display window. 10 strips from a live stream and 10 from a delayed stream. The first 10 placed on odd strips and the second on the even strips.…

---

## [Noob need to record mouse when on another window](https://discourse.processing.org/t/noob-need-to-record-mouse-when-on-another-window/10009)

<div class="topic-metadata">

**Author:** [@Coriandre](https://discourse.processing.org/u/Coriandre)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 7:15pm UTC](https://discourse.processing.org/t/noob-need-to-record-mouse-when-on-another-window/10009 "2019-04-05T19:15:10Z")

</div>

Hi! I would like to record the mouse’s mouvement when working on a software like photoshop. The code below is perfect but how to use it when the mouse is on another window ? void setup() { size(640, 360); backgrou…

---

## [P5 js web editor enhancements](https://discourse.processing.org/t/p5-js-web-editor-enhancements/10012)

<div class="topic-metadata">

**Author:** [@sreeraj](https://discourse.processing.org/u/sreeraj)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 7:00pm UTC](https://discourse.processing.org/t/p5-js-web-editor-enhancements/10012 "2019-04-05T19:00:29Z")

</div>

I am sreeraj web and android development is my passion. As a beginner to creative coding the online p5 js editor seems to be very interesting. I think requirements specified in the idea list of p5 js editor are very es…

---

## [HEEELP letters moving with no mouse pressed](https://discourse.processing.org/t/heeelp-letters-moving-with-no-mouse-pressed/9839)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 10\
**Last updated:** [April 5, 2019, 6:51pm UTC](https://discourse.processing.org/t/heeelp-letters-moving-with-no-mouse-pressed/9839 "2019-04-05T18:51:47Z")

</div>

Hi Guys I want to make an animated gif with letters but I want the letters to change forms with no mouse Pressed can I do it? And it’s possible to save this gif into png? Thaaanks import controlP5.\*; boolean record; Co…

---

## [How find the Class of argument when this one is a primitive?](https://discourse.processing.org/t/how-find-the-class-of-argument-when-this-one-is-a-primitive/9970)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 8\
**Last updated:** [April 5, 2019, 5:59pm UTC](https://discourse.processing.org/t/how-find-the-class-of-argument-when-this-one-is-a-primitive/9970 "2019-04-05T17:59:21Z")

</div>

I try to check the class of argument to create a method builder, but when the case the argument is primitive, i don’t find a way to do that ? My code who’s don’t work !!! void setup() { Truc t = new Truc(); println…

---

## [\[Sharing\] Minimalist project to do a 3D sound spectrum visualizer](https://discourse.processing.org/t/sharing-minimalist-project-to-do-a-3d-sound-spectrum-visualizer/9876)

<div class="topic-metadata">

**Author:** [@chris282\_fr](https://discourse.processing.org/u/chris282_fr)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 5:01pm UTC](https://discourse.processing.org/t/sharing-minimalist-project-to-do-a-3d-sound-spectrum-visualizer/9876 "2019-04-05T17:01:49Z")

</div>

Hey I just wanted to share my minimalist code with you… This project is using Processing and minim libraries, I hope you enjoy Chris

---

## [Sound file problem](https://discourse.processing.org/t/sound-file-problem/9875)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 4:49pm UTC](https://discourse.processing.org/t/sound-file-problem/9875 "2019-04-05T16:49:39Z")

</div>

Hi Guys I want to add sound in my code but when I want to run it shows me this java.lang.RuntimeException: Waited 5000ms for: \<6ac2c61e, 64053536\>\[count 2, qsz 0, owner \<main-FPSAWTAnimator#00-Timer0\>\] - \<main-FPSAWTA…

---

## [How to double the size of the array](https://discourse.processing.org/t/how-to-double-the-size-of-the-array/9849)

<div class="topic-metadata">

**Author:** [@Aryan\_Pandhare](https://discourse.processing.org/u/Aryan_Pandhare)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 4:43pm UTC](https://discourse.processing.org/t/how-to-double-the-size-of-the-array/9849 "2019-04-05T16:43:24Z")

</div>

I have written the following code for simple drawing program and I need to double the size of the partially filled array when it is full of data. Here is my code… final int START\_POINTS = 5; int\[\] x = new int\[START\_POI…

---

## [GSoC 2019 Analytical Visualization Tools](https://discourse.processing.org/t/gsoc-2019-analytical-visualization-tools/10001)

<div class="topic-metadata">

**Author:** [@Byambaa0325](https://discourse.processing.org/u/Byambaa0325)\
**Replies:** 0\
**Last updated:** [April 5, 2019, 3:19pm UTC](https://discourse.processing.org/t/gsoc-2019-analytical-visualization-tools/10001 "2019-04-05T15:19:19Z")

</div>

Hi, my name is Byambaa, and I am interested in working on Analytical Visualization project. I have submitted a draft proposal for the project. Would it be possible to give feedback? I would like to get an idea of what t…

---

## [Text problem with stroke](https://discourse.processing.org/t/text-problem-with-stroke/9998)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 4\
**Last updated:** [April 5, 2019, 3:08pm UTC](https://discourse.processing.org/t/text-problem-with-stroke/9998 "2019-04-05T15:08:58Z")

</div>

Hi Guys can you explain me why the stroke doesn’t work on text? PFont myFont; int x=0; float y; float r =0; String s="test"; float xPosition=500; void setup(){ size(500,500); background(0); myFont=loa…

---

## [Find width and height of the text drawn with text()](https://discourse.processing.org/t/find-width-and-height-of-the-text-drawn-with-text/9804)

<div class="topic-metadata">

**Author:** [@kingblue](https://discourse.processing.org/u/kingblue)\
**Replies:** 3\
**Last updated:** [April 5, 2019, 2:40pm UTC](https://discourse.processing.org/t/find-width-and-height-of-the-text-drawn-with-text/9804 "2019-04-05T14:40:48Z")

</div>

Hi, I was wondering if it was possible to, say, draw a rectangle around the exact width and height of a block of text on screen. Let’s say my text() is like follows: String stringText = "Lorem ipsum dolor sit amet, con…

---

## [Strings! Hi Guys i can't understand why my code doesn't work!](https://discourse.processing.org/t/strings-hi-guys-i-cant-understand-why-my-code-doesnt-work/9961)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 7\
**Last updated:** [April 5, 2019, 2:35pm UTC](https://discourse.processing.org/t/strings-hi-guys-i-cant-understand-why-my-code-doesnt-work/9961 "2019-04-05T14:35:04Z")

</div>

Hi guys can you explain me the strings? Why my code doesn’t work? PFont myFont; int x; int y; String s="AVFTA"; void setup(){ size(500,500); background(255); myFont=createFont("SansSerif-48.tff",24); text(s,50,50…

---

## [Create callback](https://discourse.processing.org/t/create-callback/9831)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 23\
**Last updated:** [April 5, 2019, 12:28pm UTC](https://discourse.processing.org/t/create-callback/9831 "2019-04-05T12:28:25Z")

</div>

I try to create a method to make a callback, but that’s don’t work. Consol return the error message. I think my problem is from: i pass this and this don’t read my sketch i suppose ? void setup() { select\_callback("my…

---

## [Where to start with Processing with Arduino](https://discourse.processing.org/t/where-to-start-with-processing-with-arduino/9991)

<div class="topic-metadata">

**Author:** [@realmeteo](https://discourse.processing.org/u/realmeteo)\
**Replies:** 1\
**Last updated:** [April 5, 2019, 11:06am UTC](https://discourse.processing.org/t/where-to-start-with-processing-with-arduino/9991 "2019-04-05T11:06:24Z")

</div>

Hello , please can you advice me some url to start with Processing with Arduino? I work currently with Arduino and sensors, and like create for test an amazing user interface with some instruments (temperature, humidit…

---

## [\`The sketch path is not set.\` error when loading table in global](https://discourse.processing.org/t/the-sketch-path-is-not-set-error-when-loading-table-in-global/9952)

<div class="topic-metadata">

**Author:** [@jmt2080ad](https://discourse.processing.org/u/jmt2080ad)\
**Replies:** 5\
**Last updated:** [April 5, 2019, 8:34am UTC](https://discourse.processing.org/t/the-sketch-path-is-not-set-error-when-loading-table-in-global/9952 "2019-04-05T08:34:47Z")

</div>

I have a large 500K row table that I am trying to use for animating a point. All the examples I can find for loadTable() show the table loading in draw() and using a for loop there to iterate over rows. What I want to do…

---

## [How to make object bounce off another object](https://discourse.processing.org/t/how-to-make-object-bounce-off-another-object/9595)

<div class="topic-metadata">

**Author:** [@Bobby](https://discourse.processing.org/u/Bobby)\
**Replies:** 16\
**Last updated:** [April 4, 2019, 11:54pm UTC](https://discourse.processing.org/t/how-to-make-object-bounce-off-another-object/9595 "2019-04-04T23:54:59Z")

</div>

Have gotten down how to make a ball bounce with gravity. Now I want that ball to hit a moving object and bounce off it. Any help on how to to do that?

---

## [Exporting Empty Excel Files](https://discourse.processing.org/t/exporting-empty-excel-files/9969)

<div class="topic-metadata">

**Author:** [@ggates31](https://discourse.processing.org/u/ggates31)\
**Replies:** 2\
**Last updated:** [April 4, 2019, 7:45pm UTC](https://discourse.processing.org/t/exporting-empty-excel-files/9969 "2019-04-04T19:45:14Z")

</div>

I’m using processing with an Arduino sketch to measure and export IR sensor temperature data. Until recently everything was been working out great, and after I stop running processing the data that’s been collecting in t…

---

## [Is there a way to play a SoundFile muted and keep its amplitude data?](https://discourse.processing.org/t/is-there-a-way-to-play-a-soundfile-muted-and-keep-its-amplitude-data/9830)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 9\
**Last updated:** [April 4, 2019, 12:00pm UTC](https://discourse.processing.org/t/is-there-a-way-to-play-a-soundfile-muted-and-keep-its-amplitude-data/9830 "2019-04-04T12:00:19Z")

</div>

Trying to gather data from a sound file without listening to it, but I’m having trouble getting there. I thought I might be able to do it by playing the file in draw(), gathering the FFT spectrum data, then pausing at th…

---

## [Having trouble declaring a new object](https://discourse.processing.org/t/having-trouble-declaring-a-new-object/9955)

<div class="topic-metadata">

**Author:** [@hasanfarhan33](https://discourse.processing.org/u/hasanfarhan33)\
**Replies:** 1\
**Last updated:** [April 4, 2019, 10:48am UTC](https://discourse.processing.org/t/having-trouble-declaring-a-new-object/9955 "2019-04-04T10:48:33Z")

</div>

Hello guys. I am stuck on my project again. Sorry to disturb you all. I am trying to create a simple game where a particular colored box goes to its location. For example, a red box should cross the red line and a green …

---

## [Adding test coverage (p5.js web editor)](https://discourse.processing.org/t/adding-test-coverage-p5-js-web-editor/9825)

<div class="topic-metadata">

**Author:** [@himanshuc3](https://discourse.processing.org/u/himanshuc3)\
**Replies:** 0\
**Last updated:** [April 1, 2019, 5:18am UTC](https://discourse.processing.org/t/adding-test-coverage-p5-js-web-editor/9825 "2019-04-01T05:18:46Z")

</div>

Hi. I am a GSOC aspirant. I would be obliged to work with processing foundation. I have created a rough draft proposal for the idea “Adding test coverage to p5.js web editor”. I would really like if you could go through…

---

## [Linux: G4P and dialog windows](https://discourse.processing.org/t/linux-g4p-and-dialog-windows/9841)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 7\
**Last updated:** [April 4, 2019, 7:05am UTC](https://discourse.processing.org/t/linux-g4p-and-dialog-windows/9841 "2019-04-04T07:05:29Z")

</div>

Hi, I’m programming a GUI with processing using the nice G4P library and running in a Raspberry Pi with the lastest Raspbian stretch lite. I’ve installed X and openbox. When raspbian starts the cron runs this script: …

---

## [Creating a game in P5JS](https://discourse.processing.org/t/creating-a-game-in-p5js/9885)

<div class="topic-metadata">

**Author:** [@Ziomix](https://discourse.processing.org/u/Ziomix)\
**Replies:** 2\
**Last updated:** [April 3, 2019, 10:31pm UTC](https://discourse.processing.org/t/creating-a-game-in-p5js/9885 "2019-04-03T22:31:15Z")

</div>

Good morning, everyone, I would like to have some help in my project. My project is as follows: Create a game in P5JS ( of your choice). I already have the basis of the script and I know what I want to do next but unfo…

---

## [Import Excel .xlsx to Processing](https://discourse.processing.org/t/import-excel-xlsx-to-processing/9816)

<div class="topic-metadata">

**Author:** [@angel96](https://discourse.processing.org/u/angel96)\
**Replies:** 6\
**Last updated:** [April 3, 2019, 7:58pm UTC](https://discourse.processing.org/t/import-excel-xlsx-to-processing/9816 "2019-04-03T19:58:15Z")

</div>

Hello! I have a problem about importing an excel file into processing. I followed this guide: Private Site but in importExcel(), at this line: Sheet sheet = wb.getSheetAt(0); show me an error: NullPointException. …

---

## [(web p5.js) 2048 - Lots of Undefined errors when I do remove(array, index)](https://discourse.processing.org/t/web-p5-js-2048-lots-of-undefined-errors-when-i-do-remove-array-index/9899)

<div class="topic-metadata">

**Author:** [@ILikePi](https://discourse.processing.org/u/ILikePi)\
**Replies:** 5\
**Last updated:** [April 3, 2019, 7:22pm UTC](https://discourse.processing.org/t/web-p5-js-2048-lots-of-undefined-errors-when-i-do-remove-array-index/9899 "2019-04-03T19:22:18Z")

</div>

This is the game of 2048, I am attempting to recreate it to practice using p5. The code is probably very messy, sorry in advance. The First Error I get is " remove is not defined " The Second Error I get is " fill is n…

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

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