# Latest

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

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

**Page:** 212

---

## [Displaying randomised coloured squares](https://discourse.processing.org/t/displaying-randomised-coloured-squares/28824)

<div class="topic-metadata">

**Author:** [@hwahwa](https://discourse.processing.org/u/hwahwa)\
**Replies:** 3\
**Last updated:** [June 15, 2021, 1:15pm UTC](https://discourse.processing.org/t/displaying-randomised-coloured-squares/28824 "2021-06-15T13:15:09Z")

</div>

Hello, I’m trying to display randomised coloured squares but the issue is, when I use my code outside of a void draw() function, it works fine, but when I put it in a void draw() function, the colours of the squares cont…

---

## [Does anyone know what functions in kinectPV2 are similar to getRegisteredImage()?](https://discourse.processing.org/t/does-anyone-know-what-functions-in-kinectpv2-are-similar-to-getregisteredimage/30900)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 2\
**Last updated:** [June 28, 2021, 4:14am UTC](https://discourse.processing.org/t/does-anyone-know-what-functions-in-kinectpv2-are-similar-to-getregisteredimage/30900 "2021-06-28T04:14:46Z")

</div>

Hi everyone. I use depthtocolor but the effect is not so good!I feel that the RGB value above does not correspond well to the depth value.

---

## [pushMatrix() NullPointerException](https://discourse.processing.org/t/pushmatrix-nullpointerexception/30929)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 5\
**Last updated:** [June 27, 2021, 1:49pm UTC](https://discourse.processing.org/t/pushmatrix-nullpointerexception/30929 "2021-06-27T13:49:29Z")

</div>

Hello everyone, I am writing a game using processing in Eclipse, but I get a strange NullPointerException error when using pushMatrix in two of my classes. Even taking out the pushMatrix() and popMatrix() doesn’t work, c…

---

## [I need help with the color change of the dots in the image I created](https://discourse.processing.org/t/i-need-help-with-the-color-change-of-the-dots-in-the-image-i-created/30906)

<div class="topic-metadata">

**Author:** [@process](https://discourse.processing.org/u/process)\
**Replies:** 9\
**Last updated:** [June 27, 2021, 10:32pm UTC](https://discourse.processing.org/t/i-need-help-with-the-color-change-of-the-dots-in-the-image-i-created/30906 "2021-06-27T22:32:15Z")

</div>

I need help with the color change of the dots in the image I created I added a colorwheel, I create a point with mousepress and drop it to the ground. The color I choose from Colorwheel changes the color of the dots on …

---

## [P5 fft data without .play()? Is it is possible?](https://discourse.processing.org/t/p5-fft-data-without-play-is-it-is-possible/30932)

<div class="topic-metadata">

**Author:** [@atagger](https://discourse.processing.org/u/atagger)\
**Replies:** 5\
**Last updated:** [June 27, 2021, 7:15pm UTC](https://discourse.processing.org/t/p5-fft-data-without-play-is-it-is-possible/30932 "2021-06-27T19:15:20Z")

</div>

Is there a function or way to use the fft object without playing the sound? For example, using a loop to get the data out of the audio source before a sound is played? I know there are tools out there that can generate .…

---

## [Canny implementation](https://discourse.processing.org/t/canny-implementation/30923)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [June 27, 2021, 6:44am UTC](https://discourse.processing.org/t/canny-implementation/30923 "2021-06-27T06:44:16Z")

</div>

Here is a canny implementation. Its taken a while and I’ve learned a lot about graphics and glsl. I would like to further continue and more filters to this project and eventually make it a lib. I plan on working further…

---

## [Load and play sound in p5.js](https://discourse.processing.org/t/load-and-play-sound-in-p5-js/30926)

<div class="topic-metadata">

**Author:** [@cashew](https://discourse.processing.org/u/cashew)\
**Replies:** 4\
**Last updated:** [June 27, 2021, 4:40am UTC](https://discourse.processing.org/t/load-and-play-sound-in-p5-js/30926 "2021-06-27T04:40:30Z")

</div>

Hey there, I am new to processing and programming in general. What I want to do is load a sound file in Processing P5.js and play it. Where do I have to put my sound file in, like is there a folder on my Mac I need to…

---

## [Why are there two width and height values in the P5.js sketch canvas tag?](https://discourse.processing.org/t/why-are-there-two-width-and-height-values-in-the-p5-js-sketch-canvas-tag/30930)

<div class="topic-metadata">

**Author:** [@sspboyd](https://discourse.processing.org/u/sspboyd)\
**Replies:** 1\
**Last updated:** [June 27, 2021, 3:50am UTC](https://discourse.processing.org/t/why-are-there-two-width-and-height-values-in-the-p5-js-sketch-canvas-tag/30930 "2021-06-27T03:50:50Z")

</div>

The canvas objects created by p5.js have two width and height values. I hadn’t noticed this before and now I’m curious! The example below is the from the p5 editor. \<canvas id="defaultCanvas0" class="p5Canvas" style="w…

---

## [How can i send Raw Ethernet II frame?](https://discourse.processing.org/t/how-can-i-send-raw-ethernet-ii-frame/30928)

<div class="topic-metadata">

**Author:** [@particlerain](https://discourse.processing.org/u/particlerain)\
**Replies:** 1\
**Last updated:** [June 26, 2021, 7:42pm UTC](https://discourse.processing.org/t/how-can-i-send-raw-ethernet-ii-frame/30928 "2021-06-26T19:42:31Z")

</div>

Is there a possibility or even library where i can open a raw ip socket and send the pixel frame as raw ethernet data through the network in Processing? If not, how can i export the framebuffer to a “c” linux code where…

---

## [Looking for research resources](https://discourse.processing.org/t/looking-for-research-resources/30733)

<div class="topic-metadata">

**Author:** [@slow\_izzm](https://discourse.processing.org/u/slow_izzm)\
**Replies:** 8\
**Last updated:** [June 26, 2021, 6:11pm UTC](https://discourse.processing.org/t/looking-for-research-resources/30733 "2021-06-26T18:11:31Z")

</div>

I’m reaching out to the community in hopes of finding research materials on custom tools for educators to teach programming for the arts. I’m specifically interested in custom tools, interactive modules, academic papers…

---

## [Dynamic get(); method in Ketai library?](https://discourse.processing.org/t/dynamic-get-method-in-ketai-library/30899)

<div class="topic-metadata">

**Author:** [@thorj](https://discourse.processing.org/u/thorj)\
**Replies:** 3\
**Last updated:** [June 26, 2021, 3:39pm UTC](https://discourse.processing.org/t/dynamic-get-method-in-ketai-library/30899 "2021-06-26T15:39:40Z")

</div>

Hello, I’m new in Processing, and I try to create some funny pixelator app on Android APDE using camera on my Phone. To solve this task I’m using a Ketai library. Problem is when I try to get image from camera using get…

---

## [ADPE Install and Import Library](https://discourse.processing.org/t/adpe-install-and-import-library/30916)

<div class="topic-metadata">

**Author:** [@beryion](https://discourse.processing.org/u/beryion)\
**Replies:** 3\
**Last updated:** [June 26, 2021, 2:23pm UTC](https://discourse.processing.org/t/adpe-install-and-import-library/30916 "2021-06-26T14:23:34Z")

</div>

Ok… Just wanna make a few sine waves out of floats entirely on my phone. It took me months to figure out I had to being desktop mode to download the zip file from github. Now there’s the feature under “tools” in ADPE wer…

---

## [Using Vectors to Make a Bullet shoot to where I click with my mouse](https://discourse.processing.org/t/using-vectors-to-make-a-bullet-shoot-to-where-i-click-with-my-mouse/30915)

<div class="topic-metadata">

**Author:** [@Hunter9649](https://discourse.processing.org/u/Hunter9649)\
**Replies:** 2\
**Last updated:** [June 26, 2021, 7:51am UTC](https://discourse.processing.org/t/using-vectors-to-make-a-bullet-shoot-to-where-i-click-with-my-mouse/30915 "2021-06-26T07:51:17Z")

</div>

So I have been trying to make a game like a shooter similar to diep.io but its like a zombie thing. I could not figure out vectors because I’m too small brain. Anyone wanna help me. Here is the code I have so far. \<clas…

---

## [Voxel game mesh code](https://discourse.processing.org/t/voxel-game-mesh-code/30895)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 4\
**Last updated:** [June 26, 2021, 3:10am UTC](https://discourse.processing.org/t/voxel-game-mesh-code/30895 "2021-06-26T03:10:30Z")

</div>

Hello everyone, I am trying to code my first voxel game. So far, I have the 3d camera and cubes loading to the screen. However, when I try to expand the terrain, there is a lot of lag because Processing has to render a l…

---

## [One sided vertices in 3d graphics](https://discourse.processing.org/t/one-sided-vertices-in-3d-graphics/30922)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 0\
**Last updated:** [June 26, 2021, 3:04am UTC](https://discourse.processing.org/t/one-sided-vertices-in-3d-graphics/30922 "2021-06-26T03:04:02Z")

</div>

Hello everyone, I recently starting coding a voxel game in processing. However, there is a lot of lag whenever rendering the cubes, say 1000 of them, because cube faces are being drawn that the player cannot see (the cub…

---

## [How to play multiple of a gif in in different positions each loop?](https://discourse.processing.org/t/how-to-play-multiple-of-a-gif-in-in-different-positions-each-loop/30920)

<div class="topic-metadata">

**Author:** [@LuluLuna](https://discourse.processing.org/u/LuluLuna)\
**Replies:** 2\
**Last updated:** [June 26, 2021, 12:30am UTC](https://discourse.processing.org/t/how-to-play-multiple-of-a-gif-in-in-different-positions-each-loop/30920 "2021-06-26T00:30:36Z")

</div>

So what I’m trying to do is play a 5 frame gif of a star I made in multiple random positions. And every time the gif is finished playing it then plays in a new random position. This is the code I current have // Variab…

---

## [How to get and post request with processing for android](https://discourse.processing.org/t/how-to-get-and-post-request-with-processing-for-android/30918)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 0\
**Last updated:** [June 25, 2021, 11:45pm UTC](https://discourse.processing.org/t/how-to-get-and-post-request-with-processing-for-android/30918 "2021-06-25T23:45:45Z")

</div>

Hello guys. I am stuck on working with get and post methods with an URL. I have been programming this topic in processing.JAVA as follows: import http.requests.\*; JSONObject json; GetRequest leerTs = new GetRequest("…

---

## [Object disappears between Setup() and Draw()?](https://discourse.processing.org/t/object-disappears-between-setup-and-draw/30911)

<div class="topic-metadata">

**Author:** [@pbissell](https://discourse.processing.org/u/pbissell)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 8:30pm UTC](https://discourse.processing.org/t/object-disappears-between-setup-and-draw/30911 "2021-06-25T20:30:49Z")

</div>

I’m a little perplexed. Is there anything that happens between Setup() and Draw() in the sketch? This is my 20th or so ‘mover’ based project. No arrays on this one, but a basic Mover class (position, velocity, radius, e…

---

## [How to make a variable random in p5.js](https://discourse.processing.org/t/how-to-make-a-variable-random-in-p5-js/30892)

<div class="topic-metadata">

**Author:** [@x06](https://discourse.processing.org/u/x06)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 7:53pm UTC](https://discourse.processing.org/t/how-to-make-a-variable-random-in-p5-js/30892 "2021-06-25T19:53:39Z")

</div>

Hi, I’m playing around with a color wheel by kgrnbrg. I want to randomize the segmentCount so the color wheel can change shape and thereby adjusting the number of colors available. I can’t use random in the top and if …

---

## [Acceleration and processing 3.0](https://discourse.processing.org/t/acceleration-and-processing-3-0/30907)

<div class="topic-metadata">

**Author:** [@Halfrican911](https://discourse.processing.org/u/Halfrican911)\
**Replies:** 3\
**Last updated:** [June 25, 2021, 7:42pm UTC](https://discourse.processing.org/t/acceleration-and-processing-3-0/30907 "2021-06-25T19:42:24Z")

</div>

Hello everyone I’m trying to figure out how to get the processing ide to understand when my sensors sees acceleration in 1 m/s to the left on the x axis that is moves left in processing I have the roll pitch and yaw I ha…

---

## [Random vertex on diagonal line](https://discourse.processing.org/t/random-vertex-on-diagonal-line/30857)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 4:14pm UTC](https://discourse.processing.org/t/random-vertex-on-diagonal-line/30857 "2021-06-25T16:14:29Z")

</div>

Hi there! I am trying to do a design using random vertex, as you can see on the picture. I want to take a random point between X1 and X2, that is easy to do, but I don’t know what to do with y, because it has to be on…

---

## [HELP Want to redraw an image using lines but the graphics won't show](https://discourse.processing.org/t/help-want-to-redraw-an-image-using-lines-but-the-graphics-wont-show/30643)

<div class="topic-metadata">

**Author:** [@goblincaptain](https://discourse.processing.org/u/goblincaptain)\
**Replies:** 20\
**Last updated:** [June 11, 2021, 11:35am UTC](https://discourse.processing.org/t/help-want-to-redraw-an-image-using-lines-but-the-graphics-wont-show/30643 "2021-06-11T11:35:07Z")

</div>

My concept is to load an image and scan through all its pixels. For every pixel, find another pixel in the whole image that has the biggest color difference. Once the program detects the best pair(biggest difference), it…

---

## [G4P gui builder latest version doesn't work with older sketch](https://discourse.processing.org/t/g4p-gui-builder-latest-version-doesnt-work-with-older-sketch/30893)

<div class="topic-metadata">

**Author:** [@GvB](https://discourse.processing.org/u/GvB)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 12:54pm UTC](https://discourse.processing.org/t/g4p-gui-builder-latest-version-doesnt-work-with-older-sketch/30893 "2021-06-25T12:54:16Z")

</div>

Updating an older complex sketch I found out that the latest G4P gui builder is not compatible anymore. I installed an earlier version of the tool which works for now. Question is: is there some way to convert the ‘olde…

---

## [I want the PVector after rotate](https://discourse.processing.org/t/i-want-the-pvector-after-rotate/30744)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 6\
**Last updated:** [June 25, 2021, 10:55am UTC](https://discourse.processing.org/t/i-want-the-pvector-after-rotate/30744 "2021-06-25T10:55:24Z")

</div>

PVector v = new PVector(); void setup() { size(800, 800, P3D); } void draw() { background(255); push(); translate(0,0,0); v = new PVector(1, 10, 1); rotateZ(frameCount); pop(); println(v); } i …

---

## [Numpy with Trinket and-or with Python mode](https://discourse.processing.org/t/numpy-with-trinket-and-or-with-python-mode/19409)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 11\
**Last updated:** [June 25, 2021, 9:52am UTC](https://discourse.processing.org/t/numpy-with-trinket-and-or-with-python-mode/19409 "2021-06-25T09:52:22Z")

</div>

---

## [New Python Processing project: Py5](https://discourse.processing.org/t/new-python-processing-project-py5/30837)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 12\
**Last updated:** [June 25, 2021, 8:17am UTC](https://discourse.processing.org/t/new-python-processing-project-py5/30837 "2021-06-25T08:17:40Z")

</div>

I’ve been experimenting with py5. It’s a creative coding framework for Python 3.8 and up – a Python version of Processing – and potentially a new engine for Python Mode in the Processing IDE. Internally, py5 employs Proc…

---

## [Texture mapping for lit objects?](https://discourse.processing.org/t/texture-mapping-for-lit-objects/30897)

<div class="topic-metadata">

**Author:** [@modusponens](https://discourse.processing.org/u/modusponens)\
**Replies:** 3\
**Last updated:** [June 25, 2021, 2:17am UTC](https://discourse.processing.org/t/texture-mapping-for-lit-objects/30897 "2021-06-25T02:17:28Z")

</div>

Is it possible in p5 to use a texture as a normal map, or as a specular map, etc., and have that affect the way an object appears and interacts with lights? I know that there are functions like normalMaterial and specula…

---

## [Changing shapes for mouseX movement](https://discourse.processing.org/t/changing-shapes-for-mousex-movement/30889)

<div class="topic-metadata">

**Author:** [@afuria](https://discourse.processing.org/u/afuria)\
**Replies:** 5\
**Last updated:** [June 25, 2021, 2:11am UTC](https://discourse.processing.org/t/changing-shapes-for-mousex-movement/30889 "2021-06-25T02:11:01Z")

</div>

Hello, I am new to P5.js and have made a simple sketch with an ellipse shape that follows the mouseX movement. I would like to understand how to draw a different shape at mouseX based on three different mouseX movements…

---

## [Is there a way to get runtime state for a new thread()](https://discourse.processing.org/t/is-there-a-way-to-get-runtime-state-for-a-new-thread/30840)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 4\
**Last updated:** [June 24, 2021, 8:55pm UTC](https://discourse.processing.org/t/is-there-a-way-to-get-runtime-state-for-a-new-thread/30840 "2021-06-24T20:55:04Z")

</div>

I am reading a byte data stream from a serial port. This data stream is from a Bluetooth LE (BLE) Scanner application, so when it’s detecting 10 more BLE devices, and their advertising data packets, we looking at a good …

---

## [Wolfram Physics in py5](https://discourse.processing.org/t/wolfram-physics-in-py5/30887)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [June 24, 2021, 1:27pm UTC](https://discourse.processing.org/t/wolfram-physics-in-py5/30887 "2021-06-24T13:27:15Z")

</div>

Previously @solub presented his work on Wolfram Physics as processing.py sketches. He will no doubt be interested in my translation of one of his sketches to run on py5. ### A basic implementation of rule WM148 in py5 m…

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

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