# Latest

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

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

**Page:** 268

---

## [Slow Movement of player to mouse position on mouse click](https://discourse.processing.org/t/slow-movement-of-player-to-mouse-position-on-mouse-click/26844)

<div class="topic-metadata">

**Author:** [@Leonniclass](https://discourse.processing.org/u/Leonniclass)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 9:22pm UTC](https://discourse.processing.org/t/slow-movement-of-player-to-mouse-position-on-mouse-click/26844 "2021-01-06T21:22:54Z")

</div>

Hello, I am new to processing and I have to make a game were the user clicks somewhere in the window and the ball will move to the position. It is pretty simple, but I cant figure it out :sweat\_smile: I havent found som…

---

## [How do i detect when spacebar is pressed?](https://discourse.processing.org/t/how-do-i-detect-when-spacebar-is-pressed/26845)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 2\
**Last updated:** [January 6, 2021, 8:47pm UTC](https://discourse.processing.org/t/how-do-i-detect-when-spacebar-is-pressed/26845 "2021-01-06T20:47:17Z")

</div>

well I want my character to jump when i press spacebar, but it doesn’t work. void keyPressed(){ //i'd like to detect when space bar is pressed. if(key==' '){} //it did'nt work though :( } i saw (key==’ ') in other c…

---

## [MCQ screen and get the questions and answers one by one (multiple choice quiz)](https://discourse.processing.org/t/mcq-screen-and-get-the-questions-and-answers-one-by-one-multiple-choice-quiz/26837)

<div class="topic-metadata">

**Author:** [@Hamedwow](https://discourse.processing.org/u/Hamedwow)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 7:50pm UTC](https://discourse.processing.org/t/mcq-screen-and-get-the-questions-and-answers-one-by-one-multiple-choice-quiz/26837 "2021-01-06T19:50:10Z")

</div>

Hi guys , I have made a board game and i want to get Questions and answers as MCQ’s . I have made a list but when i run my boardgame it shows all the questions and answers . i want it to show me ONE question AND answer f…

---

## [Create presets with buttons (save/load slider data)](https://discourse.processing.org/t/create-presets-with-buttons-save-load-slider-data/26830)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 4\
**Last updated:** [January 6, 2021, 12:45pm UTC](https://discourse.processing.org/t/create-presets-with-buttons-save-load-slider-data/26830 "2021-01-06T12:45:27Z")

</div>

Hi, I would like to save parameters made with sliders as a set of preset with a button, loadable later with this button Someone can give direction where I should looking for please Thank you

---

## [Using Processing headless](https://discourse.processing.org/t/using-processing-headless/26834)

<div class="topic-metadata">

**Author:** [@dlewin](https://discourse.processing.org/u/dlewin)\
**Replies:** 0\
**Last updated:** [January 6, 2021, 11:11am UTC](https://discourse.processing.org/t/using-processing-headless/26834 "2021-01-06T11:11:47Z")

</div>

HI, I’d like to execute processing sketches from RaspberryPI via FadeCandy (https://github.com/scanlime/fadecandy) that uses OPC (Open Pixel Control protocol) to display them to a leds Matrix from Adafruit. But Proces…

---

## [How to freeze a draw loop?](https://discourse.processing.org/t/how-to-freeze-a-draw-loop/2741)

<div class="topic-metadata">

**Author:** [@wrongexit](https://discourse.processing.org/u/wrongexit)\
**Replies:** 7\
**Last updated:** [August 18, 2018, 3:12am UTC](https://discourse.processing.org/t/how-to-freeze-a-draw-loop/2741 "2018-08-18T03:12:50Z")

</div>

I have a draw loop that makes a new graphic each time. I want to be able to pause the loop by clicking the mouse when I see a graphic that I like. But everything I’ve tried fails to stop on the current frame. It’s always…

---

## [Simple sketch issue (mouse over sets color)](https://discourse.processing.org/t/simple-sketch-issue-mouse-over-sets-color/26806)

<div class="topic-metadata">

**Author:** [@DamoBailey](https://discourse.processing.org/u/DamoBailey)\
**Replies:** 13\
**Last updated:** [January 6, 2021, 7:28am UTC](https://discourse.processing.org/t/simple-sketch-issue-mouse-over-sets-color/26806 "2021-01-06T07:28:32Z")

</div>

Hi I am a complete beginner and am working on the following project: Create a 500x500 grey area split into 4 equal quadrants. Show one quadrant as blue when the mouse is in that quadrant (all other quadrants shown as g…

---

## [How do nested arrays such as IntDict\[\] work? (Processing 3.5.4)](https://discourse.processing.org/t/how-do-nested-arrays-such-as-intdict-work-processing-3-5-4/26818)

<div class="topic-metadata">

**Author:** [@Anon0908](https://discourse.processing.org/u/Anon0908)\
**Replies:** 1\
**Last updated:** [January 6, 2021, 7:05am UTC](https://discourse.processing.org/t/how-do-nested-arrays-such-as-intdict-work-processing-3-5-4/26818 "2021-01-06T07:05:03Z")

</div>

How do I properly invoke array commands such as append() on an IntDict\[\] array? For example, this is my current sketch testing such a thing: IntDict\[\] dictArray; void setup() { size(1400, 1000); /\*properly initializ…

---

## [How to sort an Array ArrayList?](https://discourse.processing.org/t/how-to-sort-an-array-arraylist/26809)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 8\
**Last updated:** [January 6, 2021, 6:45am UTC](https://discourse.processing.org/t/how-to-sort-an-array-arraylist/26809 "2021-01-06T06:45:32Z")

</div>

Hi! I am working on a sorting algorithm but I am still having some trouble. I have an array list ArrayList\<ArrayList\<Float\>\> segs = new ArrayList\<ArrayList\<Float\>\>(); and I want to sort() (width the default function)…

---

## [I cant play 2 videos idk why AND PLEASE STOP SAY DONT CALL SETUP :)](https://discourse.processing.org/t/i-cant-play-2-videos-idk-why-and-please-stop-say-dont-call-setup/26601)

<div class="topic-metadata">

**Author:** [@clay21](https://discourse.processing.org/u/clay21)\
**Replies:** 6\
**Last updated:** [January 6, 2021, 3:47am UTC](https://discourse.processing.org/t/i-cant-play-2-videos-idk-why-and-please-stop-say-dont-call-setup/26601 "2021-01-06T03:47:32Z")

</div>

import processing.video.\*; int puan=0; int timer; int page=0; boolean pressed=false; Movie mov,mov2; PImage foto1, foto2, foto3, foto4, foto5, foto6, foto7,foto8,foto9,foto10,foto11,bg; void setup() { size(860, 6…

---

## [Galaga projectile motion](https://discourse.processing.org/t/galaga-projectile-motion/26757)

<div class="topic-metadata">

**Author:** [@lionR](https://discourse.processing.org/u/lionR)\
**Replies:** 12\
**Last updated:** [January 5, 2021, 9:40pm UTC](https://discourse.processing.org/t/galaga-projectile-motion/26757 "2021-01-05T21:40:27Z")

</div>

//Global Variables PImage player, enemy, rocket; int playerX; int rocketX; int rocketY; //Following variables from funprogramming.org float\[\] x = new float\[250\];// creates x values for 250 stars float\[\] y = new float…

---

## [LoadImage Android Studio](https://discourse.processing.org/t/loadimage-android-studio/26802)

<div class="topic-metadata">

**Author:** [@andritow](https://discourse.processing.org/u/andritow)\
**Replies:** 0\
**Last updated:** [January 5, 2021, 7:35pm UTC](https://discourse.processing.org/t/loadimage-android-studio/26802 "2021-01-05T19:35:59Z")

</div>

I already checked this forum with loadimage and I haven’t been able to add images to my project yet. I have the assets folder add to the project where I have put my images but when I call them it keeps showing an error. …

---

## [PLEASE DELETE THIS POST: Problems with constructor of Class](https://discourse.processing.org/t/please-delete-this-post-problems-with-constructor-of-class/26796)

<div class="topic-metadata">

**Author:** [@Beto](https://discourse.processing.org/u/Beto)\
**Replies:** 4\
**Last updated:** [January 5, 2021, 5:05pm UTC](https://discourse.processing.org/t/please-delete-this-post-problems-with-constructor-of-class/26796 "2021-01-05T17:05:21Z")

</div>

My code will be uploaded later in a new topic. If an admin comes across this topic, please delete.

---

## [Help with hiding and showing the canvas](https://discourse.processing.org/t/help-with-hiding-and-showing-the-canvas/26795)

<div class="topic-metadata">

**Author:** [@Michna](https://discourse.processing.org/u/Michna)\
**Replies:** 1\
**Last updated:** [January 5, 2021, 3:27pm UTC](https://discourse.processing.org/t/help-with-hiding-and-showing-the-canvas/26795 "2021-01-05T15:27:56Z")

</div>

Hello everyone, i started to programm an online gallery of photographs where more pictures are shown on one canvas. I would like to move to second page or create second canvas (then third and so on) with another photogr…

---

## [【Processing】Shooting Star 3](https://discourse.processing.org/t/processing-shooting-star-3/26710)

<div class="topic-metadata">

**Author:** [@Rafael1004](https://discourse.processing.org/u/Rafael1004)\
**Replies:** 6\
**Last updated:** [January 5, 2021, 10:55am UTC](https://discourse.processing.org/t/processing-shooting-star-3/26710 "2021-01-05T10:55:53Z")

</div>

Can someone help me and can explan me how to do something like this? Thanks :slight\_smile:

---

## [Portable version of Processing](https://discourse.processing.org/t/portable-version-of-processing/26775)

<div class="topic-metadata">

**Author:** [@Bird](https://discourse.processing.org/u/Bird)\
**Replies:** 2\
**Last updated:** [January 5, 2021, 2:22am UTC](https://discourse.processing.org/t/portable-version-of-processing/26775 "2021-01-05T02:22:00Z")

</div>

I would like to find a way to make Processing portable. I understand that you can run it from a USB, but this do not make it portable. Currently, it will write preferences to AppData (on Windows) and it will create a Pro…

---

## [In P5.js how to draw within the constraint of an image](https://discourse.processing.org/t/in-p5-js-how-to-draw-within-the-constraint-of-an-image/26759)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 3\
**Last updated:** [January 5, 2021, 1:11am UTC](https://discourse.processing.org/t/in-p5-js-how-to-draw-within-the-constraint-of-an-image/26759 "2021-01-05T01:11:48Z")

</div>

I intend to draw some dots within the constraint of the outline of an image. Currently I only know how to mask shape with another shape (using ( imgClone = img.get() ).mask( mask.get() )), or image with another image, bu…

---

## [Chrome 83 makes extreme changes to some HTML widgets in p5 sketch](https://discourse.processing.org/t/chrome-83-makes-extreme-changes-to-some-html-widgets-in-p5-sketch/21970)

<div class="topic-metadata">

**Author:** [@grege2](https://discourse.processing.org/u/grege2)\
**Replies:** 4\
**Last updated:** [January 4, 2021, 10:14pm UTC](https://discourse.processing.org/t/chrome-83-makes-extreme-changes-to-some-html-widgets-in-p5-sketch/21970 "2021-01-04T22:14:46Z")

</div>

Hi folks, I thought I’d post something I found out the other day. I uprevved my Mac Chrome browser from 81.xxx to 83.xxx and a lot of my HTML widgets in a p5.js sketch broke. Well, substantially changed their appearance…

---

## [Print to console not working?](https://discourse.processing.org/t/print-to-console-not-working/26772)

<div class="topic-metadata">

**Author:** [@Kris1](https://discourse.processing.org/u/Kris1)\
**Replies:** 3\
**Last updated:** [January 4, 2021, 6:30pm UTC](https://discourse.processing.org/t/print-to-console-not-working/26772 "2021-01-04T18:30:54Z")

</div>

Hi folks, I have a strange problem. The print to console does not seem to work on new sketches. I have printed to console many times, and it is not that I do not understand how to do it- it is that it does not work. I…

---

## [Issue with loading images in p5.js](https://discourse.processing.org/t/issue-with-loading-images-in-p5-js/14900)

<div class="topic-metadata">

**Author:** [@bjr29](https://discourse.processing.org/u/bjr29)\
**Replies:** 7\
**Last updated:** [January 4, 2021, 5:11pm UTC](https://discourse.processing.org/t/issue-with-loading-images-in-p5-js/14900 "2021-01-04T17:11:12Z")

</div>

I tried making a clock for my background with a background image using this code: let h; let m; let s; let bg; function preload() { bg = loadImage("Background/Wireframed Dark BG.png"); } function setup() { bg.loa…

---

## [Array of Images Error (loading of images)](https://discourse.processing.org/t/array-of-images-error-loading-of-images/26725)

<div class="topic-metadata">

**Author:** [@ELaN](https://discourse.processing.org/u/ELaN)\
**Replies:** 23\
**Last updated:** [January 4, 2021, 4:28pm UTC](https://discourse.processing.org/t/array-of-images-error-loading-of-images/26725 "2021-01-04T16:28:36Z")

</div>

Whenever I write this code: PImage\[\] flowers=new PImage\[3\]; Bubble\[\] bubbles=new Bubble\[5\]; void setup() { size(640, 360); for(int i=0; i\<flowers.length; i++){ flowers\[i\]=loadImage(“flower”+i+".jpg"); } for(int i…

---

## [Azure Kinect library for processing](https://discourse.processing.org/t/azure-kinect-library-for-processing/15420)

<div class="topic-metadata">

**Author:** [@tepat](https://discourse.processing.org/u/tepat)\
**Replies:** 5\
**Last updated:** [January 4, 2021, 3:49pm UTC](https://discourse.processing.org/t/azure-kinect-library-for-processing/15420 "2021-01-04T15:49:51Z")

</div>

Is there anyone already try to use kinect azure with processing ? How do you think is the best way ? because there is still no a good library like the kinectPV2 to use with :slight\_smile: do you think it’s possible…

---

## [Errors with saveTable() on Android](https://discourse.processing.org/t/errors-with-savetable-on-android/26546)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 33\
**Last updated:** [January 4, 2021, 2:06pm UTC](https://discourse.processing.org/t/errors-with-savetable-on-android/26546 "2021-01-04T14:06:45Z")

</div>

Hello, I’m making an android application with processing. It started as a Java game but then i ported it to Android. However, this game utilizes save data, and I used .csv files to save the game’s data. This worked fine …

---

## [I need your help please (image on/off)](https://discourse.processing.org/t/i-need-your-help-please-image-on-off/26755)

<div class="topic-metadata">

**Author:** [@PIlw](https://discourse.processing.org/u/PIlw)\
**Replies:** 3\
**Last updated:** [January 4, 2021, 12:40pm UTC](https://discourse.processing.org/t/i-need-your-help-please-image-on-off/26755 "2021-01-04T12:40:21Z")

</div>

Hello guys, I need help please, The thing would be, when I press a key an image appears and when I press it again it disappears. i’ve made it into my code and the image doesn’t shows up I put my code here and if someo…

---

## [How convert the Traveling Salesperson JS to Object-oriented Programming style Java Processing](https://discourse.processing.org/t/how-convert-the-traveling-salesperson-js-to-object-oriented-programming-style-java-processing/26691)

<div class="topic-metadata">

**Author:** [@psamead](https://discourse.processing.org/u/psamead)\
**Replies:** 9\
**Last updated:** [January 4, 2021, 11:47am UTC](https://discourse.processing.org/t/how-convert-the-traveling-salesperson-js-to-object-oriented-programming-style-java-processing/26691 "2021-01-04T11:47:56Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Dear friends, I am learning the Processing and trying to convert Daniel’s ‘Traveling Sales Person’ JavaScript to the Java Processing in the Obj…

---

## [I need your help please (image on / off)](https://discourse.processing.org/t/i-need-your-help-please-image-on-off/26741)

<div class="topic-metadata">

**Author:** [@PIlw](https://discourse.processing.org/u/PIlw)\
**Replies:** 3\
**Last updated:** [January 4, 2021, 11:41am UTC](https://discourse.processing.org/t/i-need-your-help-please-image-on-off/26741 "2021-01-04T11:41:05Z")

</div>

Hello guys, I would like to do something but I don’t know how : The thing would be, when I press a key an image appears and when I press it again it disappears. I know that it must be something whit keyPressed, but i …

---

## [Grayscaling a given image](https://discourse.processing.org/t/grayscaling-a-given-image/26768)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [January 4, 2021, 11:28am UTC](https://discourse.processing.org/t/grayscaling-a-given-image/26768 "2021-01-04T11:28:57Z")

</div>

PImage org = loadImage("data/99484011-ead8-482a-a169-820c7981896f.jpg"), gray = org; void settings() { size(org.width\*2,org.height); gray.filter(GRAY); } void draw() { image(org,0,0); filter(GRAY); image(gray…

---

## [Dynamic PVector arraylist drawing a smooth line](https://discourse.processing.org/t/dynamic-pvector-arraylist-drawing-a-smooth-line/26762)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 5\
**Last updated:** [January 4, 2021, 9:56am UTC](https://discourse.processing.org/t/dynamic-pvector-arraylist-drawing-a-smooth-line/26762 "2021-01-04T09:56:01Z")

</div>

Hallo. I have a sketch with 2 applets, the first is creating an Arraylist of Pvectors points for example when mouse Dragged adds points.add(new PVector(mouseX, mouseY));, and the second draws the line that passes the p…

---

## [Darken the background of my animation with mouse](https://discourse.processing.org/t/darken-the-background-of-my-animation-with-mouse/26749)

<div class="topic-metadata">

**Author:** [@elifworks](https://discourse.processing.org/u/elifworks)\
**Replies:** 6\
**Last updated:** [January 4, 2021, 9:30am UTC](https://discourse.processing.org/t/darken-the-background-of-my-animation-with-mouse/26749 "2021-01-04T09:30:08Z")

</div>

Hello there At the end of this work, which interacts with sound and visual, I want to add one more thing: darkening the background color with mouse movement as I pinch the sound effect. How can I do that? PImage img; …

---

## [Quick code question about Serial ports](https://discourse.processing.org/t/quick-code-question-about-serial-ports/26764)

<div class="topic-metadata">

**Author:** [@jimlee](https://discourse.processing.org/u/jimlee)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 8:55am UTC](https://discourse.processing.org/t/quick-code-question-about-serial-ports/26764 "2021-01-04T08:55:45Z")

</div>

I have a GDropList that I populate with the serial ports on my machine so I can select one. Here’s the code to set up the list… // Method to setup the port listing popup selctor thing. public void setupPortList(GDropLis…

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

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