# Latest

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

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

**Page:** 249

---

## [Export Application](https://discourse.processing.org/t/export-application/28187)

<div class="topic-metadata">

**Author:** [@anog\_jani](https://discourse.processing.org/u/anog_jani)\
**Replies:** 3\
**Last updated:** [March 4, 2021, 11:13am UTC](https://discourse.processing.org/t/export-application/28187 "2021-03-04T11:13:27Z")

</div>

I was having trouble exporting my processing project to a .exe file, I’ve searched in many forums and videos, and I’ve asked many people and still I could not find an answer. If someone could help me, it would be greatly…

---

## [Get location of a PApplet window](https://discourse.processing.org/t/get-location-of-a-papplet-window/28039)

<div class="topic-metadata">

**Author:** [@yeppii](https://discourse.processing.org/u/yeppii)\
**Replies:** 11\
**Last updated:** [March 4, 2021, 10:40am UTC](https://discourse.processing.org/t/get-location-of-a-papplet-window/28039 "2021-03-04T10:40:00Z")

</div>

How can I get the location of a PApplet window?

---

## [Dynamite screen clear game](https://discourse.processing.org/t/dynamite-screen-clear-game/28241)

<div class="topic-metadata">

**Author:** [@boomstick55](https://discourse.processing.org/u/boomstick55)\
**Replies:** 2\
**Last updated:** [March 4, 2021, 9:56am UTC](https://discourse.processing.org/t/dynamite-screen-clear-game/28241 "2021-03-04T09:56:17Z")

</div>

Im trying to simulate a player pushing down ignition for dynamite to explode and clear the screen of bad guys but I cant figure out how to detect the rect reaching a certain point of the screen to clear it here’s my cod…

---

## [Error importing Ketai Library](https://discourse.processing.org/t/error-importing-ketai-library/27096)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [March 4, 2021, 5:43am UTC](https://discourse.processing.org/t/error-importing-ketai-library/27096 "2021-03-04T05:43:12Z")

</div>

I have been using this library now for a while, and have had issues using it like the other libraries I download. Normally I just download the library add it to the libraries folder make sure the names match and it works…

---

## [Checking objects in a certain area](https://discourse.processing.org/t/checking-objects-in-a-certain-area/28220)

<div class="topic-metadata">

**Author:** [@Criste44](https://discourse.processing.org/u/Criste44)\
**Replies:** 8\
**Last updated:** [March 3, 2021, 5:33pm UTC](https://discourse.processing.org/t/checking-objects-in-a-certain-area/28220 "2021-03-03T17:33:23Z")

</div>

İ = 8 J= 6 How can I check if there is a part between these rows and columns? If there is no part, I want to have an operation. Edit; I’m doing a chess-like game … example I want to check if there is a piece in row 6…

---

## [Rotate image with PVectors for game](https://discourse.processing.org/t/rotate-image-with-pvectors-for-game/28203)

<div class="topic-metadata">

**Author:** [@boomstick55](https://discourse.processing.org/u/boomstick55)\
**Replies:** 4\
**Last updated:** [March 3, 2021, 4:25pm UTC](https://discourse.processing.org/t/rotate-image-with-pvectors-for-game/28203 "2021-03-03T16:25:34Z")

</div>

For a project, I am making a simple top down shooter and I’m trying to incorporate a push pop rotation to the player character. I am having trouble having the character image rotate to the mouse coordinates ala pointing …

---

## [Neural Network genetic algorithm game](https://discourse.processing.org/t/neural-network-genetic-algorithm-game/28146)

<div class="topic-metadata">

**Author:** [@Farbod](https://discourse.processing.org/u/Farbod)\
**Replies:** 6\
**Last updated:** [March 3, 2021, 4:01pm UTC](https://discourse.processing.org/t/neural-network-genetic-algorithm-game/28146 "2021-03-03T16:01:50Z")

</div>

I am trying to train a neural network to be able to shoot a bubble accurately. My solution is to have a brain inside the “arrow” and make it determine the shooting “angle” based on the scores it receives. I have followed…

---

## [API gives NullPointerException](https://discourse.processing.org/t/api-gives-nullpointerexception/26792)

<div class="topic-metadata">

**Author:** [@AntiQliMax](https://discourse.processing.org/u/AntiQliMax)\
**Replies:** 1\
**Last updated:** [March 3, 2021, 2:08pm UTC](https://discourse.processing.org/t/api-gives-nullpointerexception/26792 "2021-03-03T14:08:56Z")

</div>

Dear users of this forum. I started learning API calls and tried it with some code I found on the old forum. The goal is i want to use the openweather API to check if it is raining, now the API works and the URL, but I…

---

## [Code Organisation](https://discourse.processing.org/t/code-organisation/28215)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 5\
**Last updated:** [March 3, 2021, 10:53am UTC](https://discourse.processing.org/t/code-organisation/28215 "2021-03-03T10:53:16Z")

</div>

hey all, I’ve been using processing for a while now, but have only just started using this forum. As my projects become larger and larger in scale, the code becomes harder and harder to navigate. All of the text seems t…

---

## [HSL- Another colorful box](https://discourse.processing.org/t/hsl-another-colorful-box/28209)

<div class="topic-metadata">

**Author:** [@Apollo](https://discourse.processing.org/u/Apollo)\
**Replies:** 4\
**Last updated:** [March 3, 2021, 8:07am UTC](https://discourse.processing.org/t/hsl-another-colorful-box/28209 "2021-03-03T08:07:15Z")

</div>

Hey, Maybe you could help me here. I have to make an interactive HSL (Hue, Saturation, Lightness) Box in Processing. On top of the window, there should be a 500px wide and 50px tall color strip that will determine the…

---

## [Filling up the canvas with some paint](https://discourse.processing.org/t/filling-up-the-canvas-with-some-paint/28210)

<div class="topic-metadata">

**Author:** [@Apollo](https://discourse.processing.org/u/Apollo)\
**Replies:** 2\
**Last updated:** [March 3, 2021, 7:49am UTC](https://discourse.processing.org/t/filling-up-the-canvas-with-some-paint/28210 "2021-03-03T07:49:46Z")

</div>

Hi! I hope you could help me here. The code should create a 500x500 canvas and fills it in with a solid color (try maroon) using a 25px brush in 20 seconds. The brush goes from left to right for a layer/level/row, then…

---

## [Need help with this (sliding puzzle game)](https://discourse.processing.org/t/need-help-with-this-sliding-puzzle-game/28189)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 3\
**Last updated:** [March 3, 2021, 6:50am UTC](https://discourse.processing.org/t/need-help-with-this-sliding-puzzle-game/28189 "2021-03-03T06:50:12Z")

</div>

I’ve been working on this for quite some time and am very lost right now. I’m trying to figure out how to shuffle the image, and then have it set to where the player can rearrange the image using the white square so that…

---

## [First person camera help](https://discourse.processing.org/t/first-person-camera-help/28205)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 1\
**Last updated:** [March 3, 2021, 5:20am UTC](https://discourse.processing.org/t/first-person-camera-help/28205 "2021-03-03T05:20:20Z")

</div>

i’ve edited some code i found for a first person camera but cant figure out how to rotate y axis well inside the matrix and also how to stop the block from jittering around when i move the camera. any help would be appre…

---

## [How do I use mousePressed/mouseClicked for this part? (image order game)](https://discourse.processing.org/t/how-do-i-use-mousepressed-mouseclicked-for-this-part-image-order-game/28190)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 3\
**Last updated:** [March 3, 2021, 3:27am UTC](https://discourse.processing.org/t/how-do-i-use-mousepressed-mouseclicked-for-this-part-image-order-game/28190 "2021-03-03T03:27:02Z")

</div>

I’m just about done with this work, but I’m stuck on this part. the 4 images are shuffling as needed, but I need it to where the player clicks on the image in the correct order, and then the words “YOU WIN!” or “YOU LOSE…

---

## [How to instantiate class from String?](https://discourse.processing.org/t/how-to-instantiate-class-from-string/27641)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 7\
**Last updated:** [March 2, 2021, 8:25pm UTC](https://discourse.processing.org/t/how-to-instantiate-class-from-string/27641 "2021-03-02T20:25:02Z")

</div>

instantiate class from string I have the car class class car { ... } how can I do ArrayList \<Object\> cars = new ArrayList \<Object\> (); // Create an ArrayList object String s = "car" cars.add (new s()) I tried this…

---

## [Create a counter from 1 to 10 in secondes to my games](https://discourse.processing.org/t/create-a-counter-from-1-to-10-in-secondes-to-my-games/28193)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 1\
**Last updated:** [March 2, 2021, 8:05pm UTC](https://discourse.processing.org/t/create-a-counter-from-1-to-10-in-secondes-to-my-games/28193 "2021-03-02T20:05:14Z")

</div>

Hello, i would like to display on my games a stopwatch on my code, counting from 1 to 10 in secondes wel after 10 secondes it returns to 0 and its repeating float wait2 = 1000 - floor(millis()/1000)\*90; int lastTime = …

---

## [Bug with color variable type (lerpColor)](https://discourse.processing.org/t/bug-with-color-variable-type-lerpcolor/27705)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 17\
**Last updated:** [March 2, 2021, 8:00pm UTC](https://discourse.processing.org/t/bug-with-color-variable-type-lerpcolor/27705 "2021-03-02T20:00:53Z")

</div>

size(400,200); color clr = 255, clr2 = color(255,255,255); noStroke(); fill(red(clr),green(clr),blue(clr)); rect(0,0,200,200); fill(red(clr2),green(clr2),blue(clr2)); rect(200,0,200,200); I know color is stored as a w…

---

## [Create an error counter for my game](https://discourse.processing.org/t/create-an-error-counter-for-my-game/28194)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 0\
**Last updated:** [March 2, 2021, 7:16pm UTC](https://discourse.processing.org/t/create-an-error-counter-for-my-game/28194 "2021-03-02T19:16:34Z")

</div>

Hello, I would like,when I click next to a square or I take too long to click on it, a counter is displayed, example if Iam mistaken 2 times I diplayed 2. When i tried this i encountered an error witch Java that i do not…

---

## [Arranging objects in random rows and columns](https://discourse.processing.org/t/arranging-objects-in-random-rows-and-columns/28163)

<div class="topic-metadata">

**Author:** [@Criste44](https://discourse.processing.org/u/Criste44)\
**Replies:** 10\
**Last updated:** [March 2, 2021, 12:07pm UTC](https://discourse.processing.org/t/arranging-objects-in-random-rows-and-columns/28163 "2021-03-02T12:07:54Z")

</div>

private void InitialSetup() { AddPiece(whiteRook, white, 0, 0); AddPiece(whiteKnight, white,1,2); AddPiece(whiteBishop, white,2,0); AddPiece(whiteQueen, white, 3,4); AddPiece(whiteKing, white, 4, 6); AddPiece(whit…

---

## [3d drawing with mouse](https://discourse.processing.org/t/3d-drawing-with-mouse/27738)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 36\
**Last updated:** [March 2, 2021, 11:47am UTC](https://discourse.processing.org/t/3d-drawing-with-mouse/27738 "2021-03-02T11:47:17Z")

</div>

Mr @Chrisir hi i read this post for you i need some headlights if you kind void setup() { size(600, 600, OPENGL); rectMode(CENTER); } void draw() { background(0); lights(); translate(width/2, heigh…

---

## [Developing a new library: error while creating javadoc and some general question](https://discourse.processing.org/t/developing-a-new-library-error-while-creating-javadoc-and-some-general-question/13863)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 11\
**Last updated:** [September 13, 2019, 5:48pm UTC](https://discourse.processing.org/t/developing-a-new-library-error-while-creating-javadoc-and-some-general-question/13863 "2019-09-13T17:48:52Z")

</div>

Hi, I’m working on a library for processing for the first time. I followed the guidelines on Github and downloaded the template. Everything works correctly but I have an issue because when I run ant in eclipse it doesn’…

---

## [Vector field to an array (Aborigines Art)](https://discourse.processing.org/t/vector-field-to-an-array-aborigines-art/27839)

<div class="topic-metadata">

**Author:** [@Hiram-Belgium](https://discourse.processing.org/u/Hiram-Belgium)\
**Replies:** 14\
**Last updated:** [March 2, 2021, 11:25am UTC](https://discourse.processing.org/t/vector-field-to-an-array-aborigines-art/27839 "2021-03-02T11:25:22Z")

</div>

Hello (please excuse my poor English I am French speaking Belgian) I would like to know how I could put all the points of a vector field in an array?My goal is to replace the lines of my vector field with circles to simu…

---

## [How to add image to terrain sketch](https://discourse.processing.org/t/how-to-add-image-to-terrain-sketch/28158)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 1\
**Last updated:** [March 2, 2021, 7:55am UTC](https://discourse.processing.org/t/how-to-add-image-to-terrain-sketch/28158 "2021-03-02T07:55:31Z")

</div>

hi how to add text and image to this sketch int cols, rows; int scl = 13; int w = 1200; int h = 1600; float flying = 0; //int scl = 10; //int w = 1900; //int h = 2600; float\[\]\[\] terrain; void setup() { size (600…

---

## [Sketch orientation Android](https://discourse.processing.org/t/sketch-orientation-android/28096)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [March 1, 2021, 9:58pm UTC](https://discourse.processing.org/t/sketch-orientation-android/28096 "2021-03-01T21:58:05Z")

</div>

Hi I’m looking for a solution to a small problem. I have already searched online, to find out how to lock my rotation, and came across the orientation reference. https://android.processing.org/reference/environment/orie…

---

## [Time elapsed correlated with FrameCount](https://discourse.processing.org/t/time-elapsed-correlated-with-framecount/28004)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 13\
**Last updated:** [March 1, 2021, 6:08pm UTC](https://discourse.processing.org/t/time-elapsed-correlated-with-framecount/28004 "2021-03-01T18:08:01Z")

</div>

Hello guys and girls, Hi made a function to see seconds elapsed from the the first frame. I did like that int Time=0; void setup (){ frameRate(30); } void TimeElapsed () { if ((frameCount%30)==0) { Time+=1; …

---

## [Interesting "pattern"](https://discourse.processing.org/t/interesting-pattern/28170)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 0\
**Last updated:** [March 1, 2021, 4:51pm UTC](https://discourse.processing.org/t/interesting-pattern/28170 "2021-03-01T16:51:31Z")

</div>

Codeint r = 300; void setup() { size(600,600); } void draw() { background(0); noFill(); stroke(255); for(float i = 0; i \< 600; i+=0.1) { drawLine(i,300,cos(i/sqrt(300)\*15\*PI/3)\*r); } stroke(255,0,0);…

---

## [Shader question!](https://discourse.processing.org/t/shader-question/28164)

<div class="topic-metadata">

**Author:** [@carfreesun](https://discourse.processing.org/u/carfreesun)\
**Replies:** 1\
**Last updated:** [March 1, 2021, 4:43pm UTC](https://discourse.processing.org/t/shader-question/28164 "2021-03-01T16:43:55Z")

</div>

hello everyone, i’m curious about shader language. so i write this question! When I want to use the ‘ease’ function, why do I have to use another function instead of just putting a variable in parameter t? for example, …

---

## [No limits just imagine](https://discourse.processing.org/t/no-limits-just-imagine/28127)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 15\
**Last updated:** [March 1, 2021, 4:02pm UTC](https://discourse.processing.org/t/no-limits-just-imagine/28127 "2021-03-01T16:02:18Z")

</div>

int penx = 0; int peny = 0; int de = 2; cLista lista = new cLista(); int el0 = 0; int by; // ------------------------------------------------------------ void setup() { size(800, 600); // size(1024, 768); // si…

---

## [How to make Grid out of Boxes (3D)](https://discourse.processing.org/t/how-to-make-grid-out-of-boxes-3d/28070)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 29\
**Last updated:** [March 1, 2021, 2:59pm UTC](https://discourse.processing.org/t/how-to-make-grid-out-of-boxes-3d/28070 "2021-03-01T14:59:14Z")

</div>

@ Chrisir hi how are you int unit = 90; int count; Module\[\] mods; void setup() { size(600, 660, OPENGL); noStroke(); int wideCount = width / unit; int highCount = height / unit; int depthCount = h…

---

## [Create another window accessible with a key from the menu](https://discourse.processing.org/t/create-another-window-accessible-with-a-key-from-the-menu/28108)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 5\
**Last updated:** [March 1, 2021, 2:42pm UTC](https://discourse.processing.org/t/create-another-window-accessible-with-a-key-from-the-menu/28108 "2021-03-01T14:42:56Z")

</div>

Hello, I would like to create a third page (I have the menu and the games) except that it does not work here is the code with the error: float wait2 = 1000 - floor(millis()/1000)\*90; int lastTime = 0; int score = 0; …

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

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