# Latest

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

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

**Page:** 579

---

## [RasterFormatException: (y + height) is outside raster](https://discourse.processing.org/t/rasterformatexception-y-height-is-outside-raster/3953)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 6\
**Last updated:** [October 4, 2018, 12:04pm UTC](https://discourse.processing.org/t/rasterformatexception-y-height-is-outside-raster/3953 "2018-10-04T12:04:38Z")

</div>

This program crashes with RasterFormatException: (y + height) is outside raster void setup() { size(900, 900); blendMode(LIGHTEST); line(20, 0, 20, 900); } Anyone else seeing this behavior? Removing blendMode or …

---

## [Updating an array list with new items only](https://discourse.processing.org/t/updating-an-array-list-with-new-items-only/4047)

<div class="topic-metadata">

**Author:** [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Replies:** 3\
**Last updated:** [October 4, 2018, 9:55am UTC](https://discourse.processing.org/t/updating-an-array-list-with-new-items-only/4047 "2018-10-04T09:55:16Z")

</div>

could anyone please advise me on the best way to update an array list by adding only the new items(items which are not on the list already) which appear on another list? the problem i am having is that the order in which…

---

## [Function restricted variables](https://discourse.processing.org/t/function-restricted-variables/4104)

<div class="topic-metadata">

**Author:** [@blosh](https://discourse.processing.org/u/blosh)\
**Replies:** 3\
**Last updated:** [October 4, 2018, 6:08am UTC](https://discourse.processing.org/t/function-restricted-variables/4104 "2018-10-04T06:08:15Z")

</div>

I want some variables to only exist in a certain function as I need very similar variables across multiple functions. However, I don’t want them to be reset every single time. The only other solution I can think of is to…

---

## [Wall monitor for SVG collage project](https://discourse.processing.org/t/wall-monitor-for-svg-collage-project/4062)

<div class="topic-metadata">

**Author:** [@Turnbuckle2](https://discourse.processing.org/u/Turnbuckle2)\
**Replies:** 6\
**Last updated:** [October 4, 2018, 5:43am UTC](https://discourse.processing.org/t/wall-monitor-for-svg-collage-project/4062 "2018-10-04T05:43:56Z")

</div>

---

## [Using void in PGraphics](https://discourse.processing.org/t/using-void-in-pgraphics/4045)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 4\
**Last updated:** [October 4, 2018, 4:44am UTC](https://discourse.processing.org/t/using-void-in-pgraphics/4045 "2018-10-04T04:44:33Z")

</div>

Hello, I have this section of code here void myArc(float cx, float cy) { float r = size / 2; float yOffset = (4\*r) / (3\*PI); circles.beginDraw(); circles.pushMatrix(); circles.translate(cx, cy - yOffset);…

---

## [Simultaneous keys press at the same time?](https://discourse.processing.org/t/simultaneous-keys-press-at-the-same-time/4105)

<div class="topic-metadata">

**Author:** [@zng](https://discourse.processing.org/u/zng)\
**Replies:** 6\
**Last updated:** [October 4, 2018, 3:31am UTC](https://discourse.processing.org/t/simultaneous-keys-press-at-the-same-time/4105 "2018-10-04T03:31:48Z")

</div>

Hi, I am actually pretty new to the concept of programming so forgive me if I sound kinda dumb. I am trying to make a game using p5 and the p5 dom where there is 6 image randomiser(think slot machine) and each image is …

---

## [Help optimizing a p5.js type generator](https://discourse.processing.org/t/help-optimizing-a-p5-js-type-generator/3941)

<div class="topic-metadata">

**Author:** [@kiel.d.m](https://discourse.processing.org/u/kiel.d.m)\
**Replies:** 5\
**Last updated:** [October 3, 2018, 11:55pm UTC](https://discourse.processing.org/t/help-optimizing-a-p5-js-type-generator/3941 "2018-10-03T23:55:49Z")

</div>

I’m trying to translate a project I made in Processing (here) into a browser environment with P5.js. It works smoothly until additional rings are added (, after which it really starts to slow down. Here’s the initial, st…

---

## [\[SOLVED\] Getting lines to rotate from their centre](https://discourse.processing.org/t/solved-getting-lines-to-rotate-from-their-centre/4063)

<div class="topic-metadata">

**Author:** [@ianmarquette](https://discourse.processing.org/u/ianmarquette)\
**Replies:** 3\
**Last updated:** [October 3, 2018, 11:49pm UTC](https://discourse.processing.org/t/solved-getting-lines-to-rotate-from-their-centre/4063 "2018-10-03T23:49:43Z")

</div>

I’m trying to create some works by Vera Molnar in Processing to get a better understanding of how to use it. This is the piece I am trying to recreate: The part I am struggling with is getting the lines to all rotate…

---

## [Help needed, bounce, clickable area](https://discourse.processing.org/t/help-needed-bounce-clickable-area/4011)

<div class="topic-metadata">

**Author:** [@SolDrakibane](https://discourse.processing.org/u/SolDrakibane)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 11:36pm UTC](https://discourse.processing.org/t/help-needed-bounce-clickable-area/4011 "2018-10-03T23:36:17Z")

</div>

Alright i have two issues at hand with the code below. Bounces Bouncing the bullseye works with the code below in the horizontal X. When i change that to Y it also works. How can i make X and Y work by making it bou…

---

## [\[RESOLVED\] Constructor Error](https://discourse.processing.org/t/resolved-constructor-error/4098)

<div class="topic-metadata">

**Author:** [@Interalia](https://discourse.processing.org/u/Interalia)\
**Replies:** 2\
**Last updated:** [October 3, 2018, 11:02pm UTC](https://discourse.processing.org/t/resolved-constructor-error/4098 "2018-10-03T23:02:06Z")

</div>

The Constructor Meter(Meter, int,int) is undefined. import meter.\*; Meter m; void setup(){ size(500,400); background(0,0,0); //lets add a default meter m = new Meter(this,25,10);// here 25,10 are x,y coord…

---

## [How to get balls to bounce off each other in p5.js?](https://discourse.processing.org/t/how-to-get-balls-to-bounce-off-each-other-in-p5-js/4082)

<div class="topic-metadata">

**Author:** [@BLy](https://discourse.processing.org/u/BLy)\
**Replies:** 2\
**Last updated:** [October 3, 2018, 7:29pm UTC](https://discourse.processing.org/t/how-to-get-balls-to-bounce-off-each-other-in-p5-js/4082 "2018-10-03T19:29:46Z")

</div>

I’m having trouble getting these balls to bounce off one another; they keep getting stuck in certain parts as well. If someone could please help me with the code, it would be much appreciated! I am relatively new to usin…

---

## [Question about changing color over time](https://discourse.processing.org/t/question-about-changing-color-over-time/4093)

<div class="topic-metadata">

**Author:** [@vincentn20](https://discourse.processing.org/u/vincentn20)\
**Replies:** 1\
**Last updated:** [October 3, 2018, 6:27pm UTC](https://discourse.processing.org/t/question-about-changing-color-over-time/4093 "2018-10-03T18:27:43Z")

</div>

Here is my code int colR = 67; int colG = 91; int colB = 155; void setup() { size(1000, 800); frameRate(30); background(colR,colG,colB); delay(500); } void changeNight() { if(mousePressed) { for(int i = 1…

---

## [3d model in .obj format not appearing in my sketch](https://discourse.processing.org/t/3d-model-in-obj-format-not-appearing-in-my-sketch/4090)

<div class="topic-metadata">

**Author:** [@Jpupper](https://discourse.processing.org/u/Jpupper)\
**Replies:** 1\
**Last updated:** [October 3, 2018, 4:35pm UTC](https://discourse.processing.org/t/3d-model-in-obj-format-not-appearing-in-my-sketch/4090 "2018-10-03T16:35:35Z")

</div>

So, i´ve been trying to use a 3d model that i´ve downloaded from here : https://www.turbosquid.com/3d-models/brain-max-free/833681 Im using the standart code from LoadDisplayOBJ wich does shows up the rocket in the exam…

---

## [Question About correcting my code Pulses](https://discourse.processing.org/t/question-about-correcting-my-code-pulses/4034)

<div class="topic-metadata">

**Author:** [@gisue](https://discourse.processing.org/u/gisue)\
**Replies:** 5\
**Last updated:** [October 3, 2018, 10:25am UTC](https://discourse.processing.org/t/question-about-correcting-my-code-pulses/4034 "2018-10-03T10:25:30Z")

</div>

Hi all, I am a beginner in processing. could you please help me to correct the code. the question is: write the reverse motion of the previous example (using Processing array function is not allowed) And the below c…

---

## [Moving points into different directions](https://discourse.processing.org/t/moving-points-into-different-directions/4041)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 3:53pm UTC](https://discourse.processing.org/t/moving-points-into-different-directions/4041 "2018-10-03T15:53:46Z")

</div>

Good morning I’m trying to move a point from one coordinate to another one. Image it’s like this The code I have used for the left line of points is the following int ball\_radius; float ball\_y; float ball\_y0; float…

---

## [Create a grid out of rectangles](https://discourse.processing.org/t/create-a-grid-out-of-rectangles/4084)

<div class="topic-metadata">

**Author:** [@Jrekz](https://discourse.processing.org/u/Jrekz)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 3:52pm UTC](https://discourse.processing.org/t/create-a-grid-out-of-rectangles/4084 "2018-10-03T15:52:38Z")

</div>

Hi, I want to draw rectangles (size=50) in a grid of 7 columns and 6 rows. With a sketch border offset of 15 pixels and 5 pixels between each rectangle. This is how it should look like: . When I try add the space some…

---

## [Rotating an object on command](https://discourse.processing.org/t/rotating-an-object-on-command/3896)

<div class="topic-metadata">

**Author:** [@ToivoUkkonen](https://discourse.processing.org/u/ToivoUkkonen)\
**Replies:** 3\
**Last updated:** [October 3, 2018, 3:24pm UTC](https://discourse.processing.org/t/rotating-an-object-on-command/3896 "2018-10-03T15:24:38Z")

</div>

Hello, in school we are currently learning coding and for a while i’ve been trying to get an object to rotate, when I press certain keys. Here is the code I am working with as of right now: int X; int Y; int SIVU; int S…

---

## [Unable to shorten strings](https://discourse.processing.org/t/unable-to-shorten-strings/4046)

<div class="topic-metadata">

**Author:** [@desk](https://discourse.processing.org/u/desk)\
**Replies:** 9\
**Last updated:** [October 3, 2018, 6:18am UTC](https://discourse.processing.org/t/unable-to-shorten-strings/4046 "2018-10-03T06:18:08Z")

</div>

This seems like a simple problem… but it has been driving me nuts! var bob = ''; function setup() { } function draw() { } function keyTyped() { bob += key; print(bob); } function keyPressed() { if(keyCode ==…

---

## [Processing Community Day @ Baltimore](https://discourse.processing.org/t/processing-community-day-baltimore/4085)

<div class="topic-metadata">

**Author:** [@abbernie](https://discourse.processing.org/u/abbernie)\
**Replies:** 0\
**Last updated:** [October 3, 2018, 1:14pm UTC](https://discourse.processing.org/t/processing-community-day-baltimore/4085 "2018-10-03T13:14:06Z")

</div>

Hello World! I am organizing a Processing Community Day event for the Baltimore area at Goucher College. I plan to have some beginner-friendly workshops and welcome the local community of artists, designers, and creati…

---

## [Exported app doesn't work](https://discourse.processing.org/t/exported-app-doesnt-work/4076)

<div class="topic-metadata">

**Author:** [@leereset](https://discourse.processing.org/u/leereset)\
**Replies:** 2\
**Last updated:** [October 3, 2018, 11:57am UTC](https://discourse.processing.org/t/exported-app-doesnt-work/4076 "2018-10-03T11:57:17Z")

</div>

Hi I’m struggle with exporting issue. It works fine when .pde file. but If I run exported .exe file it doesn’t work… how can I solve this problem?,

---

## [JPL doesn't work on Processing](https://discourse.processing.org/t/jpl-doesnt-work-on-processing/3973)

<div class="topic-metadata">

**Author:** [@Staraven1](https://discourse.processing.org/u/Staraven1)\
**Replies:** 5\
**Last updated:** [October 3, 2018, 3:15am UTC](https://discourse.processing.org/t/jpl-doesnt-work-on-processing/3973 "2018-10-03T03:15:37Z")

</div>

I can’t figure out why but JPL (library to use Prolog in Java) doesn’t work on Processing. the link I used to download the library : www.java2s.com/Code/Jar/j/Downloadjpljar.htm and my code is : import jpl.fli.\*; imp…

---

## [Tweak mode unsafe](https://discourse.processing.org/t/tweak-mode-unsafe/3993)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 4\
**Last updated:** [October 3, 2018, 2:18am UTC](https://discourse.processing.org/t/tweak-mode-unsafe/3993 "2018-10-03T02:18:26Z")

</div>

In the last hour of a gamejam, I decided to use tweak mode to touch up some things. I had a switch() and tweak mode doesn’t like switch. This has happened a few times before, but this was the first time I didn’t have a…

---

## [Processing 3.4 UnsatisfiedLinkError when trying Visualiser example Pycom](https://discourse.processing.org/t/processing-3-4-unsatisfiedlinkerror-when-trying-visualiser-example-pycom/4013)

<div class="topic-metadata">

**Author:** [@MinaDarsh](https://discourse.processing.org/u/MinaDarsh)\
**Replies:** 1\
**Last updated:** [October 3, 2018, 2:07am UTC](https://discourse.processing.org/t/processing-3-4-unsatisfiedlinkerror-when-trying-visualiser-example-pycom/4013 "2018-10-03T02:07:22Z")

</div>

Hello, for learning how to use the Pycom PyTrack, I’m following this tutorial from Core-Electronics. Sadly, when getting to the visualiser example that Pycom also uses on their site, I run into a pretty big error that I …

---

## [Shooting bullets class -- bullets disappearing](https://discourse.processing.org/t/shooting-bullets-class-bullets-disappearing/4028)

<div class="topic-metadata">

**Author:** [@Marcus152](https://discourse.processing.org/u/Marcus152)\
**Replies:** 2\
**Last updated:** [October 3, 2018, 1:42am UTC](https://discourse.processing.org/t/shooting-bullets-class-bullets-disappearing/4028 "2018-10-03T01:42:11Z")

</div>

Hey guys, i’m trying to make a game where bullets shoot in the direction of my mouse. I found some code online, and it worked for the most part; except for one thing. The original code that I found used a 600x600 window …

---

## [\[SOLVED\] Fullscreen sketch scaling and preformance](https://discourse.processing.org/t/solved-fullscreen-sketch-scaling-and-preformance/3916)

<div class="topic-metadata">

**Author:** [@ScottGrogin](https://discourse.processing.org/u/ScottGrogin)\
**Replies:** 11\
**Last updated:** [October 2, 2018, 11:51pm UTC](https://discourse.processing.org/t/solved-fullscreen-sketch-scaling-and-preformance/3916 "2018-10-02T23:51:58Z")

</div>

I want to have my sketch resolution be the same across different screen sizes. I have tried using PGraphics with image() but the performance suffers and my sketches frame rate drops. Am I using PGraphics and image() inco…

---

## [Appending to arrays of arrays](https://discourse.processing.org/t/appending-to-arrays-of-arrays/3945)

<div class="topic-metadata">

**Author:** [@ducco](https://discourse.processing.org/u/ducco)\
**Replies:** 8\
**Last updated:** [October 2, 2018, 11:40pm UTC](https://discourse.processing.org/t/appending-to-arrays-of-arrays/3945 "2018-10-02T23:40:51Z")

</div>

i’m working on an art program and i’m trying to save the coordinates of the vectors in arrays one level in (for using layers) and i cant seem to get the append to work correctly. can someone help me? i made some example…

---

## [G4P Update Slider Dynamically?](https://discourse.processing.org/t/g4p-update-slider-dynamically/4049)

<div class="topic-metadata">

**Author:** [@DroneAdventures](https://discourse.processing.org/u/DroneAdventures)\
**Replies:** 5\
**Last updated:** [October 2, 2018, 5:44pm UTC](https://discourse.processing.org/t/g4p-update-slider-dynamically/4049 "2018-10-02T17:44:23Z")

</div>

First, let me say I love G4P. It saves me a lot of work. Using Processing 3 & G4P GUI Builder I have 3 GSliders. Lets call them LEFT Motor, RIGHT Motor and DUAL. All 3 sliders work as expected and no issues. What I …

---

## [Processing export for iOS](https://discourse.processing.org/t/processing-export-for-ios/4044)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 6\
**Last updated:** [October 2, 2018, 5:42pm UTC](https://discourse.processing.org/t/processing-export-for-ios/4044 "2018-10-02T17:42:25Z")

</div>

Is it possible to export to iOS applications or .apk for android? I am developing a project that has a lot of potential to be inside an iPad or a conventional tablet. Or some way to compile this in other framework. Be…

---

## [Open new windows with Processing](https://discourse.processing.org/t/open-new-windows-with-processing/4050)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 4\
**Last updated:** [October 2, 2018, 5:40pm UTC](https://discourse.processing.org/t/open-new-windows-with-processing/4050 "2018-10-02T17:40:14Z")

</div>

Hello all Is there a way to open new windows with processing? like another window of size(x,z). Maybe by a button or something. I would like to ask if there is some library that I can use that do that without coding f…

---

## [Processing Community Day @ Madrid - 2019](https://discourse.processing.org/t/processing-community-day-madrid-2019/4043)

<div class="topic-metadata">

**Author:** [@alfredoc](https://discourse.processing.org/u/alfredoc)\
**Replies:** 0\
**Last updated:** [October 2, 2018, 11:30am UTC](https://discourse.processing.org/t/processing-community-day-madrid-2019/4043 "2018-10-02T11:30:26Z")

</div>

reunión organización PCD@Madrid el pasado 23 de septiembre nos hemos reunido en el parque del Casino de la Reina para iniciar a organizar: PCD@Madrid. (entre el 15 de enero y el 15 de febrero 2019) Hemos acordado celeb…

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

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