# \#homework

**URL:** https://discourse.processing.org/tag/homework/1.md

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

---

## [How would you change this sketch?](https://discourse.processing.org/t/how-would-you-change-this-sketch/47805)

<div class="topic-metadata">

**Author:** [@NickyDeep](https://discourse.processing.org/u/NickyDeep)\
**Replies:** 3\
**Last updated:** [September 19, 2026, 7:18pm UTC](https://discourse.processing.org/t/how-would-you-change-this-sketch/47805 "2026-09-19T19:18:44Z")

</div>

https://openprocessing.org/sketch/2857202 how would you change this sketch so that it got more interesting or funny or contrasted what would you do to it?

---

## [I need help plz thanks if you do im a beginner sorry](https://discourse.processing.org/t/i-need-help-plz-thanks-if-you-do-im-a-beginner-sorry/49230)

<div class="topic-metadata">

**Author:** [@chuudtaco](https://discourse.processing.org/u/chuudtaco)\
**Replies:** 2\
**Last updated:** [August 21, 2026, 5:41am UTC](https://discourse.processing.org/t/i-need-help-plz-thanks-if-you-do-im-a-beginner-sorry/49230 "2026-08-21T05:41:25Z")

</div>

hi I don’t know why my keyPressed isn’t working, I copied and pasted references and they don’t work either, i’m not sure if it’s a me problem. https://editor.p5js.org/chuud/sketches/FtKfFDUL5 sorry if i used wrong form…

---

## [How to 3D flow field?](https://discourse.processing.org/t/how-to-3d-flow-field/49135)

<div class="topic-metadata">

**Author:** [@alecz](https://discourse.processing.org/u/alecz)\
**Replies:** 2\
**Last updated:** [August 11, 2026, 8:17pm UTC](https://discourse.processing.org/t/how-to-3d-flow-field/49135 "2026-08-11T20:17:44Z")

</div>

Hi all, I’m playing around with Dan Shiffmann Perlin noise flow field with Processing 4 and I wondered how to upgrade his example to use it to move particles in a 3D flow field. Currently my code is : import peasy.\*; …

---

## [Mini Pen Plotter](https://discourse.processing.org/t/mini-pen-plotter/48734)

<div class="topic-metadata">

**Author:** [@SPW48](https://discourse.processing.org/u/SPW48)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 12:09am UTC](https://discourse.processing.org/t/mini-pen-plotter/48734 "2026-06-04T00:09:54Z")

</div>

\<Hello, The project is: Making a mini plotter from old CD-ROM stepper motors for the x-axis and y-axis, and a servo motor for the pen lifter. Control is via an Arduino UNO 3 board with a CNC shield and an A4988 stepper…

---

## [How move the penguin without the arms flying off?](https://discourse.processing.org/t/how-move-the-penguin-without-the-arms-flying-off/48065)

<div class="topic-metadata">

**Author:** [@False](https://discourse.processing.org/u/False)\
**Replies:** 2\
**Last updated:** [March 24, 2026, 8:02am UTC](https://discourse.processing.org/t/how-move-the-penguin-without-the-arms-flying-off/48065 "2026-03-24T08:02:52Z")

</div>

‘’‘processing’‘’ //position float xorigin, yorigin; //origin position float xPos, yPos; //penguin position //wing animation float wingangle; float wingspeed; float upperwinglimit; float lowerwinglimit; boolean…

---

## [Need some help with a whack-a-mole](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017)

<div class="topic-metadata">

**Author:** [@Lumine](https://discourse.processing.org/u/Lumine)\
**Replies:** 5\
**Last updated:** [March 11, 2026, 6:23pm UTC](https://discourse.processing.org/t/need-some-help-with-a-whack-a-mole/48017 "2026-03-11T18:23:06Z")

</div>

I need help because I’m new to Processing and I was wondering how to create a timer for a little game (a whack-a-mole game with cubes instead of moles). I need to finish the code quickly (in less than a week) and I REAL…

---

## [I'm trying to make a game inspired by the puzzles of The Witness](https://discourse.processing.org/t/im-trying-to-make-a-game-inspired-by-the-puzzles-of-the-witness/47747)

<div class="topic-metadata">

**Author:** [@Fluffy1oo](https://discourse.processing.org/u/Fluffy1oo)\
**Replies:** 6\
**Last updated:** [January 13, 2026, 10:22am UTC](https://discourse.processing.org/t/im-trying-to-make-a-game-inspired-by-the-puzzles-of-the-witness/47747 "2026-01-13T10:22:52Z")

</div>

from p5 import run,createCanvas,noLoop,background,stroke,line,fill,noStroke,rect,strokeWeight,noFill,ellipse,point,mouseIsPressed # DÉFINITION DES NIVEAUX LEVELS = \[ { "grid": (4, 4), # taille de l…

---

## [Need Help for clipping lane](https://discourse.processing.org/t/need-help-for-clipping-lane/47702)

<div class="topic-metadata">

**Author:** [@picar](https://discourse.processing.org/u/picar)\
**Replies:** 8\
**Last updated:** [January 7, 2026, 12:24pm UTC](https://discourse.processing.org/t/need-help-for-clipping-lane/47702 "2026-01-07T12:24:03Z")

</div>

Hallo, when i use perspective(fovy, aspect, zNear, zFar) \> favy & aspect works as it should but zNear & zFar change nothing. I use Processing 4.4.10 setup() \>P3D & PGraphics matrix... . . matrix.beginDraw(); matrix.b…

---

## [External webcam not working on Apple Silicon (M4) Mac Mini](https://discourse.processing.org/t/external-webcam-not-working-on-apple-silicon-m4-mac-mini/47686)

<div class="topic-metadata">

**Author:** [@Dulce\_Criatura](https://discourse.processing.org/u/Dulce_Criatura)\
**Replies:** 3\
**Last updated:** [January 6, 2026, 2:41pm UTC](https://discourse.processing.org/t/external-webcam-not-working-on-apple-silicon-m4-mac-mini/47686 "2026-01-06T14:41:59Z")

</div>

Hi everyone, I’m trying to use an external Logitech webcam (Brio 300) in Processing on a Mac Mini M4 (Apple Silicon). Processing detects the camera (it appears in the device list), but it fails to actually capture vide…

---

## [Using HTML button element to change a variable in the Javascript](https://discourse.processing.org/t/using-html-button-element-to-change-a-variable-in-the-javascript/47557)

<div class="topic-metadata">

**Author:** [@telstartelstar](https://discourse.processing.org/u/telstartelstar)\
**Replies:** 3\
**Last updated:** [November 23, 2025, 1:55am UTC](https://discourse.processing.org/t/using-html-button-element-to-change-a-variable-in-the-javascript/47557 "2025-11-23T01:55:24Z")

</div>

Hi again! For another part of my project I’m trying to figure out how to use a element in the HTML of my sketch to change a set variable in my Javascript. In specific I’m using it to change the background image variabl…

---

## [Porting p5js code to another program](https://discourse.processing.org/t/porting-p5js-code-to-another-program/47507)

<div class="topic-metadata">

**Author:** [@telstartelstar](https://discourse.processing.org/u/telstartelstar)\
**Replies:** 9\
**Last updated:** [November 22, 2025, 9:29pm UTC](https://discourse.processing.org/t/porting-p5js-code-to-another-program/47507 "2025-11-22T21:29:58Z")

</div>

Hello! I’m currently working on a final for one of my classes, and I realized I needed to port all my code into another program so I can eventually host it on a website. But when I copy/paste my code from p5js to Dreamw…

---

## [Processing can find the data folder in Windows 11 but not in Linux or Mac](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472)

<div class="topic-metadata">

**Author:** [@ffernandaffranco](https://discourse.processing.org/u/ffernandaffranco)\
**Replies:** 31\
**Last updated:** [November 5, 2025, 2:45pm UTC](https://discourse.processing.org/t/processing-can-find-the-data-folder-in-windows-11-but-not-in-linux-or-mac/47472 "2025-11-05T14:45:45Z")

</div>

Hello! I am working on a project for a class in Processing and Java. It is a game, and for this game I need to load multiple images, a video, and a font. It works correctly in Windows 11. The problem arises when I try t…

---

## [Windows 11 moving wallpaper](https://discourse.processing.org/t/windows-11-moving-wallpaper/47235)

<div class="topic-metadata">

**Author:** [@FortranGuy](https://discourse.processing.org/u/FortranGuy)\
**Replies:** 4\
**Last updated:** [October 14, 2025, 3:22am UTC](https://discourse.processing.org/t/windows-11-moving-wallpaper/47235 "2025-10-14T03:22:08Z")

</div>

Hello everyone! As a hobby, I create static wallpapers by overlaying green rectangle with anime characters. One day, I came across an illustration of a pocket watch, so instead of overlaying it with a green rectangle, …

---

## [Beginner needs help creating an interactive work with his students](https://discourse.processing.org/t/beginner-needs-help-creating-an-interactive-work-with-his-students/47260)

<div class="topic-metadata">

**Author:** [@Lucaschaill](https://discourse.processing.org/u/Lucaschaill)\
**Replies:** 4\
**Last updated:** [October 3, 2025, 6:04pm UTC](https://discourse.processing.org/t/beginner-needs-help-creating-an-interactive-work-with-his-students/47260 "2025-10-03T18:04:06Z")

</div>

Hi there, I need help. I’m a teacher and I’m just starting out. Would it be possible to share some code with me to create an interactive “work.” Specifically, I want a random image from a folder to appear when you click…

---

## [Variable and Function Questions](https://discourse.processing.org/t/variable-and-function-questions/29636)

<div class="topic-metadata">

**Author:** [@hklotz13](https://discourse.processing.org/u/hklotz13)\
**Replies:** 6\
**Last updated:** [September 22, 2025, 12:54pm UTC](https://discourse.processing.org/t/variable-and-function-questions/29636 "2025-09-22T12:54:39Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi there folks. I’m very much a beginner, and I’m currently very lost trying to troubleshoot a project I’m working on for a class. Essentially I…

---

## [Shape generator help (Armin Hofmann's 'rubber band' shape generator)](https://discourse.processing.org/t/shape-generator-help-armin-hofmanns-rubber-band-shape-generator/33190)

<div class="topic-metadata">

**Author:** [@abk](https://discourse.processing.org/u/abk)\
**Replies:** 39\
**Last updated:** [August 21, 2025, 6:30pm UTC](https://discourse.processing.org/t/shape-generator-help-armin-hofmanns-rubber-band-shape-generator/33190 "2025-08-21T18:30:48Z")

</div>

Hi I’m trying to create a Hofmann’esque shape generator based on a grid of circles: I have the basic structure of the grid done, but I’m totally stuck on where to go from here? How do I make this into a combined s…

---

## [Pixel effect, how do you create this effect](https://discourse.processing.org/t/pixel-effect-how-do-you-create-this-effect/46929)

<div class="topic-metadata">

**Author:** [@1029](https://discourse.processing.org/u/1029)\
**Replies:** 11\
**Last updated:** [August 16, 2025, 3:33pm UTC](https://discourse.processing.org/t/pixel-effect-how-do-you-create-this-effect/46929 "2025-08-16T15:33:27Z")

</div>

Does anyone know if we could apply this effect? https://typedither.vercel.app/ Thanks!

---

## [Having trouble with rotating and translating specific elements and overlapping them on top of each other](https://discourse.processing.org/t/having-trouble-with-rotating-and-translating-specific-elements-and-overlapping-them-on-top-of-each-other/46664)

<div class="topic-metadata">

**Author:** [@Deathlord719](https://discourse.processing.org/u/Deathlord719)\
**Replies:** 3\
**Last updated:** [July 9, 2025, 7:09am UTC](https://discourse.processing.org/t/having-trouble-with-rotating-and-translating-specific-elements-and-overlapping-them-on-top-of-each-other/46664 "2025-07-09T07:09:25Z")

</div>

I am a beginner to processing and coding in general. I am trying to recreate the following image in processing. There was already another post on this(they solved it by copying over an area of blue rectangle onto the…

---

## [High school programming project, (COMPLETE BEGINNER)](https://discourse.processing.org/t/high-school-programming-project-complete-beginner/46500)

<div class="topic-metadata">

**Author:** [@dinomaster123](https://discourse.processing.org/u/dinomaster123)\
**Replies:** 5\
**Last updated:** [June 23, 2025, 2:03pm UTC](https://discourse.processing.org/t/high-school-programming-project-complete-beginner/46500 "2025-06-23T14:03:25Z")

</div>

Hello my name is Max, and I am a complete beginner in processing,but am starting to enjoy coding and reading interesting / exciting new codes ! In my code i have an enum,(which i dont know what it means) a Lambda methode…

---

## [Why does .getConstructor fail with a NoSuchMethodException despite zero-arg constructors existing for the class?](https://discourse.processing.org/t/why-does-getconstructor-fail-with-a-nosuchmethodexception-despite-zero-arg-constructors-existing-for-the-class/45748)

<div class="topic-metadata">

**Author:** [@PeterAmbos](https://discourse.processing.org/u/PeterAmbos)\
**Replies:** 10\
**Last updated:** [February 12, 2025, 7:43pm UTC](https://discourse.processing.org/t/why-does-getconstructor-fail-with-a-nosuchmethodexception-despite-zero-arg-constructors-existing-for-the-class/45748 "2025-02-12T19:43:33Z")

</div>

I’m programming a game for a programming course in college, and I’ve run into some trouble with the .getConstructor method. What I’m trying to do is pass a class that has to be a subclass of another class as an argument …

---

## [File not found using surface.setIcon(icon) in public class test extends PApplet](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622)

<div class="topic-metadata">

**Author:** [@cola](https://discourse.processing.org/u/cola)\
**Replies:** 7\
**Last updated:** [January 23, 2025, 2:38am UTC](https://discourse.processing.org/t/file-not-found-using-surface-seticon-icon-in-public-class-test-extends-papplet/45622 "2025-01-23T02:38:44Z")

</div>

hello,everyone. I can’t find the file when using surface.setIcon(icon) in public class test extends PApplet. I am using the processing4 version. My pictures are saved in data. The file structure is as follows: MySketch/ …

---

## [Having a problem with zero length arrays](https://discourse.processing.org/t/having-a-problem-with-zero-length-arrays/45555)

<div class="topic-metadata">

**Author:** [@tajvirsingh](https://discourse.processing.org/u/tajvirsingh)\
**Replies:** 6\
**Last updated:** [January 9, 2025, 9:47pm UTC](https://discourse.processing.org/t/having-a-problem-with-zero-length-arrays/45555 "2025-01-09T21:47:27Z")

</div>

I’ve formatted all my vectors to be 1 column and 4 rows, but apparently I’m putting a vector of length 0 into my function? Why might this happen? Thanks,

---

## [Please help my Processing code. due to tomorrow!](https://discourse.processing.org/t/please-help-my-processing-code-due-to-tomorrow/30725)

<div class="topic-metadata">

**Author:** [@uniquenospace](https://discourse.processing.org/u/uniquenospace)\
**Replies:** 6\
**Last updated:** [January 9, 2025, 1:31pm UTC](https://discourse.processing.org/t/please-help-my-processing-code-due-to-tomorrow/30725 "2025-01-09T13:31:17Z")

</div>

I want to make program that press the button on the first screen to play the first video, and when I press key ‘s’ or ‘l’ on the screen, I want to make them show different videos, but it’s too hard because I haven’t lear…

---

## [I need quick help with my codes](https://discourse.processing.org/t/i-need-quick-help-with-my-codes/45372)

<div class="topic-metadata">

**Author:** [@cain](https://discourse.processing.org/u/cain)\
**Replies:** 7\
**Last updated:** [November 29, 2024, 2:03pm UTC](https://discourse.processing.org/t/i-need-quick-help-with-my-codes/45372 "2024-11-29T14:03:44Z")

</div>

I need 2 different images to fall from the top (not bounce!) And when the image1 comes up user should press enter or they lose. If image2 comes up they shouldn’t press the enter button or they will lose again. Can i atle…

---

## [Animations don’t work](https://discourse.processing.org/t/animations-don-t-work/45304)

<div class="topic-metadata">

**Author:** [@Student87](https://discourse.processing.org/u/Student87)\
**Replies:** 3\
**Last updated:** [November 12, 2024, 5:38pm UTC](https://discourse.processing.org/t/animations-don-t-work/45304 "2024-11-12T17:38:39Z")

</div>

None of the animations made for the Processing program are working. I was given a correct code to animate a small rectangle gliding across the screen. When I wrote out the code, copying it, I was told that there was a ;…

---

## [Pong paddle glitch](https://discourse.processing.org/t/pong-paddle-glitch/13980)

<div class="topic-metadata">

**Author:** [@XxChaoticStrike](https://discourse.processing.org/u/XxChaoticStrike)\
**Replies:** 8\
**Last updated:** [November 9, 2024, 3:55am UTC](https://discourse.processing.org/t/pong-paddle-glitch/13980 "2024-11-09T03:55:11Z")

</div>

Hello all! First post on this forum! I’ve built a cute little pong game using previous knowledge, however moving collision was not something I wanted to spend a lot of time on (I have made a bouncing ball example). Usin…

---

## [Necesito ayuda para crear un programa](https://discourse.processing.org/t/necesito-ayuda-para-crear-un-programa/34971)

<div class="topic-metadata">

**Author:** [@SharkJulen](https://discourse.processing.org/u/SharkJulen)\
**Replies:** 1\
**Last updated:** [February 4, 2022, 7:54pm UTC](https://discourse.processing.org/t/necesito-ayuda-para-crear-un-programa/34971 "2022-02-04T19:54:25Z")

</div>

Hola, he llegado nuevo a un instituto porque me he cambiado y escogí TIC. Me piden processing pero no tengo ni idea y el trabajo cuenta un 30% de la nota. Ayuda :frowning: Esto tengo que hacer: Que dibuje sobre un fo…

---

## [Seeking Help with Complex Processing Script for Visual Representation Generator](https://discourse.processing.org/t/seeking-help-with-complex-processing-script-for-visual-representation-generator/45038)

<div class="topic-metadata">

**Author:** [@tmm88](https://discourse.processing.org/u/tmm88)\
**Replies:** 6\
**Last updated:** [September 15, 2024, 9:22am UTC](https://discourse.processing.org/t/seeking-help-with-complex-processing-script-for-visual-representation-generator/45038 "2024-09-15T09:22:25Z")

</div>

Title: Seeking Help with Complex Processing Script for Visual Representation Generator Hello Processing Community, I’m working on a visual representation generator that draws inspiration from the music of Karlheinz Sto…

---

## [Type mismatch: cannot convert from element type Object to filename.pde](https://discourse.processing.org/t/type-mismatch-cannot-convert-from-element-type-object-to-filename-pde/45046)

<div class="topic-metadata">

**Author:** [@nedireact](https://discourse.processing.org/u/nedireact)\
**Replies:** 2\
**Last updated:** [September 14, 2024, 12:21pm UTC](https://discourse.processing.org/t/type-mismatch-cannot-convert-from-element-type-object-to-filename-pde/45046 "2024-09-14T12:21:16Z")

</div>

float time = 0.0; void draw() { for (Particle p : particles) { // love/hate vector float lovex = 0.0; float lovey = 0.0; for (Particle o : particles) { // do not compare with yourself if…

---

## [How to make the selectFolder() function open using a default path](https://discourse.processing.org/t/how-to-make-the-selectfolder-function-open-using-a-default-path/34369)

<div class="topic-metadata">

**Author:** [@Vertexia](https://discourse.processing.org/u/Vertexia)\
**Replies:** 14\
**Last updated:** [August 27, 2024, 8:18pm UTC](https://discourse.processing.org/t/how-to-make-the-selectfolder-function-open-using-a-default-path/34369 "2024-08-27T20:18:09Z")

</div>

I’m trying to figure out how to make the selectFolder() function open using a select path eg instead of opening up with the documents folder selected open with the sketch paths one?

[Next page](https://discourse.processing.org/tag/homework/1.md?match_all_tags=true&page=1&tags%5B%5D=homework)
