# Latest

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

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

**Page:** 275

---

## [Trouble manipulating single cells in an array](https://discourse.processing.org/t/trouble-manipulating-single-cells-in-an-array/26291)

<div class="topic-metadata">

**Author:** [@Aerosault](https://discourse.processing.org/u/Aerosault)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 2:14pm UTC](https://discourse.processing.org/t/trouble-manipulating-single-cells-in-an-array/26291 "2020-12-16T14:14:58Z")

</div>

Hello! I any currently working on a grid of gradients. Each gradient is a shape. I want to tie the right and left mouse clicks to expand or contract the width of the object the mouse is hovering over. I also want the row…

---

## [Plz help my program](https://discourse.processing.org/t/plz-help-my-program/26261)

<div class="topic-metadata">

**Author:** [@kokobab](https://discourse.processing.org/u/kokobab)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 2:11pm UTC](https://discourse.processing.org/t/plz-help-my-program/26261 "2020-12-16T14:11:10Z")

</div>

\<arduino code\> const int sampleWindow=38; unsigned int sample; unsigned long startMillis=millis(); unsigned int peakToPeak=0; unsigned int signalMax=0; unsigned int signalMin=1024; //clipping indicator variable…

---

## [(mouse) trail program](https://discourse.processing.org/t/mouse-trail-program/26300)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [December 16, 2020, 1:18pm UTC](https://discourse.processing.org/t/mouse-trail-program/26300 "2020-12-16T13:18:31Z")

</div>

Hi! I created a mouse trail program! Use it if you want! ArrayList\<Float\> x = new ArrayList\<Float\>(); ArrayList\<Float\> y = new ArrayList\<Float\>(); ArrayList\<Float\> age = new ArrayList\<Float\>(); int n = 10, mweight = 5;…

---

## [I made a Fortune Telling Card Deck using p5.js](https://discourse.processing.org/t/i-made-a-fortune-telling-card-deck-using-p5-js/26297)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 3\
**Last updated:** [December 16, 2020, 12:01pm UTC](https://discourse.processing.org/t/i-made-a-fortune-telling-card-deck-using-p5-js/26297 "2020-12-16T12:01:46Z")

</div>

Hi there. I hope everyone is doing well ! I made this little project during my time in lock down in France. I hope some of you will like it. :slightly\_smiling\_face: I used p5 right at the start because I wanted to dra…

---

## [Lissajous tables](https://discourse.processing.org/t/lissajous-tables/26282)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [December 16, 2020, 11:59am UTC](https://discourse.processing.org/t/lissajous-tables/26282 "2020-12-16T11:59:37Z")

</div>

Hi! I created a new project! The Lissajous tables! Difficulty: 1000/10 int cx = 300, cy = 300,scl=60,a=10,b=10; void setup() { size(600,600); } void draw() { background(0); stroke(255); for(int i = 1; i \< a+1; i…

---

## [Collision with Spring Dynamics](https://discourse.processing.org/t/collision-with-spring-dynamics/26148)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 7\
**Last updated:** [December 16, 2020, 11:35am UTC](https://discourse.processing.org/t/collision-with-spring-dynamics/26148 "2020-12-16T11:35:59Z")

</div>

Hi I’m trying to enable bouncing balls effect with spring dynamics. I’ve tweaked the chain example a bit a here’s the code I’m working on: Spring2D s1, s2; float gravity = 9.0; float mass = 5; void setup() { size(…

---

## [Running Camera with buttons in p5.js](https://discourse.processing.org/t/running-camera-with-buttons-in-p5-js/26281)

<div class="topic-metadata">

**Author:** [@fullmotion](https://discourse.processing.org/u/fullmotion)\
**Replies:** 3\
**Last updated:** [December 16, 2020, 11:20am UTC](https://discourse.processing.org/t/running-camera-with-buttons-in-p5-js/26281 "2020-12-16T11:20:11Z")

</div>

Hello, debugging the camera option in this sketch. 1) Why isn’t camera opening inside the canvas? 2) How can I make the buttons disappear when the camera opens on the canvas? https://editor.p5js.org/fullmotion/sketches/…

---

## [Is there a trick to getting .otf fonts to work?](https://discourse.processing.org/t/is-there-a-trick-to-getting-otf-fonts-to-work/26277)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 12:22am UTC](https://discourse.processing.org/t/is-there-a-trick-to-getting-otf-fonts-to-work/26277 "2020-12-16T00:22:54Z")

</div>

Hello, Working on a project using the “Bookmania” font. It is an .otf font and I am on Windows 10 using Processing 3. For whatever reason it works fine on Mac OSX… https://allbestfonts.com/bookmania/ When I run the co…

---

## [Diagonal drawer](https://discourse.processing.org/t/diagonal-drawer/26286)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 6\
**Last updated:** [December 15, 2020, 10:59pm UTC](https://discourse.processing.org/t/diagonal-drawer/26286 "2020-12-15T22:59:21Z")

</div>

It draws all diagonals of an n-sided polygon. Idk why it would be useful but have fun! int n = 10, r = 200,cx = 300, cy = 300; void setup() { size(600,600); } void draw() { background(0); stroke(255); for(int i…

---

## [Can anyone point out what I'm doing wrong?](https://discourse.processing.org/t/can-anyone-point-out-what-im-doing-wrong/26239)

<div class="topic-metadata">

**Author:** [@Marsquid](https://discourse.processing.org/u/Marsquid)\
**Replies:** 4\
**Last updated:** [December 14, 2020, 4:21pm UTC](https://discourse.processing.org/t/can-anyone-point-out-what-im-doing-wrong/26239 "2020-12-14T16:21:49Z")

</div>

Hey all! I was given a task by my Lecturer to make a Baloon popping game but for some reason when I run the code the screen is completely gray. I have absolutely no clue as to how/why this is happening and was wondering…

---

## [Don\`t work void mousePressed](https://discourse.processing.org/t/don-t-work-void-mousepressed/26280)

<div class="topic-metadata">

**Author:** [@pundy](https://discourse.processing.org/u/pundy)\
**Replies:** 2\
**Last updated:** [December 15, 2020, 9:20pm UTC](https://discourse.processing.org/t/don-t-work-void-mousepressed/26280 "2020-12-15T21:20:45Z")

</div>

int K = 2; int L1 = 1; int P1 = 0; int L2 = 3; int P2 = 4; color k1,k2,l1,l2,p1,p2,l3,l4,p3,p4,len,len2,ban,ban2; void setup(){ size(500,500); background(145, 209, 189); k1=color(255,70,64); k2=color(194,53,48)…

---

## [Issues with arrayLists2](https://discourse.processing.org/t/issues-with-arraylists2/26221)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 5\
**Last updated:** [December 15, 2020, 8:13pm UTC](https://discourse.processing.org/t/issues-with-arraylists2/26221 "2020-12-15T20:13:03Z")

</div>

Hi! I am doing a customizable fractal tree program. I have some issues; Why does this happen? why this (“kinda”) works: ArrayList\<Float\> x = new ArrayList\<Float\>(); ArrayList\<Float\> y = new ArrayList\<Float\>(); ArrayLis…

---

## [Needing help to rotate the camera around an object by moving the mouse away from the middle of the screen](https://discourse.processing.org/t/needing-help-to-rotate-the-camera-around-an-object-by-moving-the-mouse-away-from-the-middle-of-the-screen/26247)

<div class="topic-metadata">

**Author:** [@SailorToei](https://discourse.processing.org/u/SailorToei)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 3:23pm UTC](https://discourse.processing.org/t/needing-help-to-rotate-the-camera-around-an-object-by-moving-the-mouse-away-from-the-middle-of-the-screen/26247 "2020-12-15T15:23:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello everybody, I want to create a game, where you can walk sideways straight forward etc, with the camera always 200 pixels behind the “Figur”…

---

## [Needing help for camera rotation in 3D with rotateY](https://discourse.processing.org/t/needing-help-for-camera-rotation-in-3d-with-rotatey/26195)

<div class="topic-metadata">

**Author:** [@SailorToei](https://discourse.processing.org/u/SailorToei)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 3:20pm UTC](https://discourse.processing.org/t/needing-help-for-camera-rotation-in-3d-with-rotatey/26195 "2020-12-15T15:20:38Z")

</div>

Hello, I already asked a question about turning the movement direction withmovingthe mouse in3D. It was successfully answered. However, now I want to turn the camera as well. \< void kamera() { camera(xCam,yCam,zCam…

---

## [Unexpected code behaviour: nested loops vs manual](https://discourse.processing.org/t/unexpected-code-behaviour-nested-loops-vs-manual/26266)

<div class="topic-metadata">

**Author:** [@Chudroy](https://discourse.processing.org/u/Chudroy)\
**Replies:** 2\
**Last updated:** [December 15, 2020, 12:10pm UTC](https://discourse.processing.org/t/unexpected-code-behaviour-nested-loops-vs-manual/26266 "2020-12-15T12:10:06Z")

</div>

Hi guys, new to the forum here, let me know if I’m doing anything obviously wrong. I made this sketch: My question is: why does the nested loop variation have a cross going through the middle? When I manually draw in…

---

## [Parse SVG file from Adobe Illustrator](https://discourse.processing.org/t/parse-svg-file-from-adobe-illustrator/1226)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 11\
**Last updated:** [December 15, 2020, 11:31am UTC](https://discourse.processing.org/t/parse-svg-file-from-adobe-illustrator/1226 "2020-12-15T11:31:20Z")

</div>

Hello there, I’m trying to parse a SVG file exported from Adobe Illustrator by using the PShape method ps.getChild(index);. At the end I want to extract the coordinates and the size of all the rectangles. The problem …

---

## [Creating a clickable dynamic grid](https://discourse.processing.org/t/creating-a-clickable-dynamic-grid/26259)

<div class="topic-metadata">

**Author:** [@Reynaert98](https://discourse.processing.org/u/Reynaert98)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 11:25am UTC](https://discourse.processing.org/t/creating-a-clickable-dynamic-grid/26259 "2020-12-15T11:25:57Z")

</div>

I have to create a dynamic grid for a memory game in which cards are placed within a rectangle on my screen which have to be clickable. Before the grid is drawn I have a starting screen in which the user has to select th…

---

## [Switching between scenes with buttons as choices](https://discourse.processing.org/t/switching-between-scenes-with-buttons-as-choices/19400)

<div class="topic-metadata">

**Author:** [@haree2000](https://discourse.processing.org/u/haree2000)\
**Replies:** 21\
**Last updated:** [December 15, 2020, 8:01am UTC](https://discourse.processing.org/t/switching-between-scenes-with-buttons-as-choices/19400 "2020-12-15T08:01:12Z")

</div>

Hi! I am sooo new to coding, I got to where I am through my friends and jumping around a lot but I am basically trying to make an interactive story and I found out how to make the text bubbles and to go to the next scen…

---

## [Create playlist with p5js](https://discourse.processing.org/t/create-playlist-with-p5js/26235)

<div class="topic-metadata">

**Author:** [@ari01](https://discourse.processing.org/u/ari01)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 2:02am UTC](https://discourse.processing.org/t/create-playlist-with-p5js/26235 "2020-12-15T02:02:52Z")

</div>

Hello! Can someone guide me on creating a music player with p5js? this is the code I have so far: var files = \[ ‘7rings.mp3’, ‘antisocial.mp3’, ‘badguy.mp3’, ‘badguyjb.mp3’, ‘beautifulpeople.mp3’, ‘boyfriend.mp3’, ‘cr…

---

## [Making something spin/rotate](https://discourse.processing.org/t/making-something-spin-rotate/26244)

<div class="topic-metadata">

**Author:** [@Khwarizmi](https://discourse.processing.org/u/Khwarizmi)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 10:00pm UTC](https://discourse.processing.org/t/making-something-spin-rotate/26244 "2020-12-14T22:00:34Z")

</div>

I made this small survival game where you are a ball and are supposed to dodge shurikens using the arrow keys.I want to draw the 2 shuriken triangles in a way so that they rotate around the center of the shuriken at a co…

---

## [Downloading Example Files](https://discourse.processing.org/t/downloading-example-files/26249)

<div class="topic-metadata">

**Author:** [@jeromeernestgarcia](https://discourse.processing.org/u/jeromeernestgarcia)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 9:54pm UTC](https://discourse.processing.org/t/downloading-example-files/26249 "2020-12-14T21:54:22Z")

</div>

I am trying to experiment with the scrollbar example. How to I download the image files associated with the example. img1 = loadImage(“seedTop.jpg”); img2 = loadImage(“seedBottom.jpg”); Thanks, Jerome

---

## [Video library processing 3.5.4](https://discourse.processing.org/t/video-library-processing-3-5-4/26241)

<div class="topic-metadata">

**Author:** [@Tickie](https://discourse.processing.org/u/Tickie)\
**Replies:** 0\
**Last updated:** [December 14, 2020, 4:38pm UTC](https://discourse.processing.org/t/video-library-processing-3-5-4/26241 "2020-12-14T16:38:38Z")

</div>

Hello! I have a problem with my code involving gstreamer apparently. The exact same code was working fine for weeks and until a week ago, today re-opening it I had an error stating “a library used by this sketch is not …

---

## [P5 image and class](https://discourse.processing.org/t/p5-image-and-class/26105)

<div class="topic-metadata">

**Author:** [@vlafortune](https://discourse.processing.org/u/vlafortune)\
**Replies:** 4\
**Last updated:** [December 14, 2020, 3:56pm UTC](https://discourse.processing.org/t/p5-image-and-class/26105 "2020-12-14T15:56:54Z")

</div>

Hi! I’m having trouble with the image function in p5. I’m following Dan Shiffman tutorial: https://youtu.be/i2C1hrJMwz0 I keep getting the following friendly message : :cherry\_blossom: p5.js says: image() was expectin…

---

## [P5.js and FMOD integration](https://discourse.processing.org/t/p5-js-and-fmod-integration/22200)

<div class="topic-metadata">

**Author:** [@spencerbambrick](https://discourse.processing.org/u/spencerbambrick)\
**Replies:** 3\
**Last updated:** [December 14, 2020, 2:02pm UTC](https://discourse.processing.org/t/p5-js-and-fmod-integration/22200 "2020-12-14T14:02:46Z")

</div>

I’m curious if anyone here has successfully used the audio middleware FMOD for a project made in P5.js. It seems it’s compatible but is a bit beyond my understanding of how to execute: https://fmod.com/resources/documen…

---

## [Change text height depending on position](https://discourse.processing.org/t/change-text-height-depending-on-position/25833)

<div class="topic-metadata">

**Author:** [@hannes](https://discourse.processing.org/u/hannes)\
**Replies:** 6\
**Last updated:** [December 14, 2020, 1:58am UTC](https://discourse.processing.org/t/change-text-height-depending-on-position/25833 "2020-12-14T01:58:53Z")

</div>

Hey Guys, I wanted to achieve something like a “text roll”. Here is an example: I want that, when scrolling up and down through my text, the type will change its text height. Like when text is written on a tube. Hope …

---

## [Problem with ArrayList\<Float\>](https://discourse.processing.org/t/problem-with-arraylist-float/26215)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [December 13, 2020, 10:08pm UTC](https://discourse.processing.org/t/problem-with-arraylist-float/26215 "2020-12-13T22:08:19Z")

</div>

I stumbled upon a problem a few times. It’s either this or error: index: 0 size: 0. Why is this happening. I am relatively new to this but I can’t do anything. It sometimes fixes on itself and at other times it just does…

---

## [Need help with my project](https://discourse.processing.org/t/need-help-with-my-project/26210)

<div class="topic-metadata">

**Author:** [@Cheshire1](https://discourse.processing.org/u/Cheshire1)\
**Replies:** 9\
**Last updated:** [December 13, 2020, 9:19pm UTC](https://discourse.processing.org/t/need-help-with-my-project/26210 "2020-12-13T21:19:11Z")

</div>

Hello I’m stuck on my project I just need to end my game after the timer is 0 and display a screen that says game over with the score but the timer just keeps going to negative and wouldn’t stop. I would also like if any…

---

## [How to create an infinite 2D array list map](https://discourse.processing.org/t/how-to-create-an-infinite-2d-array-list-map/26191)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [December 13, 2020, 9:13pm UTC](https://discourse.processing.org/t/how-to-create-an-infinite-2d-array-list-map/26191 "2020-12-13T21:13:52Z")

</div>

Hi! I recently made the game of life. I am interested in how to create infinite map (in all directions) The arrays would be like (imagine a graph window): So the arrays would be ++, ±, -+, --. Would this be a viabl…

---

## [Load Image in and outside data folder](https://discourse.processing.org/t/load-image-in-and-outside-data-folder/23537)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 15\
**Last updated:** [December 13, 2020, 4:45pm UTC](https://discourse.processing.org/t/load-image-in-and-outside-data-folder/23537 "2020-12-13T16:45:46Z")

</div>

The question is, I can upload images via: img = loadImage(“img.png”); And then they will be loaded from the sketch. But can I at the same time in the sketch (data folder) them: img = loadImage(“subfloder/img.png”); …

---

## [I have an assignment to do but its kind of confusing and I want to know if what I did is correct (get Minimum)](https://discourse.processing.org/t/i-have-an-assignment-to-do-but-its-kind-of-confusing-and-i-want-to-know-if-what-i-did-is-correct-get-minimum/26140)

<div class="topic-metadata">

**Author:** [@DijaAngel](https://discourse.processing.org/u/DijaAngel)\
**Replies:** 1\
**Last updated:** [December 11, 2020, 6:14pm UTC](https://discourse.processing.org/t/i-have-an-assignment-to-do-but-its-kind-of-confusing-and-i-want-to-know-if-what-i-did-is-correct-get-minimum/26140 "2020-12-11T18:14:47Z")

</div>

Write a program which has a global array of integers with values assigned to the array. • Write a function ‘getArrayMin’ to return the minimum value in the array. • Draw a circle in the centre of the window with the…

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

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