# Latest

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

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

**Page:** 553

---

## [How to instantiate an already created object that exists in another file?](https://discourse.processing.org/t/how-to-instantiate-an-already-created-object-that-exists-in-another-file/6083)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 3\
**Last updated:** [November 29, 2018, 9:40pm UTC](https://discourse.processing.org/t/how-to-instantiate-an-already-created-object-that-exists-in-another-file/6083 "2018-11-29T21:40:32Z")

</div>

Hi, I’m trying to avoid having all my created objects in the same file I want to use these objects in. I have a file called “FlowFields” and in another file, I have a “Particle” object that I want to use in my FlowFields…

---

## [Final Project Engg 233](https://discourse.processing.org/t/final-project-engg-233/6043)

<div class="topic-metadata">

**Author:** [@ih8pa1n](https://discourse.processing.org/u/ih8pa1n)\
**Replies:** 4\
**Last updated:** [November 29, 2018, 8:04pm UTC](https://discourse.processing.org/t/final-project-engg-233/6043 "2018-11-29T20:04:15Z")

</div>

Hey everyone, i have been struggling in this course. We have to make a digital dashboard of a car. Any help would be appreciated. Requirements for this class: Class SensorDataProvider This class has the following me…

---

## [DISABLE\_DEPTH\_TEST not working in P3D](https://discourse.processing.org/t/disable-depth-test-not-working-in-p3d/5995)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [November 29, 2018, 3:56pm UTC](https://discourse.processing.org/t/disable-depth-test-not-working-in-p3d/5995 "2018-11-29T15:56:20Z")

</div>

The line is over the ellipses,why? It should be under it: So it seems like DISABLE\_DEPTH\_TEST is not working. Is there a way to fix? void setup() { size(640, 480, P3D); } void draw() { background(0); rota…

---

## [Cache data fills up quickly](https://discourse.processing.org/t/cache-data-fills-up-quickly/6074)

<div class="topic-metadata">

**Author:** [@antmar](https://discourse.processing.org/u/antmar)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 3:00pm UTC](https://discourse.processing.org/t/cache-data-fills-up-quickly/6074 "2018-11-29T15:00:20Z")

</div>

Hello, I’m working on an app that retreives data from a mysql database and display a chart. The problem is the cache data is growing really fast and i don’t know why! Here is my code import de.bezier.data.sql.\*; import…

---

## [GameControlPlus - Controller Vibration?](https://discourse.processing.org/t/gamecontrolplus-controller-vibration/5902)

<div class="topic-metadata">

**Author:** [@TechnicJelle](https://discourse.processing.org/u/TechnicJelle)\
**Replies:** 6\
**Last updated:** [November 29, 2018, 12:37pm UTC](https://discourse.processing.org/t/gamecontrolplus-controller-vibration/5902 "2018-11-29T12:37:18Z")

</div>

@quark Hello, Is it possible to vibrate the controller using GCP? I’ve browsed the interweb quite a bit, but I couldn’t really find anything. I did check if my controller even supports vibration, so I downloaded Cont…

---

## [Files in Android/data/processing.test.example](https://discourse.processing.org/t/files-in-android-data-processing-test-example/6068)

<div class="topic-metadata">

**Author:** [@TechnicJelle](https://discourse.processing.org/u/TechnicJelle)\
**Replies:** 0\
**Last updated:** [November 29, 2018, 12:23pm UTC](https://discourse.processing.org/t/files-in-android-data-processing-test-example/6068 "2018-11-29T12:23:30Z")

</div>

Is it possible to store files in the /sdcard/Android/data/processing.test.example folder without needing permissions? I would imagine so, because it’s its own folder… I’ve been trying to get a Table CSV loaded and saved…

---

## [How to determine right Class to use, if not equal to used variable's Class?](https://discourse.processing.org/t/how-to-determine-right-class-to-use-if-not-equal-to-used-variables-class/5940)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 12\
**Last updated:** [November 29, 2018, 12:11pm UTC](https://discourse.processing.org/t/how-to-determine-right-class-to-use-if-not-equal-to-used-variables-class/5940 "2018-11-29T12:11:15Z")

</div>

The question might be confusing and i don’t know how to explain it better, but an example should show what i mean. Lets say we have some objects with different classes \<Banana, Apple, Bread, and so on\>. And now i want …

---

## [Can you run Processing on a Kindle?](https://discourse.processing.org/t/can-you-run-processing-on-a-kindle/5654)

<div class="topic-metadata">

**Author:** [@wsnicol](https://discourse.processing.org/u/wsnicol)\
**Replies:** 7\
**Last updated:** [November 28, 2018, 4:25pm UTC](https://discourse.processing.org/t/can-you-run-processing-on-a-kindle/5654 "2018-11-28T16:25:14Z")

</div>

Is it possible to run Processing on a Kindle, and if so, how?

---

## [Why does my code not work()](https://discourse.processing.org/t/why-does-my-code-not-work/6063)

<div class="topic-metadata">

**Author:** [@LordKim](https://discourse.processing.org/u/LordKim)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 7:02am UTC](https://discourse.processing.org/t/why-does-my-code-not-work/6063 "2018-11-29T07:02:31Z")

</div>

here is my code SensorDataProvider s; Gauge g; int value = 0; final int Mainmenu = 0; final int Car = 1; void setup(){ fullScreen(); if (key == '1'){ s = new SensorDataProvider(); s.Initialize("car\_status\_B…

---

## [Colour transparency](https://discourse.processing.org/t/colour-transparency/6052)

<div class="topic-metadata">

**Author:** [@CowPieForever](https://discourse.processing.org/u/CowPieForever)\
**Replies:** 6\
**Last updated:** [November 29, 2018, 6:30am UTC](https://discourse.processing.org/t/colour-transparency/6052 "2018-11-29T06:30:12Z")

</div>

My code for colour looks like this: stroke(random(127.5,255),random(127.5,255),random(127.5,255)); fill(random(127.5,255),random(127.5,255),random(127.5,255)); Since I’m using the random function, it doesn’t follow the…

---

## [Binary Search Help](https://discourse.processing.org/t/binary-search-help/6053)

<div class="topic-metadata">

**Author:** [@lormanny](https://discourse.processing.org/u/lormanny)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 1:15am UTC](https://discourse.processing.org/t/binary-search-help/6053 "2018-11-29T01:15:16Z")

</div>

PFont font; int titleScreen = 0; int gameScreen = 1; int resultScreen = 2; int gameState; int countDownTimer; int countUpTimer; //Reminder: Add three zeroes to the end of desired time in Game Duration i…

---

## [Coding Help Cannot Make Random Images Being Chosen](https://discourse.processing.org/t/coding-help-cannot-make-random-images-being-chosen/6057)

<div class="topic-metadata">

**Author:** [@Etorphine](https://discourse.processing.org/u/Etorphine)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 2:59am UTC](https://discourse.processing.org/t/coding-help-cannot-make-random-images-being-chosen/6057 "2018-11-29T02:59:29Z")

</div>

//master variables PImage\[\] randomIMG = new PImage\[5\]; int numOfIMG; int rand = 0; PImage image1,image2,image3,image4,image5; float height = 100; float width = 50; float length = 150; //imageONE = loadImage ("imageNOW.…

---

## [Assistance Needed for Text Fade](https://discourse.processing.org/t/assistance-needed-for-text-fade/5786)

<div class="topic-metadata">

**Author:** [@lormanny](https://discourse.processing.org/u/lormanny)\
**Replies:** 4\
**Last updated:** [November 29, 2018, 12:25am UTC](https://discourse.processing.org/t/assistance-needed-for-text-fade/5786 "2018-11-29T00:25:21Z")

</div>

I need some help with my code. I am creating an Anagrams project for school. I need help knowing where to start to get the fading text to work. Whenever you type something that is invalid, there is a feedback string that…

---

## [Gravity for 'mouse follow' function](https://discourse.processing.org/t/gravity-for-mouse-follow-function/6040)

<div class="topic-metadata">

**Author:** [@munr](https://discourse.processing.org/u/munr)\
**Replies:** 3\
**Last updated:** [November 29, 2018, 12:09am UTC](https://discourse.processing.org/t/gravity-for-mouse-follow-function/6040 "2018-11-29T00:09:22Z")

</div>

How might gravity be implemented for this drum beater so that it can swing and droop?: https://editor.p5js.org/munr/full/rkhA74j0Q var x = 100, y = 100, angle1 = 0.0, segLength = 45; function setup() { cre…

---

## [Fixing mouse position to window center](https://discourse.processing.org/t/fixing-mouse-position-to-window-center/6023)

<div class="topic-metadata">

**Author:** [@djokjula](https://discourse.processing.org/u/djokjula)\
**Replies:** 3\
**Last updated:** [November 28, 2018, 11:46pm UTC](https://discourse.processing.org/t/fixing-mouse-position-to-window-center/6023 "2018-11-28T23:46:18Z")

</div>

Is it possible to set the cursor position to the center (or anywhere else) of the screen? Similar to how games hide the cursor and don’t let it escape the window. Context: I’m making a 3D scene, and want the camera to …

---

## [Question about state of image effects in p5.js](https://discourse.processing.org/t/question-about-state-of-image-effects-in-p5-js/6045)

<div class="topic-metadata">

**Author:** [@ogoossens](https://discourse.processing.org/u/ogoossens)\
**Replies:** 4\
**Last updated:** [November 28, 2018, 9:56pm UTC](https://discourse.processing.org/t/question-about-state-of-image-effects-in-p5-js/6045 "2018-11-28T21:56:24Z")

</div>

Hi, I have two questions regarding two effects and their possible use in P5.js - if its possible or if there are any workarounds if not directly. 1. MASKS: I would love to use MASKS (areas where images/geometries) ar…

---

## [Random colours problem](https://discourse.processing.org/t/random-colours-problem/6044)

<div class="topic-metadata">

**Author:** [@oscie24](https://discourse.processing.org/u/oscie24)\
**Replies:** 2\
**Last updated:** [November 28, 2018, 9:16pm UTC](https://discourse.processing.org/t/random-colours-problem/6044 "2018-11-28T21:16:18Z")

</div>

For my tessellation project, I’m so near to finishing. I didn’t spot this problem until a friend of mine pointed it out. What I have I done is when I click anywhere within the small grid that will tessellate that onto th…

---

## [Help with a Problem](https://discourse.processing.org/t/help-with-a-problem/6048)

<div class="topic-metadata">

**Author:** [@drakenus777](https://discourse.processing.org/u/drakenus777)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 9:11pm UTC](https://discourse.processing.org/t/help-with-a-problem/6048 "2018-11-28T21:11:29Z")

</div>

Relatively New Programmer Asking for help. So I am making a Beginner “game” in processing where I’m to supposed reset a character’s timer when they collide with an enemy. Here is the code: public void timer() { newt…

---

## [How to populate a String?](https://discourse.processing.org/t/how-to-populate-a-string/6029)

<div class="topic-metadata">

**Author:** [@polispace](https://discourse.processing.org/u/polispace)\
**Replies:** 6\
**Last updated:** [November 28, 2018, 8:42pm UTC](https://discourse.processing.org/t/how-to-populate-a-string/6029 "2018-11-28T20:42:14Z")

</div>

Hi there, I’m braking down a bigger code in to small parts. Now i’m stuck with what I guess is a basic things. I would like to simply display words I have in a text file .txt. I written a code but i get the error “nu…

---

## [Engg 233 final project](https://discourse.processing.org/t/engg-233-final-project/6037)

<div class="topic-metadata">

**Author:** [@Engg233\_pross](https://discourse.processing.org/u/Engg233_pross)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 6:22pm UTC](https://discourse.processing.org/t/engg-233-final-project/6037 "2018-11-28T18:22:17Z")

</div>

can anyone help me to do final project Engg 233 milestone 1 ?

---

## [How to create a reset for my program](https://discourse.processing.org/t/how-to-create-a-reset-for-my-program/6036)

<div class="topic-metadata">

**Author:** [@evasiv](https://discourse.processing.org/u/evasiv)\
**Replies:** 1\
**Last updated:** [November 28, 2018, 6:13pm UTC](https://discourse.processing.org/t/how-to-create-a-reset-for-my-program/6036 "2018-11-28T18:13:21Z")

</div>

I created a simple Pong game for my program, currently when the score for one player reaches “10” the window just closes. I’m trying to make it so when it reaches 10 the program will instead just close and then restart, …

---

## [Vertex will not fill (Processing 3)](https://discourse.processing.org/t/vertex-will-not-fill-processing-3/6013)

<div class="topic-metadata">

**Author:** [@Mr\_Dumpling](https://discourse.processing.org/u/Mr_Dumpling)\
**Replies:** 5\
**Last updated:** [November 28, 2018, 3:47pm UTC](https://discourse.processing.org/t/vertex-will-not-fill-processing-3/6013 "2018-11-28T15:47:23Z")

</div>

So I have been trying to make a circle generator using vertexes, as I want to be able to use them in contours. However I have only been able to get points to show up, lines will not connect, and simply make dots every ot…

---

## [Random Walker Spiral using Probabilities](https://discourse.processing.org/t/random-walker-spiral-using-probabilities/5948)

<div class="topic-metadata">

**Author:** [@RC75018](https://discourse.processing.org/u/RC75018)\
**Replies:** 8\
**Last updated:** [November 28, 2018, 1:06pm UTC](https://discourse.processing.org/t/random-walker-spiral-using-probabilities/5948 "2018-11-28T13:06:51Z")

</div>

Hi Everyone, I am working on an algorithm to create a random walker using probabilities. I want to have a controlled random spiral shape. Like this: I have create a random walker class first. When i am trying to make…

---

## [Store values in array](https://discourse.processing.org/t/store-values-in-array/5385)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 7\
**Last updated:** [November 28, 2018, 9:50am UTC](https://discourse.processing.org/t/store-values-in-array/5385 "2018-11-28T09:50:57Z")

</div>

I already posted this on reddit, so here goes: For an installation, I need to create a code where one can press a key (r, g, b, y) which then creates a rgb code for an rgb lamp. There will be a fixed amount of lamps (e.…

---

## [G4P GUI Builder 4.2.1: new window KEEP\_OPEN doesn't work](https://discourse.processing.org/t/g4p-gui-builder-4-2-1-new-window-keep-open-doesnt-work/5994)

<div class="topic-metadata">

**Author:** [@gyula](https://discourse.processing.org/u/gyula)\
**Replies:** 2\
**Last updated:** [November 28, 2018, 9:44am UTC](https://discourse.processing.org/t/g4p-gui-builder-4-2-1-new-window-keep-open-doesnt-work/5994 "2018-11-28T09:44:47Z")

</div>

@quark, I really appreciate your G4P library and this is just a small issue I may have found in GUI Builder 4.2.1. on Windows. When I set up a new window in G4P GUI Builder, selecting the KEEP\_OPEN parameter for Action …

---

## [Connect particle previous and current positions with line](https://discourse.processing.org/t/connect-particle-previous-and-current-positions-with-line/6017)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 2\
**Last updated:** [November 28, 2018, 8:32am UTC](https://discourse.processing.org/t/connect-particle-previous-and-current-positions-with-line/6017 "2018-11-28T08:32:54Z")

</div>

I’m trying to use a particles previous position to draw a line to its current position but they are always equal even though previous position is got before the position is updated? So I’m following Coding Challenge #24…

---

## [Potential Bug - Processing compiler becoming unresponsive with negative text size](https://discourse.processing.org/t/potential-bug-processing-compiler-becoming-unresponsive-with-negative-text-size/5988)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 10\
**Last updated:** [November 28, 2018, 7:55am UTC](https://discourse.processing.org/t/potential-bug-processing-compiler-becoming-unresponsive-with-negative-text-size/5988 "2018-11-28T07:55:36Z")

</div>

Hi, I’m not sure if this a simple coding issue, or a bug, but I’ve recently when experimenting with textSize();, my Processing IDE froze, was unable to start any new program, and couldn’t even quit properly on my Macboo…

---

## [Snake Game problem: having trouble figuring out how to make it reset](https://discourse.processing.org/t/snake-game-problem-having-trouble-figuring-out-how-to-make-it-reset/6005)

<div class="topic-metadata">

**Author:** [@blankbleak](https://discourse.processing.org/u/blankbleak)\
**Replies:** 3\
**Last updated:** [November 28, 2018, 12:05am UTC](https://discourse.processing.org/t/snake-game-problem-having-trouble-figuring-out-how-to-make-it-reset/6005 "2018-11-28T00:05:52Z")

</div>

Hello, I have just started a snake game project for my class, however I’m a little confused with partial arrays in the sense that I am unsure about how to make it start in the top middle of the canvas, I am just confused…

---

## [Gradient background immediately fades away?](https://discourse.processing.org/t/gradient-background-immediately-fades-away/6006)

<div class="topic-metadata">

**Author:** [@francium401](https://discourse.processing.org/u/francium401)\
**Replies:** 3\
**Last updated:** [November 27, 2018, 11:25pm UTC](https://discourse.processing.org/t/gradient-background-immediately-fades-away/6006 "2018-11-27T23:25:49Z")

</div>

I’m very new to processing, and did try to follow some tutorials as to how to add a background gradient. However for some reason when I hit play, the gradient is visible but only for a split second at the start. It fades…

---

## [Begin a shape according to time](https://discourse.processing.org/t/begin-a-shape-according-to-time/5970)

<div class="topic-metadata">

**Author:** [@Chloe65](https://discourse.processing.org/u/Chloe65)\
**Replies:** 2\
**Last updated:** [November 27, 2018, 11:28pm UTC](https://discourse.processing.org/t/begin-a-shape-according-to-time/5970 "2018-11-27T23:28:25Z")

</div>

Hi everyone ! I am making an animation and I would like to start a shape a few seconds after launching my animation, but I don’t know if it is possible. I looked on forums, lessons, examples but I didn’t find anything… …

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

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