# Processing

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

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

**Page:** 233

---

## [Update the second text](https://discourse.processing.org/t/update-the-second-text/18275)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 10\
**Last updated:** [March 1, 2020, 6:41pm UTC](https://discourse.processing.org/t/update-the-second-text/18275 "2020-03-01T18:41:52Z")

</div>

I need Help i would update the second Text can everyone help me Text: int sekunde = second(); int minute = minute(); int stunde = hour(); int tag = day(); int monat = month(); int yahr = year(); void setup(){ fullS…

---

## [Splitting an ArrayList for each PVector (0,0) (updated)](https://discourse.processing.org/t/splitting-an-arraylist-for-each-pvector-0-0-updated/17883)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 16\
**Last updated:** [February 29, 2020, 6:11pm UTC](https://discourse.processing.org/t/splitting-an-arraylist-for-each-pvector-0-0-updated/17883 "2020-02-29T18:11:23Z")

</div>

Hi there :slight\_smile: I have an ArrayList of PVectors that I want to split into two separate ArrayLists. I have found out that you can split Lists using .sublist, but I have only managed to split my ArrayList into two…

---

## [Stroke weight selection](https://discourse.processing.org/t/stroke-weight-selection/18242)

<div class="topic-metadata">

**Author:** [@WeeBoEtte](https://discourse.processing.org/u/WeeBoEtte)\
**Replies:** 6\
**Last updated:** [March 1, 2020, 11:12am UTC](https://discourse.processing.org/t/stroke-weight-selection/18242 "2020-03-01T11:12:39Z")

</div>

I’m trying to make a drawing program with a tool bar, buttons, and a canvas. So far I got a lot done with help from everyone here on this forum, however, when I try click on the 2 line of my 3 line button, it draws the l…

---

## [G4P - Specifying Listener Method](https://discourse.processing.org/t/g4p-specifying-listener-method/18258)

<div class="topic-metadata">

**Author:** [@MauiMana](https://discourse.processing.org/u/MauiMana)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 10:05am UTC](https://discourse.processing.org/t/g4p-specifying-listener-method/18258 "2020-03-01T10:05:30Z")

</div>

I’m a new user of G4P, migrating over from ControlP5. I’m coding my app as native java classes (but still using the Processing 3 IDE). I am simply trying to assign a listener to a specific button control via .addEventHan…

---

## [Game control plus with ClassNotFoundException problem](https://discourse.processing.org/t/game-control-plus-with-classnotfoundexception-problem/17963)

<div class="topic-metadata">

**Author:** [@JeremyL](https://discourse.processing.org/u/JeremyL)\
**Replies:** 3\
**Last updated:** [February 23, 2020, 8:45am UTC](https://discourse.processing.org/t/game-control-plus-with-classnotfoundexception-problem/17963 "2020-02-23T08:45:50Z")

</div>

Hi,@quark sorry to bother you. im new to using processing for my school project, and now I’m learning to use game control plus library. However when I test it, whatever which example I test, everytime it will show ClassN…

---

## [Need help with this Loop](https://discourse.processing.org/t/need-help-with-this-loop/18256)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 8\
**Last updated:** [March 1, 2020, 2:14am UTC](https://discourse.processing.org/t/need-help-with-this-loop/18256 "2020-03-01T02:14:27Z")

</div>

Can anyone tell me what I am doing wrong? I cannot get this to do more than one row. float randomW; float randomH; float row; float column; void setup(){ size(400,400); background(250,250,0); for(int row = 0; row\<…

---

## [Problem with hover on area curves](https://discourse.processing.org/t/problem-with-hover-on-area-curves/18120)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 4:54am UTC](https://discourse.processing.org/t/problem-with-hover-on-area-curves/18120 "2020-02-29T04:54:36Z")

</div>

I am creating a sketch with comparison of different social media uses. I have layered multiple area curves one in front of the other. My intention is to create a hover effect on the point of interest. The problem I ran i…

---

## [For Statement not working](https://discourse.processing.org/t/for-statement-not-working/18257)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 1\
**Last updated:** [March 1, 2020, 12:36am UTC](https://discourse.processing.org/t/for-statement-not-working/18257 "2020-03-01T00:36:10Z")

</div>

I can’t seem to limit this to 25 ellipses even though I wrote a for statement. float randomX; float randomY; float randomZ; float randomQ; int x; void setup(){ size(400,400); background(250,250,0); } void draw…

---

## [Getting my asteroids videogame to work](https://discourse.processing.org/t/getting-my-asteroids-videogame-to-work/17945)

<div class="topic-metadata">

**Author:** [@The-Coder](https://discourse.processing.org/u/The-Coder)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 10:02pm UTC](https://discourse.processing.org/t/getting-my-asteroids-videogame-to-work/17945 "2020-02-29T22:02:46Z")

</div>

I am try to make a sideways meteor dodging game where you are a spaceship that avoids asteroids that fly towards you from the left. My problem is that I have not been able to make a larger than 1 pixel hit box for the as…

---

## [Convert video to 1 pixel per frame](https://discourse.processing.org/t/convert-video-to-1-pixel-per-frame/18086)

<div class="topic-metadata">

**Author:** [@themindfactory](https://discourse.processing.org/u/themindfactory)\
**Replies:** 7\
**Last updated:** [February 29, 2020, 8:15pm UTC](https://discourse.processing.org/t/convert-video-to-1-pixel-per-frame/18086 "2020-02-29T20:15:59Z")

</div>

Yes you read it correctly I want to convert a video file to a single RGB pixel per frame, so another way to think about it is that this one color per frame is the color you would see on your ceiling when you are watching…

---

## [Circumscribe perlin cloud](https://discourse.processing.org/t/circumscribe-perlin-cloud/12152)

<div class="topic-metadata">

**Author:** [@excalibas](https://discourse.processing.org/u/excalibas)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 3:55pm UTC](https://discourse.processing.org/t/circumscribe-perlin-cloud/12152 "2020-02-29T15:55:00Z")

</div>

Hello, I am trying to draw something that looks like a cloud. I like the effect I get with using perlin noise like this: float t1 = 0.0; float t2 = 10000; void setup(){ size(700,700); noLoop(); loadPixels(); } …

---

## [It won't select colors or stroke weight when I make the draw-program only draw in a specific area](https://discourse.processing.org/t/it-wont-select-colors-or-stroke-weight-when-i-make-the-draw-program-only-draw-in-a-specific-area/18122)

<div class="topic-metadata">

**Author:** [@WeeBoEtte](https://discourse.processing.org/u/WeeBoEtte)\
**Replies:** 7\
**Last updated:** [February 29, 2020, 2:44pm UTC](https://discourse.processing.org/t/it-wont-select-colors-or-stroke-weight-when-i-make-the-draw-program-only-draw-in-a-specific-area/18122 "2020-02-29T14:44:57Z")

</div>

I am trying to make a drawing program where it only draws in a rectangle made in setup. I want to still be able to use my color, size, and clearing ability that I made, but I can’t figure it out. Any tips would be great. …

---

## [Generating natural-looking terrain from a few known peaks](https://discourse.processing.org/t/generating-natural-looking-terrain-from-a-few-known-peaks/18233)

<div class="topic-metadata">

**Author:** [@dandotdot](https://discourse.processing.org/u/dandotdot)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 1:39am UTC](https://discourse.processing.org/t/generating-natural-looking-terrain-from-a-few-known-peaks/18233 "2020-02-29T01:39:50Z")

</div>

Hi clever people, I’m trying to find the best way to generate terrain that looks natural-ish (Which I suppose mainly means peaks descending as valleys and ridges, rather than a single plane). I know the heights of a bu…

---

## [Help with click to shoot](https://discourse.processing.org/t/help-with-click-to-shoot/18195)

<div class="topic-metadata">

**Author:** [@roguecode](https://discourse.processing.org/u/roguecode)\
**Replies:** 6\
**Last updated:** [February 28, 2020, 10:52pm UTC](https://discourse.processing.org/t/help-with-click-to-shoot/18195 "2020-02-28T22:52:33Z")

</div>

hello i need help with my code. i need to be able to click the picture with the cross hair and for it to fall but nothing ive done seems to work. if possible could you guys show me how to do it using a while loop? also h…

---

## [High cpu while typing](https://discourse.processing.org/t/high-cpu-while-typing/18175)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [February 28, 2020, 11:11pm UTC](https://discourse.processing.org/t/high-cpu-while-typing/18175 "2020-02-28T23:11:38Z")

</div>

Not a question about code of any kind, however on the latest version of processing, using the built in ide, cpu usage will spike whilst writing. I suspect it might have something to do with the size of my program, howev…

---

## [Contribute a new translation](https://discourse.processing.org/t/contribute-a-new-translation/17405)

<div class="topic-metadata">

**Author:** [@trikaphundo](https://discourse.processing.org/u/trikaphundo)\
**Replies:** 9\
**Last updated:** [February 28, 2020, 6:03pm UTC](https://discourse.processing.org/t/contribute-a-new-translation/17405 "2020-02-28T18:03:02Z")

</div>

Hello everyone, I would like to contribute a Catalan translation to Processing development environment (the sketchbook). I couldn’t find any information or instructions on how to contribute a translation, neither in the…

---

## [Hand tracking with RealSense](https://discourse.processing.org/t/hand-tracking-with-realsense/17972)

<div class="topic-metadata">

**Author:** [@Chrou](https://discourse.processing.org/u/Chrou)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 10:34am UTC](https://discourse.processing.org/t/hand-tracking-with-realsense/17972 "2020-02-28T10:34:01Z")

</div>

Hello! I’m working on a project that involves hand tracking with a RealSense D435 camera. I’d like to implement it in Processing because it’s easier for the person who will take over once my internship ends. Is there a …

---

## [I want to make stickmans move](https://discourse.processing.org/t/i-want-to-make-stickmans-move/18204)

<div class="topic-metadata">

**Author:** [@seojin051005](https://discourse.processing.org/u/seojin051005)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 8:38am UTC](https://discourse.processing.org/t/i-want-to-make-stickmans-move/18204 "2020-02-28T08:38:57Z")

</div>

Hello, I’m currently learning how to use processing in the school for an upcoming big project- making an advertisement for sports day. For my advert, I want to make my stickman running by animating the stickmans, but I d…

---

## [Slower and laggy Processing 3 sketch with a larger window](https://discourse.processing.org/t/slower-and-laggy-processing-3-sketch-with-a-larger-window/17975)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 1\
**Last updated:** [February 28, 2020, 1:30am UTC](https://discourse.processing.org/t/slower-and-laggy-processing-3-sketch-with-a-larger-window/17975 "2020-02-28T01:30:49Z")

</div>

I am trying to create an app that can be resized depending on the user’s preference. The app for now is going to be a grid that can be moved around. At the default (and small) size, it runs pretty well and fast. But whe…

---

## [Can someone help me? Nested for-loop](https://discourse.processing.org/t/can-someone-help-me-nested-for-loop/18179)

<div class="topic-metadata">

**Author:** [@seojin051005](https://discourse.processing.org/u/seojin051005)\
**Replies:** 5\
**Last updated:** [February 27, 2020, 10:30pm UTC](https://discourse.processing.org/t/can-someone-help-me-nested-for-loop/18179 "2020-02-27T22:30:44Z")

</div>

I want to combine these two lines but I don’t know how to. for (int x=940; x\<1001; x+=30); for (int y=53; y\<234; y+=30)

---

## [Help game code question](https://discourse.processing.org/t/help-game-code-question/18197)

<div class="topic-metadata">

**Author:** [@lupos](https://discourse.processing.org/u/lupos)\
**Replies:** 8\
**Last updated:** [February 27, 2020, 9:26pm UTC](https://discourse.processing.org/t/help-game-code-question/18197 "2020-02-27T21:26:43Z")

</div>

I am working on a game in processing for my university project but I have a problem. when the game patterns change their positions wont reset. if you let the pattern loop you will see what I mean can anyone help me? cod…

---

## [G4P.showMessage ... G4P.WARNING causes error](https://discourse.processing.org/t/g4p-showmessage-g4p-warning-causes-error/18198)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 7:46pm UTC](https://discourse.processing.org/t/g4p-showmessage-g4p-warning-causes-error/18198 "2020-02-27T19:46:25Z")

</div>

After just updating G4P Library to latest version (4.3.2) from 4.1.3, The following line of code (which worked under 4.1.3): G4P.showMessage(this, “Not a valid Patch file?”, “Bad Patch Data”, G4P.WARNING); now gives th…

---

## [Send video frame into OpenCV?](https://discourse.processing.org/t/send-video-frame-into-opencv/18075)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 9\
**Last updated:** [February 27, 2020, 4:02pm UTC](https://discourse.processing.org/t/send-video-frame-into-opencv/18075 "2020-02-27T16:02:52Z")

</div>

I’m trying to read the frame of a video and send it into OpenCV for blob detection, but am getting a strange error. With this simple example: import processing.video.\*; Movie mov; OpenCV cv; void setup() { size(640…

---

## [Make smiley go bigger or smaller without changing](https://discourse.processing.org/t/make-smiley-go-bigger-or-smaller-without-changing/18173)

<div class="topic-metadata">

**Author:** [@M.juliet](https://discourse.processing.org/u/M.juliet)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 3:48pm UTC](https://discourse.processing.org/t/make-smiley-go-bigger-or-smaller-without-changing/18173 "2020-02-27T15:48:09Z")

</div>

Hi, I’m writing some code where I need to draw smiley’s. Now I already have the smiley’s but I need to change the position and the size of the smiley with functions. The only thing I still need to do is change the size b…

---

## [I am getting an "expecting EOF found }" error, how do I fix this?](https://discourse.processing.org/t/i-am-getting-an-expecting-eof-found-error-how-do-i-fix-this/18115)

<div class="topic-metadata">

**Author:** [@The-Coder](https://discourse.processing.org/u/The-Coder)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 8:30pm UTC](https://discourse.processing.org/t/i-am-getting-an-expecting-eof-found-error-how-do-i-fix-this/18115 "2020-02-26T20:30:47Z")

</div>

//Asteroid Dodge void setup() { background(0, 0, 0); size(1000, 900); noLoop(); print ("press the mouse to start the game use the arrow keys to move your ship"); } void draw() { // controls game states float …

---

## [How can I constantly save variables in tables as the program runs?](https://discourse.processing.org/t/how-can-i-constantly-save-variables-in-tables-as-the-program-runs/18160)

<div class="topic-metadata">

**Author:** [@abdullahmq](https://discourse.processing.org/u/abdullahmq)\
**Replies:** 3\
**Last updated:** [February 27, 2020, 8:06am UTC](https://discourse.processing.org/t/how-can-i-constantly-save-variables-in-tables-as-the-program-runs/18160 "2020-02-27T08:06:42Z")

</div>

Hi, I am using saveTable() function in my code and the problem I am getting is that my table is constantly saved after every 20 seconds but after about 400 rows I start to get rows with only zeros…I am really confused…re…

---

## [Chunk loading possibility's](https://discourse.processing.org/t/chunk-loading-possibilitys/18146)

<div class="topic-metadata">

**Author:** [@Phaleron](https://discourse.processing.org/u/Phaleron)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 10:16pm UTC](https://discourse.processing.org/t/chunk-loading-possibilitys/18146 "2020-02-26T22:16:35Z")

</div>

Hi all, I am struggling a bit deciding what i should use with my chunk loading system. my initial idea was to cycle trough all possible locations around the player, check if the chunk already exist, if not, create a ne…

---

## [Why does this code run as desired but the flow of colors seems backwards](https://discourse.processing.org/t/why-does-this-code-run-as-desired-but-the-flow-of-colors-seems-backwards/18149)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 12\
**Last updated:** [February 26, 2020, 9:51pm UTC](https://discourse.processing.org/t/why-does-this-code-run-as-desired-but-the-flow-of-colors-seems-backwards/18149 "2020-02-26T21:51:39Z")

</div>

I guess this is primarily a question about flow of the program – aka what’s going on under the hood. The code does run and mouse interaction is as desired, but I don’t understand why. Probably something simple I’m not se…

---

## [How to check if an int array contains a number](https://discourse.processing.org/t/how-to-check-if-an-int-array-contains-a-number/18068)

<div class="topic-metadata">

**Author:** [@Yannik](https://discourse.processing.org/u/Yannik)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 7:14pm UTC](https://discourse.processing.org/t/how-to-check-if-an-int-array-contains-a-number/18068 "2020-02-26T19:14:21Z")

</div>

How can I check if an array contains a number? Here’s an example: int \[\] array = new int \[200\]; array\[0\] = int(random(0,200)); If(array.contains 20){ println(“20”); }

---

## [Class Extensions possible error](https://discourse.processing.org/t/class-extensions-possible-error/18148)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [February 26, 2020, 7:04pm UTC](https://discourse.processing.org/t/class-extensions-possible-error/18148 "2020-02-26T19:04:57Z")

</div>

Just wandering if this is a bug. I have a constructor called tab. then I have created a horizontal tab constructor which extends tab This class works seemingly fine but when I use the following constructor I am…

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

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