# Latest

**URL:** https://discourse.processing.org/latest.md?page=251

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

**Page:** 252

---

## [Chaining GLSL frag shaders](https://discourse.processing.org/t/chaining-glsl-frag-shaders/28006)

<div class="topic-metadata">

**Author:** [@rikitiki](https://discourse.processing.org/u/rikitiki)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 5:07pm UTC](https://discourse.processing.org/t/chaining-glsl-frag-shaders/28006 "2021-02-23T17:07:41Z")

</div>

Hello, I’m attempting to chain some very simple fragment shaders and I’m unsure what I’m doing wrong. I’m following the concept outlined in the readme posted by cansik in this bloom filter: https://github.com/cansik/pr…

---

## [Positive counter (Click game)](https://discourse.processing.org/t/positive-counter-click-game/28027)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 4\
**Last updated:** [February 23, 2021, 7:50pm UTC](https://discourse.processing.org/t/positive-counter-click-game/28027 "2021-02-23T19:50:27Z")

</div>

Hello, I would like to create a counter which, each time I press correctly on an edge increases by 1, but that if I press next to it or if I take too long then the counter returns to 0. example if I press correctly on 5…

---

## [Drawing on a Spheres texture, Making it go over the edge](https://discourse.processing.org/t/drawing-on-a-spheres-texture-making-it-go-over-the-edge/28017)

<div class="topic-metadata">

**Author:** [@Gollink](https://discourse.processing.org/u/Gollink)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 2:24pm UTC](https://discourse.processing.org/t/drawing-on-a-spheres-texture-making-it-go-over-the-edge/28017 "2021-02-23T14:24:34Z")

</div>

Im trying to make randomised marbles based on particles that draw lines on a texture. But Im trying to make a particle go over the edge of the texture so to speak. But I just can’t wrap my head around the math that I nee…

---

## [3d-sine-cosine-in-3d from p5js to Processing 3.x](https://discourse.processing.org/t/3d-sine-cosine-in-3d-from-p5js-to-processing-3-x/28022)

<div class="topic-metadata">

**Author:** [@HerClau](https://discourse.processing.org/u/HerClau)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 2:17pm UTC](https://discourse.processing.org/t/3d-sine-cosine-in-3d-from-p5js-to-processing-3-x/28022 "2021-02-23T14:17:42Z")

</div>

I am trying to reproduce the example “Sine Cosine in 3D” from the site at the beginning of the skecht. I show you how far I have come. But it is very far from reproducing the p5js skecht. Could you guide me to reach th…

---

## [Menu for a game](https://discourse.processing.org/t/menu-for-a-game/28005)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 2\
**Last updated:** [February 23, 2021, 8:47am UTC](https://discourse.processing.org/t/menu-for-a-game/28005 "2021-02-23T08:47:40Z")

</div>

Hello, after multiple help and time I have this code: int wait = 1000; int lastTime = 0; int score = 0; int bonus = 1; int square\_size = 50; float square\_x; float square\_y; void setup() { fullScreen(); } void dr…

---

## [Can someone help me with getting this clock right?](https://discourse.processing.org/t/can-someone-help-me-with-getting-this-clock-right/28012)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 9:25am UTC](https://discourse.processing.org/t/can-someone-help-me-with-getting-this-clock-right/28012 "2021-02-23T09:25:11Z")

</div>

At the moment, I have dots/ellipses around the clock as marks for the numbers. I’m trying to make them as lines, like a normal analog clock has, but I’m not sure how to do this. So how do I make the dots/ellipses as line…

---

## [P5 makes me crazy！](https://discourse.processing.org/t/p5-makes-me-crazy/27907)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 7\
**Last updated:** [February 23, 2021, 8:23am UTC](https://discourse.processing.org/t/p5-makes-me-crazy/27907 "2021-02-23T08:23:43Z")

</div>

let planeImage var easycam; let eyex=200, eyey=100, eyez=200; let cx=100, cy=10, cz=100; let angle = 339; let dx = 1.0, dy=1.0, dz = 1.0; let pg =\[\]; let tv; let p1, p2, p3, p4, p55, p6, p7, p8; let d1, d2, d3, d4, d5…

---

## [P5JS editor very slow in projects ~100 lines](https://discourse.processing.org/t/p5js-editor-very-slow-in-projects-100-lines/27992)

<div class="topic-metadata">

**Author:** [@Ariadne](https://discourse.processing.org/u/Ariadne)\
**Replies:** 7\
**Last updated:** [February 23, 2021, 7:58am UTC](https://discourse.processing.org/t/p5js-editor-very-slow-in-projects-100-lines/27992 "2021-02-23T07:58:15Z")

</div>

The P5JS editor is very laggy when it has to handle projects around 100 lines of code. And by “very”, I mean that the editor takes around a minute to run the code, and typing a character takes a few seconds for the chara…

---

## [Gradient Shape Grid](https://discourse.processing.org/t/gradient-shape-grid/27604)

<div class="topic-metadata">

**Author:** [@flipercliper](https://discourse.processing.org/u/flipercliper)\
**Replies:** 15\
**Last updated:** [February 23, 2021, 5:31am UTC](https://discourse.processing.org/t/gradient-shape-grid/27604 "2021-02-23T05:31:57Z")

</div>

Hi everyone! New to the forum but have been following you for a while and you all are doing a gret job with the open source. I’ve been doing some simple projects with processing but this is quite tricky for me… I need …

---

## [Cannot find 'length' of undefined](https://discourse.processing.org/t/cannot-find-length-of-undefined/28008)

<div class="topic-metadata">

**Author:** [@adworetzky](https://discourse.processing.org/u/adworetzky)\
**Replies:** 2\
**Last updated:** [February 23, 2021, 12:25am UTC](https://discourse.processing.org/t/cannot-find-length-of-undefined/28008 "2021-02-23T00:25:57Z")

</div>

I’m trying to get my noisy type generator to iterate over multiple letters. But I seem to be stuck at the 2dimesional array. It keeps throwing the error “Uncaught TypeError: Cannot read property ‘length’ of undefined (sk…

---

## [Convert UDP packet to floats?](https://discourse.processing.org/t/convert-udp-packet-to-floats/27843)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 17\
**Last updated:** [February 22, 2021, 8:05pm UTC](https://discourse.processing.org/t/convert-udp-packet-to-floats/27843 "2021-02-22T20:05:17Z")

</div>

Hello everyone, I’m working with UDP for the first time, using a program called opentrack which sends out packets of bytes over UDP. I can receive the packets in processing, but I’m having trouble figuring out to convert…

---

## [Live Face Tracking (sans OpenCV)](https://discourse.processing.org/t/live-face-tracking-sans-opencv/28010)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 0\
**Last updated:** [February 22, 2021, 9:38pm UTC](https://discourse.processing.org/t/live-face-tracking-sans-opencv/28010 "2021-02-22T21:38:03Z")

</div>

Hello everyone, This technique is for anyone wanting to do some pretty decent face tracking with their webcam. I was not happy with the accuracy of OpenCV, so I came up with another method, it involves processing and tw…

---

## [Flower Game: P5 audio does not play on safari, and crackles terribly on android](https://discourse.processing.org/t/flower-game-p5-audio-does-not-play-on-safari-and-crackles-terribly-on-android/27879)

<div class="topic-metadata">

**Author:** [@Persica](https://discourse.processing.org/u/Persica)\
**Replies:** 3\
**Last updated:** [February 22, 2021, 9:29pm UTC](https://discourse.processing.org/t/flower-game-p5-audio-does-not-play-on-safari-and-crackles-terribly-on-android/27879 "2021-02-22T21:29:04Z")

</div>

Hello! This is my first post and I am a beginner P5.js user. I made a little game where you grow a flower which can be accessed here: https://autoglyphic.com/petitchidish/flowergame.html (audio plays as the flower de…

---

## [List of flaws with android mode build process and how to resolve them](https://discourse.processing.org/t/list-of-flaws-with-android-mode-build-process-and-how-to-resolve-them/27947)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 10\
**Last updated:** [February 22, 2021, 8:40pm UTC](https://discourse.processing.org/t/list-of-flaws-with-android-mode-build-process-and-how-to-resolve-them/27947 "2021-02-22T20:40:40Z")

</div>

Back at coding after a bit of a hiatus, I’d gotten a little burnt out, plus our university reduced its hours a whole lot because of coronavirus so I wasnt able to get online as much. I have been trying to produce apps f…

---

## [Read data from Google Sheets](https://discourse.processing.org/t/read-data-from-google-sheets/28001)

<div class="topic-metadata">

**Author:** [@benjaminmarkus](https://discourse.processing.org/u/benjaminmarkus)\
**Replies:** 1\
**Last updated:** [February 22, 2021, 6:51pm UTC](https://discourse.processing.org/t/read-data-from-google-sheets/28001 "2021-02-22T18:51:34Z")

</div>

Is there a way to pull data into a p5js sketch from a Google Sheet? I plan to host my sketch on GitHub.

---

## [P5 Delay Sound without User Interaction](https://discourse.processing.org/t/p5-delay-sound-without-user-interaction/27890)

<div class="topic-metadata">

**Author:** [@karenmsn](https://discourse.processing.org/u/karenmsn)\
**Replies:** 1\
**Last updated:** [February 22, 2021, 6:48pm UTC](https://discourse.processing.org/t/p5-delay-sound-without-user-interaction/27890 "2021-02-22T18:48:21Z")

</div>

Hi! I’m working on a project involving Posenet where body movement triggers sound processing. So far I have the nose panning audio from left to right and the left wrist’s vertical motion causing a delay on a bell sound. …

---

## [Score and score multiplier for a clicker](https://discourse.processing.org/t/score-and-score-multiplier-for-a-clicker/27994)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 2\
**Last updated:** [February 22, 2021, 4:28pm UTC](https://discourse.processing.org/t/score-and-score-multiplier-for-a-clicker/27994 "2021-02-22T16:28:20Z")

</div>

Hello, with this code I would like there to be a counter every time I press a square, but if I put too long or if I press next to it the counter goes back to 0 and even if it is possible a score multiplier, imagine tha…

---

## [QueasyCam FOV problem](https://discourse.processing.org/t/queasycam-fov-problem/27996)

<div class="topic-metadata">

**Author:** [@yeppii](https://discourse.processing.org/u/yeppii)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 1:15pm UTC](https://discourse.processing.org/t/queasycam-fov-problem/27996 "2021-02-22T13:15:53Z")

</div>

I am making a game, and I am using queasycam as the camera library. I am getting this output when I run the game: It should render the surface fully but its showing the surface like that. What can I do to solve this?

---

## [Perlin Noise Precision](https://discourse.processing.org/t/perlin-noise-precision/27999)

<div class="topic-metadata">

**Author:** [@cfloutier](https://discourse.processing.org/u/cfloutier)\
**Replies:** 0\
**Last updated:** [February 22, 2021, 12:59pm UTC](https://discourse.processing.org/t/perlin-noise-precision/27999 "2021-02-22T12:59:48Z")

</div>

Hello all? i’m glad to be part of the processing community. and i’ll try to help my best. I’ve got recent issues using the noise function. the precision was not excellent. for instance a simple curve taken from the noi…

---

## [Announcing Processing Community Day Japan 2021!](https://discourse.processing.org/t/announcing-processing-community-day-japan-2021/27660)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 3\
**Last updated:** [February 22, 2021, 10:19am UTC](https://discourse.processing.org/t/announcing-processing-community-day-japan-2021/27660 "2021-02-22T10:19:28Z")

</div>

We are “officially” launching Processing Community Day Japan scheduled on February 20 and 21! While most of the streaming contents will be in Japanese, we are preparing online galleries where anyone can contribute so …

---

## [Teacher Position Open at EdTech Startup Teaching Math Using P5](https://discourse.processing.org/t/teacher-position-open-at-edtech-startup-teaching-math-using-p5/27991)

<div class="topic-metadata">

**Author:** [@StriveMath](https://discourse.processing.org/u/StriveMath)\
**Replies:** 1\
**Last updated:** [February 22, 2021, 6:41am UTC](https://discourse.processing.org/t/teacher-position-open-at-edtech-startup-teaching-math-using-p5/27991 "2021-02-22T06:41:48Z")

</div>

Strive (https://www.strivemath.com/) is a new EdTech startup based in Singapore. We teach primary and high school math through code. We create fun and inspirational coding projects in P5JS that are specialised in the sch…

---

## [Animation simple code](https://discourse.processing.org/t/animation-simple-code/27988)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 0\
**Last updated:** [February 22, 2021, 4:12am UTC](https://discourse.processing.org/t/animation-simple-code/27988 "2021-02-22T04:12:54Z")

</div>

nice animation with si // https://processing.org/examples/tree.html // Recursive Tree by Daniel Shiffman. // kll add: // make dynamic width, and color brown to green // add mouseY move sun and color sun and backgroun…

---

## [P5JS error showing up](https://discourse.processing.org/t/p5js-error-showing-up/27904)

<div class="topic-metadata">

**Author:** [@Ariadne](https://discourse.processing.org/u/Ariadne)\
**Replies:** 9\
**Last updated:** [February 22, 2021, 4:08am UTC](https://discourse.processing.org/t/p5js-error-showing-up/27904 "2021-02-22T04:08:10Z")

</div>

So, I am trying to recreate the game of life in p5js. And for some reason, the official p5js web editor raises some sort of error in my code, which I have inspected thoroughly: const segmentSize = 25; class Point { …

---

## [Clickable 2d Grid](https://discourse.processing.org/t/clickable-2d-grid/27961)

<div class="topic-metadata">

**Author:** [@Gine2g](https://discourse.processing.org/u/Gine2g)\
**Replies:** 12\
**Last updated:** [February 21, 2021, 10:22pm UTC](https://discourse.processing.org/t/clickable-2d-grid/27961 "2021-02-21T22:22:18Z")

</div>

I got the code below to create a grid with an array. Now I want to be able to change the color of on square by clicking on it and also change it back when clicked again. How would I do that? Right now the Color of the s…

---

## [Trying to Understand a Shader](https://discourse.processing.org/t/trying-to-understand-a-shader/27965)

<div class="topic-metadata">

**Author:** [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 7:57pm UTC](https://discourse.processing.org/t/trying-to-understand-a-shader/27965 "2021-02-21T19:57:08Z")

</div>

I am trying to understand a shader file. They file has its own function to generate/produce noise. They have a function call ‘col.r+=noise(uv.xyy\*(12. … continues’. I understand that ‘uv’ refers a texture with u bei…

---

## [Questions regarding my rasterized poster](https://discourse.processing.org/t/questions-regarding-my-rasterized-poster/27903)

<div class="topic-metadata">

**Author:** [@Rindoom](https://discourse.processing.org/u/Rindoom)\
**Replies:** 7\
**Last updated:** [February 21, 2021, 7:29pm UTC](https://discourse.processing.org/t/questions-regarding-my-rasterized-poster/27903 "2021-02-21T19:29:54Z")

</div>

Hey, guys. I was really inspired by one of the generative posters created by the extremely talented Tim Rodenbröker (https://www.instagram.com/p/B8oM8r7i1ns/?utm\_source=ig\_web\_copy\_link), so I tried to create something s…

---

## [Help! need assistance on including a void in an if statement? is it possible?](https://discourse.processing.org/t/help-need-assistance-on-including-a-void-in-an-if-statement-is-it-possible/27978)

<div class="topic-metadata">

**Author:** [@newbie1](https://discourse.processing.org/u/newbie1)\
**Replies:** 4\
**Last updated:** [February 21, 2021, 6:19pm UTC](https://discourse.processing.org/t/help-need-assistance-on-including-a-void-in-an-if-statement-is-it-possible/27978 "2021-02-21T18:19:37Z")

</div>

Hi, this is something that I am working on for a college project, is it possible to put the void eyes() into the snowman head? void setup() { size(1280, 720); background(55, 126, 231); fill(255); rect(0, 610, width,…

---

## [Grafica/ Gplot, GLayer, GPoint](https://discourse.processing.org/t/grafica-gplot-glayer-gpoint/27979)

<div class="topic-metadata">

**Author:** [@xD\_echicero\_xD](https://discourse.processing.org/u/xD_echicero_xD)\
**Replies:** 0\
**Last updated:** [February 21, 2021, 4:36pm UTC](https://discourse.processing.org/t/grafica-gplot-glayer-gpoint/27979 "2021-02-21T16:36:45Z")

</div>

Hello and thanks for read this post. My question is about Gplot, GLayer, GPoint. i read the index but i can’t understand it. if someone can explain me it and get me a example. i would appreciate it. Examples in index; …

---

## [Diffusion Algorithm (CC #13)](https://discourse.processing.org/t/diffusion-algorithm-cc-13/27976)

<div class="topic-metadata">

**Author:** [@technodruid](https://discourse.processing.org/u/technodruid)\
**Replies:** 0\
**Last updated:** [February 21, 2021, 3:30pm UTC](https://discourse.processing.org/t/diffusion-algorithm-cc-13/27976 "2021-02-21T15:30:35Z")

</div>

I wanted to port Dan’s p5.js code to processing using vectors as my objects. I can get it to run using a component-wise function for the laplace of each A and B like he does in his YouTube Video. My problem is getting …

---

## [Cellular Automata (From Coding Train](https://discourse.processing.org/t/cellular-automata-from-coding-train/27955)

<div class="topic-metadata">

**Author:** [@technodruid](https://discourse.processing.org/u/technodruid)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 3:27pm UTC](https://discourse.processing.org/t/cellular-automata-from-coding-train/27955 "2021-02-21T15:27:34Z")

</div>

Hi All! So I was playing around with the coding train code for Dan’s Game of Life Simulation. I wanted to change the rules, I did, and it worked great. I started to think about tracking state changes with a counter and…

[Previous page](https://discourse.processing.org/latest.md?page=250)

[Next page](https://discourse.processing.org/latest.md?page=252)
