# Latest

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

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

**Page:** 538

---

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

---

## [How to Transfer Camera Image of Android to Processing](https://discourse.processing.org/t/how-to-transfer-camera-image-of-android-to-processing/7264)

<div class="topic-metadata">

**Author:** [@Two-World](https://discourse.processing.org/u/Two-World)\
**Replies:** 2\
**Last updated:** [January 8, 2019, 4:03am UTC](https://discourse.processing.org/t/how-to-transfer-camera-image-of-android-to-processing/7264 "2019-01-08T04:03:52Z")

</div>

I want to transfer the image from phone camera (Android) to processing in real time.Please someone tell me how to do it.

---

## [\[Lotta of Questions\] New to Raspberry](https://discourse.processing.org/t/lotta-of-questions-new-to-raspberry/7287)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 1\
**Last updated:** [January 8, 2019, 2:18am UTC](https://discourse.processing.org/t/lotta-of-questions-new-to-raspberry/7287 "2019-01-08T02:18:36Z")

</div>

How is it to PDE on a Raspeberry? Does it have something different / special? What should I know before to start? I am going to buy a Raspeberry P3 B+ for a school project about AI. Heres what it will have: Text to s…

---

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

---

## [IDEO Software Design Position (Cambridge, MA)](https://discourse.processing.org/t/ideo-software-design-position-cambridge-ma/7283)

<div class="topic-metadata">

**Author:** [@kaylagilbert](https://discourse.processing.org/u/kaylagilbert)\
**Replies:** 1\
**Last updated:** [January 7, 2019, 10:14pm UTC](https://discourse.processing.org/t/ideo-software-design-position-cambridge-ma/7283 "2019-01-07T22:14:24Z")

</div>

Global design firm IDEO is growing its software design group in Cambridge, MA, and is looking for a senior colleague to lead small, interdisciplinary teams, exploring and applying technologies to create human-centered so…

---

## [P5 game ball bouncing bug](https://discourse.processing.org/t/p5-game-ball-bouncing-bug/6768)

<div class="topic-metadata">

**Author:** [@avafgrey](https://discourse.processing.org/u/avafgrey)\
**Replies:** 2\
**Last updated:** [January 7, 2019, 9:23pm UTC](https://discourse.processing.org/t/p5-game-ball-bouncing-bug/6768 "2019-01-07T21:23:35Z")

</div>

I am trying to make a game with a ball that bounces off the platforms, but every once in a while the ball falls through the platform and I can’t figure out when or why. https://github.com/lizzybrooks/Bouncingball/blob/m…

---

## [Movie2Serial on Raspberry Pi (LED array)](https://discourse.processing.org/t/movie2serial-on-raspberry-pi-led-array/7036)

<div class="topic-metadata">

**Author:** [@BuffaloFan32](https://discourse.processing.org/u/BuffaloFan32)\
**Replies:** 1\
**Last updated:** [January 7, 2019, 9:07pm UTC](https://discourse.processing.org/t/movie2serial-on-raspberry-pi-led-array/7036 "2019-01-07T21:07:53Z")

</div>

I am new to the Raspberry Pi so I apologize in advance if I am missing something totally obvious. I am trying to play video on my LED WS2812 array. Currently, the array has 89 pixels per strip and 64 strips. In the pa…

---

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

---

## [GLSL ES shader version 3 on Android?](https://discourse.processing.org/t/glsl-es-shader-version-3-on-android/7279)

<div class="topic-metadata">

**Author:** [@scudly](https://discourse.processing.org/u/scudly)\
**Replies:** 0\
**Last updated:** [January 7, 2019, 7:03pm UTC](https://discourse.processing.org/t/glsl-es-shader-version-3-on-android/7279 "2019-01-07T19:03:23Z")

</div>

Does Processing for Android have support for glsl #version 300 es shaders? If so, how do we enable it? Desktop Java Processing seems to run them just fine even without adding PJOGL.profile = 3; as I’ve seen posted in a…

---

## [❄ Snow!](https://discourse.processing.org/t/snow/7156)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 2\
**Last updated:** [January 7, 2019, 6:12pm UTC](https://discourse.processing.org/t/snow/7156 "2019-01-07T18:12:44Z")

</div>

from random import randint class flake: def \_\_init\_\_ (self,x,y): self.vec = PVector(x,y) self.z = random(0,3) self.velY = map(self.z,0,3,0.5,1) self.velX = 0 def …

---

## [PCD @ LA Carpool](https://discourse.processing.org/t/pcd-la-carpool/7277)

<div class="topic-metadata">

**Author:** [@xinxin](https://discourse.processing.org/u/xinxin)\
**Replies:** 0\
**Last updated:** [January 7, 2019, 5:45pm UTC](https://discourse.processing.org/t/pcd-la-carpool/7277 "2019-01-07T17:45:23Z")

</div>

Hello, This thread is created for PCD @ LA attendees to self-organize carpool :red\_car: :family\_woman\_woman\_boy\_boy: The conference address is UCLA Broad Art Center, 240 Charles E. Young Dr N. Los Angeles, CA. The near…

---

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

---

## [Recursive Backtracking](https://discourse.processing.org/t/recursive-backtracking/6914)

<div class="topic-metadata">

**Author:** [@SineadF](https://discourse.processing.org/u/SineadF)\
**Replies:** 3\
**Last updated:** [January 6, 2019, 11:14pm UTC](https://discourse.processing.org/t/recursive-backtracking/6914 "2019-01-06T23:14:36Z")

</div>

Hello, I’ve been watching the Coding Trains Maze Generation videos (https://www.youtube.com/watch?v=\_p5IH0L63wo) that uses the depth-first search and recursive backtracking method to generate a maze. The video covers th…

---

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

---

## [How to take screenshots of the canvas?](https://discourse.processing.org/t/how-to-take-screenshots-of-the-canvas/6824)

<div class="topic-metadata">

**Author:** [@jnsjknn](https://discourse.processing.org/u/jnsjknn)\
**Replies:** 2\
**Last updated:** [January 6, 2019, 7:21pm UTC](https://discourse.processing.org/t/how-to-take-screenshots-of-the-canvas/6824 "2019-01-06T19:21:57Z")

</div>

Is there a way in the p5.js web editor to take and save several screenshots of the canvas automatically? For example every x frames or according to some other programmed rule?

---

## [Insert sketch in tumblr](https://discourse.processing.org/t/insert-sketch-in-tumblr/7252)

<div class="topic-metadata">

**Author:** [@ihi](https://discourse.processing.org/u/ihi)\
**Replies:** 2\
**Last updated:** [January 6, 2019, 9:46pm UTC](https://discourse.processing.org/t/insert-sketch-in-tumblr/7252 "2019-01-06T21:46:34Z")

</div>

Hi ! I am a beginner on processing. I have managed to do what I wanted, I have a code that works. But I can not put this code on Tumblr. I read a lot of pages about it but I can not do it. I do not understand if I have …

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

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