# Latest

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

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

**Page:** 402

---

## [Draw elements in foreground vs background](https://discourse.processing.org/t/draw-elements-in-foreground-vs-background/17197)

<div class="topic-metadata">

**Author:** [@criacuervos](https://discourse.processing.org/u/criacuervos)\
**Replies:** 5\
**Last updated:** [January 21, 2020, 12:19am UTC](https://discourse.processing.org/t/draw-elements-in-foreground-vs-background/17197 "2020-01-21T00:19:18Z")

</div>

Hi all, I’m working with p5js on a shared drawing canvas where 2 people can collaborate on a drawing. I want to draw stars on the canvas that cannot be drawn over. I’m having trouble figuring out if this can be done. I …

---

## [Processing Network HTTP Request Help](https://discourse.processing.org/t/processing-network-http-request-help/17069)

<div class="topic-metadata">

**Author:** [@biran4454](https://discourse.processing.org/u/biran4454)\
**Replies:** 3\
**Last updated:** [January 20, 2020, 7:36pm UTC](https://discourse.processing.org/t/processing-network-http-request-help/17069 "2020-01-20T19:36:22Z")

</div>

Hello! I have been creating a program in Processing Java to get the HTML of a site with HTTP GET in the Networking Library. I followed the instructions in the Processing Network Tutorial, but it only shows how to get th…

---

## [Virtual keyboard problem](https://discourse.processing.org/t/virtual-keyboard-problem/17149)

<div class="topic-metadata">

**Author:** [@camperos](https://discourse.processing.org/u/camperos)\
**Replies:** 15\
**Last updated:** [January 20, 2020, 7:21pm UTC](https://discourse.processing.org/t/virtual-keyboard-problem/17149 "2020-01-20T19:21:21Z")

</div>

google translate… hi, I have a strange problem with entering characters with the virtual keyboard, when I use uppercase, before the desired character an unknown character is inserted, square with an X inside I tried e…

---

## [Gimbals, quaternions, and manual rotation](https://discourse.processing.org/t/gimbals-quaternions-and-manual-rotation/17065)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 22\
**Last updated:** [January 20, 2020, 6:19pm UTC](https://discourse.processing.org/t/gimbals-quaternions-and-manual-rotation/17065 "2020-01-20T18:19:24Z")

</div>

I want to sketch a gimbal. It will be similar to this: \<https://www.openprocessing.org/sketch/414889\> by @behreajj I have no problem with drawing the torus, nor (yet) with the spatial rotations. I want to manually rota…

---

## [Creating obstacles in an existing script](https://discourse.processing.org/t/creating-obstacles-in-an-existing-script/17190)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 4\
**Last updated:** [January 20, 2020, 5:30pm UTC](https://discourse.processing.org/t/creating-obstacles-in-an-existing-script/17190 "2020-01-20T17:30:24Z")

</div>

Hi, I am currently working on the following script studying the effects of ‘‘waves’’. I would like to add controls that could modify the waves’ behaviour. Two things I would like to do: Find a way to update the scree…

---

## [Receive msg - hamzeen smsP5](https://discourse.processing.org/t/receive-msg-hamzeen-smsp5/17209)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 0\
**Last updated:** [January 20, 2020, 4:53pm UTC](https://discourse.processing.org/t/receive-msg-hamzeen-smsp5/17209 "2020-01-20T16:53:24Z")

</div>

Hi, I would like to use the code to send sms from any phone to my code and randomly display the text on the screen. But I don’t know how to set the code (now it says Huawei, should I change line 20 to match a particular…

---

## [Optimising loadImage, fitting image ratio](https://discourse.processing.org/t/optimising-loadimage-fitting-image-ratio/17200)

<div class="topic-metadata">

**Author:** [@nikodemd](https://discourse.processing.org/u/nikodemd)\
**Replies:** 2\
**Last updated:** [January 20, 2020, 2:00pm UTC](https://discourse.processing.org/t/optimising-loadimage-fitting-image-ratio/17200 "2020-01-20T14:00:29Z")

</div>

Hi guys, new here! I am making this app where I load 2 images and 2 sliders, and each slider controls the level that the image blend with each other. Basically: image DAYLIGHT is a picture of a room only with light from…

---

## [PImage and img=null;](https://discourse.processing.org/t/pimage-and-img-null/17187)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 7\
**Last updated:** [January 20, 2020, 9:37am UTC](https://discourse.processing.org/t/pimage-and-img-null/17187 "2020-01-20T09:37:06Z")

</div>

I cobbled this together from something @Chrisir once wrote. I only have one small question. What, if anything, does img=null; do? It is at the end of the setup() block. PShape globe; PImage img; void setup() { size …

---

## [Try...catch (ConnectException e) seems to be missing](https://discourse.processing.org/t/try-catch-connectexception-e-seems-to-be-missing/16524)

<div class="topic-metadata">

**Author:** [@pacolux](https://discourse.processing.org/u/pacolux)\
**Replies:** 5\
**Last updated:** [January 20, 2020, 4:37am UTC](https://discourse.processing.org/t/try-catch-connectexception-e-seems-to-be-missing/16524 "2020-01-20T04:37:34Z")

</div>

import java.net.\*; XML xml; void setup() { try{ xml = loadXML("http://192.168.24.50/tmp/latestsampledata\_u.xml"); } catch (ConnectException e) {println("a bad thing happened");} } Using this abov…

---

## [Need help for a simple game](https://discourse.processing.org/t/need-help-for-a-simple-game/17128)

<div class="topic-metadata">

**Author:** [@floflopm](https://discourse.processing.org/u/floflopm)\
**Replies:** 6\
**Last updated:** [January 19, 2020, 8:37pm UTC](https://discourse.processing.org/t/need-help-for-a-simple-game/17128 "2020-01-19T20:37:42Z")

</div>

Hi, I am an architecture student and I need to develop a simple game for a project, but I never coded. Here is what I need to do (in Java): -I want three shapes of different color blue-yellow-red to move in the screen …

---

## [Change python version in python mode](https://discourse.processing.org/t/change-python-version-in-python-mode/17181)

<div class="topic-metadata">

**Author:** [@CodingIsLife](https://discourse.processing.org/u/CodingIsLife)\
**Replies:** 1\
**Last updated:** [January 19, 2020, 8:23pm UTC](https://discourse.processing.org/t/change-python-version-in-python-mode/17181 "2020-01-19T20:23:29Z")

</div>

I want to use python3.6 in the python mode if it is possible. Currently the version info is 2.7.1. My processing version is 3.5.3. Any suggestion on how to make the upgrade? Thanks in advance. I am using Ubuntu 18.04 …

---

## [Arrays with vectors](https://discourse.processing.org/t/arrays-with-vectors/17179)

<div class="topic-metadata">

**Author:** [@asherzelig](https://discourse.processing.org/u/asherzelig)\
**Replies:** 3\
**Last updated:** [January 19, 2020, 5:33pm UTC](https://discourse.processing.org/t/arrays-with-vectors/17179 "2020-01-19T17:33:52Z")

</div>

Is it possible to make an array of vectors? I tried; PVector \[ \] vtest = new PVector \[20\]; It lets me write it but gives me null messages when I execute.

---

## [Translate mistake in the console](https://discourse.processing.org/t/translate-mistake-in-the-console/17171)

<div class="topic-metadata">

**Author:** [@Alrox](https://discourse.processing.org/u/Alrox)\
**Replies:** 3\
**Last updated:** [January 19, 2020, 3:28pm UTC](https://discourse.processing.org/t/translate-mistake-in-the-console/17171 "2020-01-19T15:28:05Z")

</div>

Dear friends, I’m working on a code for my college and I’ve made a game with processing. Unfortunately there is a mistake in the console: “translate(), or this particular variation of it, is not available with this rende…

---

## [Automatic type conversion?](https://discourse.processing.org/t/automatic-type-conversion/17175)

<div class="topic-metadata">

**Author:** [@beckerc](https://discourse.processing.org/u/beckerc)\
**Replies:** 9\
**Last updated:** [January 19, 2020, 5:17am UTC](https://discourse.processing.org/t/automatic-type-conversion/17175 "2020-01-19T05:17:17Z")

</div>

The parameters for ellipse() are all of type float (https://processing.org/reference/ellipse\_.html). Why does this work when I pass in all ints? Is there type conversion happening in the background? I have been using the…

---

## [Distorted sound when loading multiple MP3s](https://discourse.processing.org/t/distorted-sound-when-loading-multiple-mp3s/17178)

<div class="topic-metadata">

**Author:** [@twin\_tone](https://discourse.processing.org/u/twin_tone)\
**Replies:** 4\
**Last updated:** [January 19, 2020, 3:05am UTC](https://discourse.processing.org/t/distorted-sound-when-loading-multiple-mp3s/17178 "2020-01-19T03:05:31Z")

</div>

Hi all, I’m trying to make an interface that crossfades between audio files depending on mouse position. The thing is, the sound is sounding terrible - like it’s being time stretched or something. Any ideas why this mig…

---

## [I am having trouble with assigning a key press to a image and boolean variable](https://discourse.processing.org/t/i-am-having-trouble-with-assigning-a-key-press-to-a-image-and-boolean-variable/17144)

<div class="topic-metadata">

**Author:** [@NinjaKittens](https://discourse.processing.org/u/NinjaKittens)\
**Replies:** 13\
**Last updated:** [January 19, 2020, 12:33am UTC](https://discourse.processing.org/t/i-am-having-trouble-with-assigning-a-key-press-to-a-image-and-boolean-variable/17144 "2020-01-19T00:33:48Z")

</div>

This is what I came up with on the spot. void keyReleased() { if (keyPressed && ((key == 'a' || key == 'A')) { flagC1 =true } } void draw() { if (keyPressed) { if (key == 'a' || key == 'A') { background(255…

---

## [Is there a way to recognize Microsoft Chinese Input in Processing?](https://discourse.processing.org/t/is-there-a-way-to-recognize-microsoft-chinese-input-in-processing/17166)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 0\
**Last updated:** [January 18, 2020, 9:39pm UTC](https://discourse.processing.org/t/is-there-a-way-to-recognize-microsoft-chinese-input-in-processing/17166 "2020-01-18T21:39:53Z")

</div>

Is there a way to recognize Microsoft IME input?

---

## [Trails with background Transparency](https://discourse.processing.org/t/trails-with-background-transparency/17139)

<div class="topic-metadata">

**Author:** [@Skranker](https://discourse.processing.org/u/Skranker)\
**Replies:** 2\
**Last updated:** [January 18, 2020, 12:22pm UTC](https://discourse.processing.org/t/trails-with-background-transparency/17139 "2020-01-18T12:22:17Z")

</div>

Hey everyone, i’m using background(0, 10); to get a trail effect, but i get these weird permanent trails that dont go away. Usually the screen should be black again if the background has been drawn enough times. Not s…

---

## [Is there a way to do this progressively?](https://discourse.processing.org/t/is-there-a-way-to-do-this-progressively/17099)

<div class="topic-metadata">

**Author:** [@moitapjoao](https://discourse.processing.org/u/moitapjoao)\
**Replies:** 9\
**Last updated:** [January 18, 2020, 11:02am UTC](https://discourse.processing.org/t/is-there-a-way-to-do-this-progressively/17099 "2020-01-18T11:02:00Z")

</div>

Hello, I need to make a mathematical flower as shown in this Coding Train video (https://www.youtube.com/watch?v=f5QBExMNB1I&t=6s) but I’d like it to appear progressively, as starting in the middle and drawing out the t…

---

## [Create Login using Processing](https://discourse.processing.org/t/create-login-using-processing/17151)

<div class="topic-metadata">

**Author:** [@Grad](https://discourse.processing.org/u/Grad)\
**Replies:** 3\
**Last updated:** [January 18, 2020, 9:05am UTC](https://discourse.processing.org/t/create-login-using-processing/17151 "2020-01-18T09:05:20Z")

</div>

Hi, I’m new using processing and I want to create a login can you please give me something like ideas to start with?. I advance thank you for any help that you may give.

---

## [Integrate Processing with any Text Editor](https://discourse.processing.org/t/integrate-processing-with-any-text-editor/14792)

<div class="topic-metadata">

**Author:** [@tinku.kvs](https://discourse.processing.org/u/tinku.kvs)\
**Replies:** 5\
**Last updated:** [January 18, 2020, 3:15am UTC](https://discourse.processing.org/t/integrate-processing-with-any-text-editor/14792 "2020-01-18T03:15:43Z")

</div>

If you are like me, you want to write processing sketches from your favourite text editor. But it can be quite a pain, at least it was for me. I have googled all the way reading here and there about a solution. I found a…

---

## [Making a for loop with timer](https://discourse.processing.org/t/making-a-for-loop-with-timer/17085)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 1\
**Last updated:** [January 14, 2020, 6:06pm UTC](https://discourse.processing.org/t/making-a-for-loop-with-timer/17085 "2020-01-14T18:06:16Z")

</div>

int delay = 2000; void setup() { size(200, 200); time = millis(); fill(#989696); stroke(#747373); rectMode(CENTER); rect(width - 70, 35, 120, 40); } void draw() { for (int i = width - 130; i \< width - 10;…

---

## [Trying to get object to collide with player](https://discourse.processing.org/t/trying-to-get-object-to-collide-with-player/17142)

<div class="topic-metadata">

**Author:** [@Banana132](https://discourse.processing.org/u/Banana132)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 6:19pm UTC](https://discourse.processing.org/t/trying-to-get-object-to-collide-with-player/17142 "2020-01-17T18:19:47Z")

</div>

Hi there, hoping someone is able to help with this issue I have, I am making a very basic game for an assignment and I am struggling to get an object to collide with the player to end the game. I have use the same collis…

---

## [ProcessingMiniVJ](https://discourse.processing.org/t/processingminivj/17143)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 0\
**Last updated:** [January 17, 2020, 4:49pm UTC](https://discourse.processing.org/t/processingminivj/17143 "2020-01-17T16:49:35Z")

</div>

Hi! I made this small program for a friend: Nothing fancy, but maybe someone wants to check it out. The bottom LOAD is for loading an image. The other two LOAD buttons are for loading videos (I should add error ch…

---

## [Time class, carry, don't understand how it works exactly](https://discourse.processing.org/t/time-class-carry-dont-understand-how-it-works-exactly/17098)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 12:52pm UTC](https://discourse.processing.org/t/time-class-carry-dont-understand-how-it-works-exactly/17098 "2020-01-17T12:52:26Z")

</div>

I need help understanding how the pre() function in this Time class works. Edit: I think maybe I have it, does this seem sound? So far it seems to be working. The thing I don’t like about this is that I made it work by…

---

## [RPi4 python or C plug in](https://discourse.processing.org/t/rpi4-python-or-c-plug-in/17131)

<div class="topic-metadata">

**Author:** [@jbirdlebough](https://discourse.processing.org/u/jbirdlebough)\
**Replies:** 3\
**Last updated:** [January 17, 2020, 9:46am UTC](https://discourse.processing.org/t/rpi4-python-or-c-plug-in/17131 "2020-01-17T09:46:10Z")

</div>

Just setup tonight. added modes i could find, have lot of C/C++ and python code was looking to find mode so we can reuse our existing code bodies. I am working with RPI4 USB to Arduino/DUE building a LDMOS amp control…

---

## [Audio visualising](https://discourse.processing.org/t/audio-visualising/17120)

<div class="topic-metadata">

**Author:** [@Alxryn](https://discourse.processing.org/u/Alxryn)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 5:54pm UTC](https://discourse.processing.org/t/audio-visualising/17120 "2020-01-16T17:54:25Z")

</div>

Hello people, Im fairly new to processing and Im hoping someone could help me with the next step of my project. Im trying to make an audio visualisation of the frequency range of a song, Im trying to make something that…

---

## [Query regarding to start contribution](https://discourse.processing.org/t/query-regarding-to-start-contribution/17094)

<div class="topic-metadata">

**Author:** [@SimranAggarwal](https://discourse.processing.org/u/SimranAggarwal)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 7:46am UTC](https://discourse.processing.org/t/query-regarding-to-start-contribution/17094 "2020-01-17T07:46:49Z")

</div>

Hey! I am new to open source and want to contribute to processing foundation. Please guide me where to start from. Also please guide me which repository to start from. I would like to work upon Javascript.

---

## [I have trouble with to get a simple class to work](https://discourse.processing.org/t/i-have-trouble-with-to-get-a-simple-class-to-work/17079)

<div class="topic-metadata">

**Author:** [@EvilDuck](https://discourse.processing.org/u/EvilDuck)\
**Replies:** 2\
**Last updated:** [January 14, 2020, 10:13am UTC](https://discourse.processing.org/t/i-have-trouble-with-to-get-a-simple-class-to-work/17079 "2020-01-14T10:13:47Z")

</div>

I want to learn Python, but I simply can’t get this to work. its really strange … I have two small code snippets posted here, when they reside in the same tab it works!. But if I put the class into its own tab I get a N…

---

## [selectInput() exception recovery](https://discourse.processing.org/t/selectinput-exception-recovery/17044)

<div class="topic-metadata">

**Author:** [@harrih](https://discourse.processing.org/u/harrih)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 6:38am UTC](https://discourse.processing.org/t/selectinput-exception-recovery/17044 "2020-01-17T06:38:29Z")

</div>

Hi All, Am just learning Processing Not Java literate I am experimenting with selectInput() for loading files, All is good, as i can select a file load it etc. However if instead of selecting the file by mouse poi…

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

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