# Processing

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

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

**Page:** 332

---

## [How to find information in 'Processing Core Javadoc'?](https://discourse.processing.org/t/how-to-find-information-in-processing-core-javadoc/7236)

<div class="topic-metadata">

**Author:** [@amaia](https://discourse.processing.org/u/amaia)\
**Replies:** 2\
**Last updated:** [January 9, 2019, 1:08pm UTC](https://discourse.processing.org/t/how-to-find-information-in-processing-core-javadoc/7236 "2019-01-09T13:08:50Z")

</div>

Hello: In ‘Processing Core Javadoc’ I can read about IntList, PImage, or Table even if I don’t understand everything (I´m newbie…), but sometimes it is very difficult to find what I want Imagine the last scenario: I…

---

## [Perform a AABB hit test in 3D](https://discourse.processing.org/t/perform-a-aabb-hit-test-in-3d/7319)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 4\
**Last updated:** [January 9, 2019, 9:42am UTC](https://discourse.processing.org/t/perform-a-aabb-hit-test-in-3d/7319 "2019-01-09T09:42:47Z")

</div>

Is it possible to do a point hit test on a axis aligned bounding box after things like rotation are applied? Here is one of my current attempts, but i’m not sure if i’m after something that is possible at all. int w =…

---

## [Proceesing noob/amataeur help forum: Creating a specific program that involves an invisible square](https://discourse.processing.org/t/proceesing-noob-amataeur-help-forum-creating-a-specific-program-that-involves-an-invisible-square/7332)

<div class="topic-metadata">

**Author:** [@Sparktrooper55](https://discourse.processing.org/u/Sparktrooper55)\
**Replies:** 10\
**Last updated:** [January 9, 2019, 8:03am UTC](https://discourse.processing.org/t/proceesing-noob-amataeur-help-forum-creating-a-specific-program-that-involves-an-invisible-square/7332 "2019-01-09T08:03:28Z")

</div>

In processing, when it comes to creating projects or programs, I am not an expert whatsoever and I am more of a complete noob when it comes to this program and so I am trying to figure out a way to create a sketch where …

---

## [Communications between Processing and Arduino IDE](https://discourse.processing.org/t/communications-between-processing-and-arduino-ide/7346)

<div class="topic-metadata">

**Author:** [@ArduinoKer](https://discourse.processing.org/u/ArduinoKer)\
**Replies:** 1\
**Last updated:** [January 9, 2019, 7:44am UTC](https://discourse.processing.org/t/communications-between-processing-and-arduino-ide/7346 "2019-01-09T07:44:40Z")

</div>

Hello everyone, I am trying to learn how to communicate between my Processing application and my Arduino code together. I want to ask a simple question and that is, is it possible to use the exact same variable name wit…

---

## [Noob help: trying to create a certain program in pde](https://discourse.processing.org/t/noob-help-trying-to-create-a-certain-program-in-pde/7311)

<div class="topic-metadata">

**Author:** [@Captainsparkles](https://discourse.processing.org/u/Captainsparkles)\
**Replies:** 7\
**Last updated:** [January 9, 2019, 7:17am UTC](https://discourse.processing.org/t/noob-help-trying-to-create-a-certain-program-in-pde/7311 "2019-01-09T07:17:30Z")

</div>

I’m a total noob when it comes to processing and so I am trying to figure out a way to create a sketch where an invisible square exists, and the user must find it by hovering the mouse throughout the canvas. When the mou…

---

## [Render grass like Minecraft, Zelda OOT](https://discourse.processing.org/t/render-grass-like-minecraft-zelda-oot/7340)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 0\
**Last updated:** [January 9, 2019, 2:06am UTC](https://discourse.processing.org/t/render-grass-like-minecraft-zelda-oot/7340 "2019-01-09T02:06:49Z")

</div>

Hello Forum. I am trying to render grass and other visuals similar to the method used in Minecraft and Zelda Ocarina of Time. Normally in P3D the invisible part of the image renders over top of the the other images, …

---

## [File Listing Order](https://discourse.processing.org/t/file-listing-order/7148)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 41\
**Last updated:** [January 8, 2019, 11:26pm UTC](https://discourse.processing.org/t/file-listing-order/7148 "2019-01-08T23:26:18Z")

</div>

Hi, I’m curious how Processing decides the order of files in a directory listing and if there is a way to sort alphabetical. I’m using the sample code below and the listing doesn’t seem to be alphabetical or by date mod…

---

## [Processing won't open after Win 10 updates! DELETING PREFERENCES FIXED IT!](https://discourse.processing.org/t/processing-wont-open-after-win-10-updates-deleting-preferences-fixed-it/6958)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 4\
**Last updated:** [January 8, 2019, 7:26pm UTC](https://discourse.processing.org/t/processing-wont-open-after-win-10-updates-deleting-preferences-fixed-it/6958 "2019-01-08T19:26:39Z")

</div>

Been using this same computer for over a year. normally not connected to internet. connected yesterday and it asked to run updates this morning. After it restarted Processing logo 2.2.1 comes up , then goes away , task…

---

## [Better grid Performance](https://discourse.processing.org/t/better-grid-performance/7314)

<div class="topic-metadata">

**Author:** [@blue-man](https://discourse.processing.org/u/blue-man)\
**Replies:** 16\
**Last updated:** [January 8, 2019, 6:17pm UTC](https://discourse.processing.org/t/better-grid-performance/7314 "2019-01-08T18:17:42Z")

</div>

Hello there, I createt a scaleable grid, that have no funktion at the Moment. But it is Scaleable and you can move it. Now my problem. I want to generate a Grid with 1000\*1000 rectangles (or more), but 1 000 000 rect…

---

## [Olympic rings, how to make them problems?](https://discourse.processing.org/t/olympic-rings-how-to-make-them-problems/7321)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 1\
**Last updated:** [January 8, 2019, 2:49pm UTC](https://discourse.processing.org/t/olympic-rings-how-to-make-them-problems/7321 "2019-01-08T14:49:23Z")

</div>

Hello, I’m trying to make the Olympic rings but I don’t know why the rings doesn’t make around just the stroke and instead just filling up. Would be honored if anybody could explain what I’m doing wrong? (Newbie still) …

---

## [Color not showing up](https://discourse.processing.org/t/color-not-showing-up/7289)

<div class="topic-metadata">

**Author:** [@Jrekz](https://discourse.processing.org/u/Jrekz)\
**Replies:** 8\
**Last updated:** [January 8, 2019, 1:04pm UTC](https://discourse.processing.org/t/color-not-showing-up/7289 "2019-01-08T13:04:38Z")

</div>

After I click inside the moving cube, the hit count rises but the color doesn’t change. However, when I click outside it the color changes to red and the miss count increases (it should be like that). What could cause t…

---

## [Help with creating smooth 2D movement](https://discourse.processing.org/t/help-with-creating-smooth-2d-movement/7272)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.processing.org/u/mono)\
**Replies:** 4\
**Last updated:** [January 8, 2019, 12:45pm UTC](https://discourse.processing.org/t/help-with-creating-smooth-2d-movement/7272 "2019-01-08T12:45:25Z")

</div>

I have been attempting to implement some “smooth feeling” movement for a top-down action type game. The goal is to have the player slow down when changing direction and when stopping. The problem I have is the movement f…

---

## [Smooth Moving code](https://discourse.processing.org/t/smooth-moving-code/7126)

<div class="topic-metadata">

**Author:** [@MichaelPCgamer](https://discourse.processing.org/u/MichaelPCgamer)\
**Replies:** 9\
**Last updated:** [January 8, 2019, 7:37am UTC](https://discourse.processing.org/t/smooth-moving-code/7126 "2019-01-08T07:37:54Z")

</div>

I’m making a game separate from this specific code I just can’t get right… It’s for using the arrow keys to move around smoothly. But there seems to be a bad bug happening. float x = 100; float y = 100; void setup()…

---

## [Noob help: Making a circle grow by a mouse hovering over it and making it shrink when the mouse cursor is off of it](https://discourse.processing.org/t/noob-help-making-a-circle-grow-by-a-mouse-hovering-over-it-and-making-it-shrink-when-the-mouse-cursor-is-off-of-it/7299)

<div class="topic-metadata">

**Author:** [@Sparktrooper55](https://discourse.processing.org/u/Sparktrooper55)\
**Replies:** 2\
**Last updated:** [January 8, 2019, 6:24am UTC](https://discourse.processing.org/t/noob-help-making-a-circle-grow-by-a-mouse-hovering-over-it-and-making-it-shrink-when-the-mouse-cursor-is-off-of-it/7299 "2019-01-08T06:24:52Z")

</div>

I’m a noob at pde and I’m trying to figure out to make a circle grow when the mouse is hovering over it and make it shrink when the mouse cursor is off of it

---

## [Making part of a PImage transparent](https://discourse.processing.org/t/making-part-of-a-pimage-transparent/7295)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 9\
**Last updated:** [January 8, 2019, 4:58am UTC](https://discourse.processing.org/t/making-part-of-a-pimage-transparent/7295 "2019-01-08T04:58:00Z")

</div>

I would like to map an image to a sphere and have part of it transparent, but I can’t figure out how to make the image transparent. Is this possible? If not what would be the best way to do something like this. Thanks.

---

## [Collision between moving objects](https://discourse.processing.org/t/collision-between-moving-objects/7274)

<div class="topic-metadata">

**Author:** [@bernbernm](https://discourse.processing.org/u/bernbernm)\
**Replies:** 1\
**Last updated:** [January 7, 2019, 11:47pm UTC](https://discourse.processing.org/t/collision-between-moving-objects/7274 "2019-01-07T23:47:46Z")

</div>

Hey i’m using PImage to make my game and i’m trying to record a collision between my caterpillar and the birds to reset the score back to 0 if it happens. I know how to record collision with basic shapes such as rect bu…

---

## [How can i implement enemy shooting in this game?](https://discourse.processing.org/t/how-can-i-implement-enemy-shooting-in-this-game/6949)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 4\
**Last updated:** [January 7, 2019, 8:20pm UTC](https://discourse.processing.org/t/how-can-i-implement-enemy-shooting-in-this-game/6949 "2019-01-07T20:20:19Z")

</div>

Hi, I’ve been wondering how can I implement shooting to objects in my game named “obsticles”? Here is the code; (sry for like 100 tabs of it) int maxBCount = 1000; int obsticleCount = 10; Bullet b\[\] = new Bullet\[maxBCo…

---

## [\[SOLVED\] Scalable grid with rectangles](https://discourse.processing.org/t/solved-scalable-grid-with-rectangles/7256)

<div class="topic-metadata">

**Author:** [@blue-man](https://discourse.processing.org/u/blue-man)\
**Replies:** 6\
**Last updated:** [January 7, 2019, 2:24pm UTC](https://discourse.processing.org/t/solved-scalable-grid-with-rectangles/7256 "2019-01-07T14:24:27Z")

</div>

Hello my friends, I tried to create a grid with a scaleable size. So I wanted to use this few lines to create the rectangles. for (field2 = 0; field2 \< x; field2 = field2 + 1){ Box\[\] box = { new Box(10+ size/…

---

## [Can someone try to find this library in Processing?](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488)

<div class="topic-metadata">

**Author:** [@apratt](https://discourse.processing.org/u/apratt)\
**Replies:** 11\
**Last updated:** [January 7, 2019, 1:29pm UTC](https://discourse.processing.org/t/can-someone-try-to-find-this-library-in-processing/1488 "2019-01-07T13:29:26Z")

</div>

No matter what I do, Processing just won’t find this library. No matter where I put it or how many renames I do, Processing can’t find it and I can’t find an alternative anywhere. I basically need it for the “Descriptive…

---

## [Path Finding Tiles Grid](https://discourse.processing.org/t/path-finding-tiles-grid/5395)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 3\
**Last updated:** [January 7, 2019, 10:49am UTC](https://discourse.processing.org/t/path-finding-tiles-grid/5395 "2019-01-07T10:49:14Z")

</div>

I’m making a new path finding enemy, that checks the tiles around him to see if he can walk on them. Sadly he doesn’t move or moves onto the wrong square. Can anyone tell me why my code not working? here the main page, …

---

## [Minim / Sound libraries](https://discourse.processing.org/t/minim-sound-libraries/6860)

<div class="topic-metadata">

**Author:** [@Dia](https://discourse.processing.org/u/Dia)\
**Replies:** 2\
**Last updated:** [January 7, 2019, 9:46am UTC](https://discourse.processing.org/t/minim-sound-libraries/6860 "2019-01-07T09:46:02Z")

</div>

Hello, i’m building a Sampler / Sequencer using the minim library. I’d like to add the option to add reverb to the tracks, seeing that the “Sound” library had one i tried to use it but sadly they seem not to work well t…

---

## [Using shapes as a video player](https://discourse.processing.org/t/using-shapes-as-a-video-player/7149)

<div class="topic-metadata">

**Author:** [@thedurf18](https://discourse.processing.org/u/thedurf18)\
**Replies:** 11\
**Last updated:** [January 7, 2019, 9:41am UTC](https://discourse.processing.org/t/using-shapes-as-a-video-player/7149 "2019-01-07T09:41:25Z")

</div>

I’m trying to use shapes as part of a video player. For example, I code for an ellipse at a certain part in the window, and you only see the video through this ellipse. And then, take the pixels that are contained within…

---

## [Movie loading and playing issue](https://discourse.processing.org/t/movie-loading-and-playing-issue/6880)

<div class="topic-metadata">

**Author:** [@sumaghos](https://discourse.processing.org/u/sumaghos)\
**Replies:** 5\
**Last updated:** [January 7, 2019, 9:36am UTC](https://discourse.processing.org/t/movie-loading-and-playing-issue/6880 "2019-01-07T09:36:19Z")

</div>

I am using the below simple code to load and play a movie file, which is under “data” folder import processing.video.\*; Movie myMovie; void setup() { size(1920, 1080); myMovie = new Movie(this, "clouds.mpg"); pri…

---

## [Circle grows on left side of screen, not right](https://discourse.processing.org/t/circle-grows-on-left-side-of-screen-not-right/7243)

<div class="topic-metadata">

**Author:** [@Neutron](https://discourse.processing.org/u/Neutron)\
**Replies:** 6\
**Last updated:** [January 7, 2019, 12:25am UTC](https://discourse.processing.org/t/circle-grows-on-left-side-of-screen-not-right/7243 "2019-01-07T00:25:43Z")

</div>

Hello, I’m new to programming and I was just playing around with processing. I created a program where a circle follows your mouse and grows if it touches the edges of the screen. For some reason it works only when the …

---

## [Unsure if I'm programming this game to restart properly](https://discourse.processing.org/t/unsure-if-im-programming-this-game-to-restart-properly/7260)

<div class="topic-metadata">

**Author:** [@francium401](https://discourse.processing.org/u/francium401)\
**Replies:** 1\
**Last updated:** [January 7, 2019, 12:12am UTC](https://discourse.processing.org/t/unsure-if-im-programming-this-game-to-restart-properly/7260 "2019-01-07T00:12:53Z")

</div>

I attempted to reset the relevant variables back to it’s initial value whenever the space-bar button is pressed after the GAME OVER screen comes up, but something about it just isn’t right. After a second round of the ga…

---

## [Problem with passing vectors to next](https://discourse.processing.org/t/problem-with-passing-vectors-to-next/7077)

<div class="topic-metadata">

**Author:** [@Taxicletter](https://discourse.processing.org/u/Taxicletter)\
**Replies:** 25\
**Last updated:** [January 7, 2019, 12:00am UTC](https://discourse.processing.org/t/problem-with-passing-vectors-to-next/7077 "2019-01-07T00:00:44Z")

</div>

Hi, I have been working on an idea a while ago and want to pick up where I left. What I want to create is some kind of self-generating irregular pattern, existing of different polygons. I wrote the code for a random po…

---

## [Class arrays for my game](https://discourse.processing.org/t/class-arrays-for-my-game/7253)

<div class="topic-metadata">

**Author:** [@bernbernm](https://discourse.processing.org/u/bernbernm)\
**Replies:** 6\
**Last updated:** [January 6, 2019, 11:15pm UTC](https://discourse.processing.org/t/class-arrays-for-my-game/7253 "2019-01-06T23:15:43Z")

</div>

Hey, i’m new to processing and programming in general and i’m trying to do a game where there are birds coming for each edge of the screen at random heights with different speeds. The problem with this is that when i try…

---

## [Shapes not in their correct place](https://discourse.processing.org/t/shapes-not-in-their-correct-place/6918)

<div class="topic-metadata">

**Author:** [@Ginazx](https://discourse.processing.org/u/Ginazx)\
**Replies:** 3\
**Last updated:** [January 6, 2019, 11:11pm UTC](https://discourse.processing.org/t/shapes-not-in-their-correct-place/6918 "2019-01-06T23:11:37Z")

</div>

Hiya. I just need help understanding this code. I found this code online in order to create some moving blobs float yOffset = 0.0; Blob blobz1 = new Blob(); Blob bloz2 = new Blob(); void setup() { size(800, 8…

---

## ["dvd cannot be resolved to a variable"](https://discourse.processing.org/t/dvd-cannot-be-resolved-to-a-variable/6876)

<div class="topic-metadata">

**Author:** [@C0R4L](https://discourse.processing.org/u/C0R4L)\
**Replies:** 2\
**Last updated:** [January 6, 2019, 10:20pm UTC](https://discourse.processing.org/t/dvd-cannot-be-resolved-to-a-variable/6876 "2019-01-06T22:20:33Z")

</div>

I’ve got a different problem while trying to add a sprite and it says "dvd cannot be resolved to a variable float x = random(200,300); // x location of square float y = random(200,300); // y location of square flo…

---

## ["Mirroring" PShape objects (translation / rotation issue)](https://discourse.processing.org/t/mirroring-pshape-objects-translation-rotation-issue/7099)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 6\
**Last updated:** [January 6, 2019, 5:55pm UTC](https://discourse.processing.org/t/mirroring-pshape-objects-translation-rotation-issue/7099 "2019-01-06T17:55:17Z")

</div>

Hi, I’m trying to “mirror” a PShape object like in the picture below: The tricky part is not to invert the shape but to rotate it (and maybe translating it ?) so as it sticks to the preceding shape. I’ve been trying …

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

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