# Latest

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

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

**Page:** 270

---

## [Need a review to improve this :)](https://discourse.processing.org/t/need-a-review-to-improve-this/26630)

<div class="topic-metadata">

**Author:** [@jeanphih](https://discourse.processing.org/u/jeanphih)\
**Replies:** 7\
**Last updated:** [December 31, 2020, 6:50pm UTC](https://discourse.processing.org/t/need-a-review-to-improve-this/26630 "2020-12-31T18:50:09Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, I need some help, i have done this job , could you tell me how i can make my code better ? Here is the code, it s juste some tips to im…

---

## [What am I missing?](https://discourse.processing.org/t/what-am-i-missing/26652)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 5\
**Last updated:** [December 31, 2020, 6:21pm UTC](https://discourse.processing.org/t/what-am-i-missing/26652 "2020-12-31T18:21:05Z")

</div>

Idk what’s happening but all of a sudden a simple for loop won’t draw a circle for me. https://www.openprocessing.org/sketch/1051206 I believe I’m missing something obvious, but I cant find it. this is stupid but can som…

---

## [Sampling Incoming data from serial port](https://discourse.processing.org/t/sampling-incoming-data-from-serial-port/26600)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 2\
**Last updated:** [December 31, 2020, 6:08pm UTC](https://discourse.processing.org/t/sampling-incoming-data-from-serial-port/26600 "2020-12-31T18:08:01Z")

</div>

please format code with \</\> button \* homework policy \* asking questions My code takes incoming data and stores it in a table but currently it takes in all the values that come in to the serial port. I would like to m…

---

## [Open Android Camera](https://discourse.processing.org/t/open-android-camera/23696)

<div class="topic-metadata">

**Author:** [@Dominik\_rgn](https://discourse.processing.org/u/Dominik_rgn)\
**Replies:** 11\
**Last updated:** [December 31, 2020, 4:40pm UTC](https://discourse.processing.org/t/open-android-camera/23696 "2020-12-31T16:40:48Z")

</div>

Hello I wanted to ask how I can open a camera?

---

## [QuickTime movie is not available](https://discourse.processing.org/t/quicktime-movie-is-not-available/26638)

<div class="topic-metadata">

**Author:** [@ssskkk](https://discourse.processing.org/u/ssskkk)\
**Replies:** 1\
**Last updated:** [December 31, 2020, 3:15pm UTC](https://discourse.processing.org/t/quicktime-movie-is-not-available/26638 "2020-12-31T15:15:14Z")

</div>

Hi, I tried to make movie from QuickTime Movie Maker. I used 「saveFrame(“frames/####.png”);」 in my code, confirmed frame folder, and chose the folder in the QuickTime Movie Maker. but I still can’t push「Create movie」but…

---

## [Can someone explain noise() aka perlinNoise() function?](https://discourse.processing.org/t/can-someone-explain-noise-aka-perlinnoise-function/26627)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 8\
**Last updated:** [December 31, 2020, 1:55pm UTC](https://discourse.processing.org/t/can-someone-explain-noise-aka-perlinnoise-function/26627 "2020-12-31T13:55:29Z")

</div>

Hi! How do I use noise()? I tried a few times but still nothing. I know you can enter a 1D, 2D or 3D input. but this happen void setup() { size(600,600); } void draw() { for(int i = 0; i \< width; i++) { for…

---

## [Animated Mosaic in Processing](https://discourse.processing.org/t/animated-mosaic-in-processing/26609)

<div class="topic-metadata">

**Author:** [@Jboon](https://discourse.processing.org/u/Jboon)\
**Replies:** 1\
**Last updated:** [December 31, 2020, 1:05pm UTC](https://discourse.processing.org/t/animated-mosaic-in-processing/26609 "2020-12-31T13:05:52Z")

</div>

So I’ve watched Dan Shiffman’s lesson on the mosaic and I’m pasting here the code from the lesson and I could understand it (processing newbie here!). What I’d like to do and would appreciate some help with is animating …

---

## [Galaga scrolling background](https://discourse.processing.org/t/galaga-scrolling-background/26527)

<div class="topic-metadata">

**Author:** [@lionR](https://discourse.processing.org/u/lionR)\
**Replies:** 3\
**Last updated:** [December 31, 2020, 1:05pm UTC](https://discourse.processing.org/t/galaga-scrolling-background/26527 "2020-12-31T13:05:42Z")

</div>

I have to create a project in which I chose to create Galaga. I want a vertically scrolling background but don’t know how to achieve that. How would you guys go about something like that?

---

## [Filter allow only a specific range of frequency to pass through](https://discourse.processing.org/t/filter-allow-only-a-specific-range-of-frequency-to-pass-through/26623)

<div class="topic-metadata">

**Author:** [@wonderhope](https://discourse.processing.org/u/wonderhope)\
**Replies:** 5\
**Last updated:** [December 30, 2020, 11:23pm UTC](https://discourse.processing.org/t/filter-allow-only-a-specific-range-of-frequency-to-pass-through/26623 "2020-12-30T23:23:56Z")

</div>

how can i filter a song and allow only a specific range of frequency to pass through? Cuz when i use bandpass filter, it only allows me to input one frequency instead of a range(i.e. one lower frequency and one higher fr…

---

## [Multiplication bug](https://discourse.processing.org/t/multiplication-bug/26619)

<div class="topic-metadata">

**Author:** [@Javier](https://discourse.processing.org/u/Javier)\
**Replies:** 16\
**Last updated:** [December 30, 2020, 11:09pm UTC](https://discourse.processing.org/t/multiplication-bug/26619 "2020-12-30T23:09:29Z")

</div>

Good morning! Can anybody explain to me why the return value of t is -8.311896E7? There is a max value that a variable can have? I can’t understand why it is happening. I have read the reference guide of Processing, …

---

## [An invitation to learn and create computation form, one sketch a day](https://discourse.processing.org/t/an-invitation-to-learn-and-create-computation-form-one-sketch-a-day/25839)

<div class="topic-metadata">

**Author:** [@octref](https://discourse.processing.org/u/octref)\
**Replies:** 5\
**Last updated:** [December 30, 2020, 10:54pm UTC](https://discourse.processing.org/t/an-invitation-to-learn-and-create-computation-form-one-sketch-a-day/25839 "2020-12-30T22:54:33Z")

</div>

My name is Pine & this is my first time posting here. Hello everyone :stuck\_out\_tongue: Me and my friend Anthony have been doing 100-day computational form challenges. We are inviting you to join our challenge to do com…

---

## [Move Map depending on character position](https://discourse.processing.org/t/move-map-depending-on-character-position/26610)

<div class="topic-metadata">

**Author:** [@corken](https://discourse.processing.org/u/corken)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 10:24pm UTC](https://discourse.processing.org/t/move-map-depending-on-character-position/26610 "2020-12-30T22:24:35Z")

</div>

Hello I want to move my tiledMap depending on my characters position. But when I simply set the maps position to the characters position the collision detection goes wild. Any solutions?’ What I tried was map.draw(posi…

---

## [Is it possible to use Compute Shader in Processing?](https://discourse.processing.org/t/is-it-possible-to-use-compute-shader-in-processing/4353)

<div class="topic-metadata">

**Author:** [@Okdalto](https://discourse.processing.org/u/Okdalto)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 6:49pm UTC](https://discourse.processing.org/t/is-it-possible-to-use-compute-shader-in-processing/4353 "2020-12-30T18:49:05Z")

</div>

I use Compute Shader in Unity to control hundreds of particles and wondering if it’s possible to use Compute Shader in Processing too. If it is, where can I find references?

---

## [Having some issues with rendering text](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603)

<div class="topic-metadata">

**Author:** [@VigneshV](https://discourse.processing.org/u/VigneshV)\
**Replies:** 6\
**Last updated:** [December 30, 2020, 3:13pm UTC](https://discourse.processing.org/t/having-some-issues-with-rendering-text/26603 "2020-12-30T15:13:14Z")

</div>

I keep getting the following error despite me trying both createFonts() and loadFonts(). Does anyone else have this issue with processing 3 in android mode? Could anyone please tell me a way to tackle this? Thank you I…

---

## [Turning characters of a String into rectangles](https://discourse.processing.org/t/turning-characters-of-a-string-into-rectangles/26580)

<div class="topic-metadata">

**Author:** [@Sophie](https://discourse.processing.org/u/Sophie)\
**Replies:** 11\
**Last updated:** [December 30, 2020, 2:04pm UTC](https://discourse.processing.org/t/turning-characters-of-a-string-into-rectangles/26580 "2020-12-30T14:04:42Z")

</div>

Hello, I’m having trouble with my code. Basically, I have a text and want every letter to be replaced by a rectangle matching the letter with different colours in a row next to each other. It might seem stupid, but the…

---

## [Sketch is running at low framerate (3fps) i don't know why](https://discourse.processing.org/t/sketch-is-running-at-low-framerate-3fps-i-dont-know-why/26607)

<div class="topic-metadata">

**Author:** [@WillG](https://discourse.processing.org/u/WillG)\
**Replies:** 2\
**Last updated:** [December 30, 2020, 1:54pm UTC](https://discourse.processing.org/t/sketch-is-running-at-low-framerate-3fps-i-dont-know-why/26607 "2020-12-30T13:54:25Z")

</div>

Hello! I’m a student and i have to create a sketch with bus point and density at these bus points. In fact all my sketch is working but at a very low framerate even if i put frameRate(30 or 60). Can someone help me ple…

---

## [Trying to run p5 code on codepen, what files to include, pls?](https://discourse.processing.org/t/trying-to-run-p5-code-on-codepen-what-files-to-include-pls/26615)

<div class="topic-metadata">

**Author:** [@richengle](https://discourse.processing.org/u/richengle)\
**Replies:** 1\
**Last updated:** [December 30, 2020, 9:21am UTC](https://discourse.processing.org/t/trying-to-run-p5-code-on-codepen-what-files-to-include-pls/26615 "2020-12-30T09:21:34Z")

</div>

i ami trying to run some p5 code from https://editor.p5js.org/aatish/sketches/SJoT7GDtf on codepen \[html/CSS/JS intepreter\] I have included https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js and many other…

---

## [Sizing the display window to fit image dimensions](https://discourse.processing.org/t/sizing-the-display-window-to-fit-image-dimensions/26598)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 8\
**Last updated:** [December 30, 2020, 12:18am UTC](https://discourse.processing.org/t/sizing-the-display-window-to-fit-image-dimensions/26598 "2020-12-30T00:18:25Z")

</div>

I’d like to load an image, then size() the display window to fit the actual width and height of the image, using a technique that is considered acceptable according to Processing.py standards. But I have only been able t…

---

## [Very long class code](https://discourse.processing.org/t/very-long-class-code/26599)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 7\
**Last updated:** [December 29, 2020, 10:53pm UTC](https://discourse.processing.org/t/very-long-class-code/26599 "2020-12-29T22:53:44Z")

</div>

I want to connect every point with a line using a neighbor system, and I’m using a lot of class variables that don’t work. I don’t know if there is a limit but here’s the code: https://www.openprocessing.org/sketch/10506…

---

## [How to collision detection?](https://discourse.processing.org/t/how-to-collision-detection/26597)

<div class="topic-metadata">

**Author:** [@corken](https://discourse.processing.org/u/corken)\
**Replies:** 0\
**Last updated:** [December 29, 2020, 8:30pm UTC](https://discourse.processing.org/t/how-to-collision-detection/26597 "2020-12-29T20:30:39Z")

</div>

Hello I try to make a Mario Bros Game. I need some help with the collision. It already detects collision by checking if the tiles around him are an object tile (tile with other value than -1). The problem is that there …

---

## [Kinect v2 resize depth image and color data to same aspect ratio and size](https://discourse.processing.org/t/kinect-v2-resize-depth-image-and-color-data-to-same-aspect-ratio-and-size/26596)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 0\
**Last updated:** [December 29, 2020, 8:07pm UTC](https://discourse.processing.org/t/kinect-v2-resize-depth-image-and-color-data-to-same-aspect-ratio-and-size/26596 "2020-12-29T20:07:53Z")

</div>

So the Kinect v2 has a color stream of 1920 x 1080. The depth stream is 512 x 424. The FOV is also different from what I can tell. I tried to resize both streams to 500 x 500 (the size of my canvas). Data from here. if…

---

## [Help with objects](https://discourse.processing.org/t/help-with-objects/26590)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [December 29, 2020, 6:02pm UTC](https://discourse.processing.org/t/help-with-objects/26590 "2020-12-29T18:02:02Z")

</div>

Hi! I always had the issue with objects. I want to replicate PVector a = new PVector(x,y,z) with the class Circles. So something like ArrayList\<Circles\> circle = new ArrayList\<Circles\>() circle.add(new Circles( x, y,…

---

## [Beginner Q: Creating Grids and Interacting With Them](https://discourse.processing.org/t/beginner-q-creating-grids-and-interacting-with-them/26588)

<div class="topic-metadata">

**Author:** [@alenmartel](https://discourse.processing.org/u/alenmartel)\
**Replies:** 8\
**Last updated:** [December 29, 2020, 4:13pm UTC](https://discourse.processing.org/t/beginner-q-creating-grids-and-interacting-with-them/26588 "2020-12-29T16:13:23Z")

</div>

Hi all - I’m brand new to Processing (and coding). I’ve done a few hours of coding now (learning via the Learning Processing book by Daniel Shifman) and have taken myself to task with the homework as well as creating a l…

---

## [Using variables with existing variables](https://discourse.processing.org/t/using-variables-with-existing-variables/26584)

<div class="topic-metadata">

**Author:** [@felix.west](https://discourse.processing.org/u/felix.west)\
**Replies:** 3\
**Last updated:** [December 29, 2020, 3:59pm UTC](https://discourse.processing.org/t/using-variables-with-existing-variables/26584 "2020-12-29T15:59:35Z")

</div>

Hi, I’d like to use a variable for an ellipse using another variable already written above. ex: int diameter = 50 int positionX = 200 int positionY = 200 –\> int ellipse1= ellipse(positionX, positionY, dia, dia) So…

---

## [How to change the equation into a code in an nth pendulum?](https://discourse.processing.org/t/how-to-change-the-equation-into-a-code-in-an-nth-pendulum/26558)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 5\
**Last updated:** [December 29, 2020, 12:28pm UTC](https://discourse.processing.org/t/how-to-change-the-equation-into-a-code-in-an-nth-pendulum/26558 "2020-12-29T12:28:12Z")

</div>

I want to simulate the nth level pendulum (double, triple and so on). I found the equations for the acceleration of the nth pendulum on this page: https://www.researchgate.net/publication/336868500\_Equations\_of\_Motion\_Fo…

---

## [Circa Diem - organic styled interactive visual music experience](https://discourse.processing.org/t/circa-diem-organic-styled-interactive-visual-music-experience/26573)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 2\
**Last updated:** [December 29, 2020, 5:15am UTC](https://discourse.processing.org/t/circa-diem-organic-styled-interactive-visual-music-experience/26573 "2020-12-29T05:15:53Z")

</div>

Hello Forum, I have posted a few of these new types of works that I have been doing lately. This one is the final in a series for waiting travelers at the San Diego Airport. I hope you enjoy it. \[Circa Diem\] no.1

---

## [Seeking help in finding an old sketch – interactive audio sculpture drawing, white stage, black lines, red markers](https://discourse.processing.org/t/seeking-help-in-finding-an-old-sketch-interactive-audio-sculpture-drawing-white-stage-black-lines-red-markers/26572)

<div class="topic-metadata">

**Author:** [@eightohnine](https://discourse.processing.org/u/eightohnine)\
**Replies:** 1\
**Last updated:** [December 29, 2020, 12:14am UTC](https://discourse.processing.org/t/seeking-help-in-finding-an-old-sketch-interactive-audio-sculpture-drawing-white-stage-black-lines-red-markers/26572 "2020-12-29T00:14:01Z")

</div>

As the title already states, I’ve recently remembered on of my favourite sketches from many years ago, but am not able to find it anywhere online, since I forgot both the name of the project and the artist. I thought it …

---

## [Own programming language: How nested for-loop?](https://discourse.processing.org/t/own-programming-language-how-nested-for-loop/26396)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 3\
**Last updated:** [December 26, 2020, 11:20am UTC](https://discourse.processing.org/t/own-programming-language-how-nested-for-loop/26396 "2020-12-26T11:20:57Z")

</div>

Hello all, I am doing my own programming language at the moment. An interpreter language. When a for-loop is, not so difficult. I have the start line and he jumps x-times back to the start line ( “{” ) from the end li…

---

## [Code android e arduino](https://discourse.processing.org/t/code-android-e-arduino/26364)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 20\
**Last updated:** [December 28, 2020, 9:06pm UTC](https://discourse.processing.org/t/code-android-e-arduino/26364 "2020-12-28T21:06:56Z")

</div>

But on processig for Android it is possible that no one has ever used a slider code and an LED to drive Arduino via bluetooth it seems very strange to me

---

## [Drawing polygons with common side](https://discourse.processing.org/t/drawing-polygons-with-common-side/26550)

<div class="topic-metadata">

**Author:** [@ssdesign](https://discourse.processing.org/u/ssdesign)\
**Replies:** 5\
**Last updated:** [December 28, 2020, 7:27pm UTC](https://discourse.processing.org/t/drawing-polygons-with-common-side/26550 "2020-12-28T19:27:24Z")

</div>

I am trying to create multiple polygons with common sides as shown in this video Somehow, if I follow the principle of first drawing a hexagon and then dividing the radius into 6 parts to get the offset dim…

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

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