# Processing

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

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

**Page:** 362

---

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

---

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

---

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

---

## [Switching from a circle to a square](https://discourse.processing.org/t/switching-from-a-circle-to-a-square/4038)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 11:12am UTC](https://discourse.processing.org/t/switching-from-a-circle-to-a-square/4038 "2018-10-02T11:12:34Z")

</div>

Hello, I cannot seem to figure out how to switch from a circle to a square by pressing a key. I have been able to do it, but when trying to switch the color or size it resets back (either to a circle or just disappears)…

---

## [Drawing a triangle and arc](https://discourse.processing.org/t/drawing-a-triangle-and-arc/3929)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 6\
**Last updated:** [October 2, 2018, 7:30am UTC](https://discourse.processing.org/t/drawing-a-triangle-and-arc/3929 "2018-10-02T07:30:11Z")

</div>

How would you draw a triangle and arc so that the center of the shape is where your mouse is? (using mouseX and mouseY) and how would you change the size of the triangle and arc?

---

## [Add another shape with each mouse click! Help!](https://discourse.processing.org/t/add-another-shape-with-each-mouse-click-help/4033)

<div class="topic-metadata">

**Author:** [@madiMcD](https://discourse.processing.org/u/madiMcD)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 5:57am UTC](https://discourse.processing.org/t/add-another-shape-with-each-mouse-click-help/4033 "2018-10-02T05:57:21Z")

</div>

Hi! I am just starting out with coding and I have to create a simple program in code that accomplishes the following guidelines: “Count the number of mouse presses in the canvas and use that to change the number of sh…

---

## [Vector moves along the path](https://discourse.processing.org/t/vector-moves-along-the-path/3985)

<div class="topic-metadata">

**Author:** [@kokoo](https://discourse.processing.org/u/kokoo)\
**Replies:** 3\
**Last updated:** [October 1, 2018, 8:17pm UTC](https://discourse.processing.org/t/vector-moves-along-the-path/3985 "2018-10-01T20:17:56Z")

</div>

Can you suggest how to make PVector move along a continuous path (for example tracing number ‘8’). Do i need 2 vectors to do it?

---

## [Pixel pattern generator](https://discourse.processing.org/t/pixel-pattern-generator/3704)

<div class="topic-metadata">

**Author:** [@kulu](https://discourse.processing.org/u/kulu)\
**Replies:** 10\
**Last updated:** [October 1, 2018, 1:15pm UTC](https://discourse.processing.org/t/pixel-pattern-generator/3704 "2018-10-01T13:15:06Z")

</div>

I was wondering what could be a good approach to generate geometric random pixel patterns as the ones in the image below… Thanks :slight\_smile:

---

## [Colors from webcam problem](https://discourse.processing.org/t/colors-from-webcam-problem/3925)

<div class="topic-metadata">

**Author:** [@RC75018](https://discourse.processing.org/u/RC75018)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 8:40am UTC](https://discourse.processing.org/t/colors-from-webcam-problem/3925 "2018-10-01T08:40:36Z")

</div>

Hi Everyone, I am trying to create a algorithm that create rising bubbles colored by pixels from video capture via webcam (on Mac). I have succeeded in create floating bubbles and then when i try to add the colorization…

---

## [PDF Export with BLUR](https://discourse.processing.org/t/pdf-export-with-blur/3974)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 6:29am UTC](https://discourse.processing.org/t/pdf-export-with-blur/3974 "2018-10-01T06:29:57Z")

</div>

Hi, I made a simple sketch and I want to export PDF File, but when the pdf is out is blurred.If I open the file in illustrator there is un full resolution, but if I use the pdf for a print is already blurred. import …

---

## [If Else Not Working Properly - Doesn't Work](https://discourse.processing.org/t/if-else-not-working-properly-doesnt-work/3995)

<div class="topic-metadata">

**Author:** [@clevelandbrowns](https://discourse.processing.org/u/clevelandbrowns)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 6:01am UTC](https://discourse.processing.org/t/if-else-not-working-properly-doesnt-work/3995 "2018-10-01T06:01:28Z")

</div>

I’m a complete novice with Processing. I took lessons in Java and C++ years ago and am just now getting back into things so I figured I’d check this out. I have this code and it seems defective. When I press B, it works…

---

## [How can you load a PNG texture to an OBJ?](https://discourse.processing.org/t/how-can-you-load-a-png-texture-to-an-obj/3964)

<div class="topic-metadata">

**Author:** [@Mandelbrot](https://discourse.processing.org/u/Mandelbrot)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 6:17am UTC](https://discourse.processing.org/t/how-can-you-load-a-png-texture-to-an-obj/3964 "2018-10-01T06:17:49Z")

</div>

My program is so far very simple. It loads an OBJ with phaser = loadShape(“PhaserTypeII.obj”);, then it displays it: shape(phaser, 0, 0) in setup and draw functions respectively. That worked, and the model shows up. I ha…

---

## [Trying to Draw on Sphere](https://discourse.processing.org/t/trying-to-draw-on-sphere/4000)

<div class="topic-metadata">

**Author:** [@CAUP](https://discourse.processing.org/u/CAUP)\
**Replies:** 9\
**Last updated:** [October 1, 2018, 5:30am UTC](https://discourse.processing.org/t/trying-to-draw-on-sphere/4000 "2018-10-01T05:30:23Z")

</div>

Hey! I’m new here. I’m trying to draw on a sphere. I have basically no idea how. The sphere rotates when you move the mouse. I want you to be able to draw on the sphere when you hold down the mouse. The sphere stops mov…

---

## [Help getting all videos in random sequence to fully play](https://discourse.processing.org/t/help-getting-all-videos-in-random-sequence-to-fully-play/3991)

<div class="topic-metadata">

**Author:** [@llsavage320](https://discourse.processing.org/u/llsavage320)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 5:14am UTC](https://discourse.processing.org/t/help-getting-all-videos-in-random-sequence-to-fully-play/3991 "2018-10-01T05:14:00Z")

</div>

Hi! I am trying to use Processing to make a random video generator, so that every time the program runs, a random video is picked from three different arrays (sort of like a random Choose Your Own Adventure). I have succ…

---

## [Fisica, world.step](https://discourse.processing.org/t/fisica-world-step/3998)

<div class="topic-metadata">

**Author:** [@tinchoedelp](https://discourse.processing.org/u/tinchoedelp)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 3:15am UTC](https://discourse.processing.org/t/fisica-world-step/3998 "2018-10-01T03:15:20Z")

</div>

Hello, i’m working with the Fisica library by Ricard Marxer. There were no problems until we started using classes and objects to make the code look more understandable. The problem seems to be in the world.step function…

---

## [Need Help Understanding this code](https://discourse.processing.org/t/need-help-understanding-this-code/3992)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 2:16am UTC](https://discourse.processing.org/t/need-help-understanding-this-code/3992 "2018-10-01T02:16:40Z")

</div>

Need help understanding how these lines of codes work. I know they are variables and methods, but beyond that I’m confused. // int x=50; Circles\[\]circle=new Circles \[x\]; // void setup(){ size(800,600); frameRate(120…

---

## [ArrayList stuff for Snake game](https://discourse.processing.org/t/arraylist-stuff-for-snake-game/3780)

<div class="topic-metadata">

**Author:** [@Dinator14](https://discourse.processing.org/u/Dinator14)\
**Replies:** 24\
**Last updated:** [September 30, 2018, 4:33pm UTC](https://discourse.processing.org/t/arraylist-stuff-for-snake-game/3780 "2018-09-30T16:33:19Z")

</div>

I’m pretty new to coding with Processing (I know some basics) so I wanted to make the game Snake. I’ve been able to make the square move in a grid and eat food then spawn new food, but adding a new square is giving me tr…

---

## [How do I spawn ellipses at a given time interval and is it possible to create objects infinitely until a condition has been met?](https://discourse.processing.org/t/how-do-i-spawn-ellipses-at-a-given-time-interval-and-is-it-possible-to-create-objects-infinitely-until-a-condition-has-been-met/3976)

<div class="topic-metadata">

**Author:** [@K-ran123](https://discourse.processing.org/u/K-ran123)\
**Replies:** 7\
**Last updated:** [September 30, 2018, 1:38pm UTC](https://discourse.processing.org/t/how-do-i-spawn-ellipses-at-a-given-time-interval-and-is-it-possible-to-create-objects-infinitely-until-a-condition-has-been-met/3976 "2018-09-30T13:38:00Z")

</div>

Hello, I am making a program similar to Aimbooster where the player has to click on the target (ellipse) before it disappears. At the moment, i got the targets (ellipses) to spawn at random locations using random() on t…

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

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