# Gallery

**URL:** https://discourse.processing.org/c/gallery/21.md?page=1

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

**Page:** 2

---

## [How to run a function every n frames in Processing? A mini callback tutorial](https://discourse.processing.org/t/how-to-run-a-function-every-n-frames-in-processing-a-mini-callback-tutorial/48812)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 1\
**Last updated:** [June 15, 2026, 10:43am UTC](https://discourse.processing.org/t/how-to-run-a-function-every-n-frames-in-processing-a-mini-callback-tutorial/48812 "2026-06-15T10:43:26Z")

</div>

The draw() loop runs 60 times per second. That’s great for animation, but what if you want something to happen only every n frames? A quick way to do it is to use frameCount and the modulo operator, like so: if(frameCo…

---

## [P3D Display of GLUT Shapes](https://discourse.processing.org/t/p3d-display-of-glut-shapes/48796)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [June 11, 2026, 6:07am UTC](https://discourse.processing.org/t/p3d-display-of-glut-shapes/48796 "2026-06-11T06:07:53Z")

</div>

The following source code demonstrates display of GLUT (OpenGL Utility Toolkit) shapes in a P3D GLWindow. Initial implementation of GL2ES1 is necessary and carried out in the settings() method before the sketch is set u…

---

## [JavaFX MeshView 3D Cube](https://discourse.processing.org/t/javafx-meshview-3d-cube/47890)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [May 14, 2026, 6:16am UTC](https://discourse.processing.org/t/javafx-meshview-3d-cube/47890 "2026-05-14T06:16:05Z")

</div>

JavaFX 3D Graphics has 3 pre-defined shapes (cylinder, box, sphere); other shapes require the use of MeshView which the following code utilizes to create a multi-colored 3D cube (not obtainable with ‘box’). For backgrou…

---

## [JavaFX MeshView 3D Torus](https://discourse.processing.org/t/javafx-meshview-3d-torus/48534)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [May 13, 2026, 5:23pm UTC](https://discourse.processing.org/t/javafx-meshview-3d-torus/48534 "2026-05-13T17:23:43Z")

</div>

JavaFX comes with three pre-defined 3D shapes: cylinder, sphere, and box. It is possible to create other shapes such as the pyramid and torus using TriangleMesh and MeshView. The following source code may be used to c…

---

## [Introducing Dynamic Learning](https://discourse.processing.org/t/introducing-dynamic-learning/48517)

<div class="topic-metadata">

**Author:** [@Jithin](https://discourse.processing.org/u/Jithin)\
**Replies:** 2\
**Last updated:** [May 12, 2026, 5:32pm UTC](https://discourse.processing.org/t/introducing-dynamic-learning/48517 "2026-05-12T17:32:59Z")

</div>

Hey everyone i was the past GSoC fellow and mentor for Processing foundation. I have worked on dynamiclearning, which is a project to make use of p5 js to improve STEM education. Recently I have been working on revampin…

---

## [Some Math thing about H₁₂D](https://discourse.processing.org/t/some-math-thing-about-h-d/48528)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 0\
**Last updated:** [May 10, 2026, 10:21am UTC](https://discourse.processing.org/t/some-math-thing-about-h-d/48528 "2026-05-10T10:21:51Z")

</div>

Like it says on the can: https://editor.p5js.org/seanhaddps/full/jHOGir6mb Code: H12D by seanhaddps -p5.js Web Editor

---

## [Some Math Thing about HD](https://discourse.processing.org/t/some-math-thing-about-hd/48514)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 0\
**Last updated:** [May 7, 2026, 12:35pm UTC](https://discourse.processing.org/t/some-math-thing-about-hd/48514 "2026-05-07T12:35:08Z")

</div>

A sketch for some math thing about HD iterated system. H: fast Walsh Hadamard transform D: diag(±1) GPT vibe coded the ideas up very nicely: https://editor.p5js.org/seanhaddps/full/um-DEnBEo

---

## [Processing.org 1.51 Ray tracing](https://discourse.processing.org/t/processing-org-1-51-ray-tracing/48499)

<div class="topic-metadata">

**Author:** [@adaptinnovative](https://discourse.processing.org/u/adaptinnovative)\
**Replies:** 0\
**Last updated:** [May 5, 2026, 1:00am UTC](https://discourse.processing.org/t/processing-org-1-51-ray-tracing/48499 "2026-05-05T01:00:53Z")

</div>

---

## [Processing 1.51 Ray Marcher](https://discourse.processing.org/t/processing-1-51-ray-marcher/48492)

<div class="topic-metadata">

**Author:** [@adaptinnovative](https://discourse.processing.org/u/adaptinnovative)\
**Replies:** 0\
**Last updated:** [May 2, 2026, 4:18am UTC](https://discourse.processing.org/t/processing-1-51-ray-marcher/48492 "2026-05-02T04:18:10Z")

</div>

---

## [Journey through the stars](https://discourse.processing.org/t/journey-through-the-stars/48473)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [April 26, 2026, 10:15pm UTC](https://discourse.processing.org/t/journey-through-the-stars/48473 "2026-04-26T22:15:20Z")

</div>

Hello folks! Best enjoyed in the darkness of space. ▶ Code Suggested listening while running sketch: ▶ David Bowie - Space Oddity (Official Video) :)

---

## [Launcher for Multi-Renderer PApplets](https://discourse.processing.org/t/launcher-for-multi-renderer-papplets/46764)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 2\
**Last updated:** [April 26, 2026, 2:26pm UTC](https://discourse.processing.org/t/launcher-for-multi-renderer-papplets/46764 "2026-04-26T14:26:58Z")

</div>

Hello folks! My exploration of a launcher for PApplets with different renderers. This was used primarily for testing Windows scaling on my W10 system and how it affects the sketch window. Code: /\*\* \* Launcher for Mu…

---

## [Native window access and inset handling in Processing JAVA2D and P2D](https://discourse.processing.org/t/native-window-access-and-inset-handling-in-processing-java2d-and-p2d/48437)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [April 14, 2026, 7:21pm UTC](https://discourse.processing.org/t/native-window-access-and-inset-handling-in-processing-java2d-and-p2d/48437 "2026-04-14T19:21:49Z")

</div>

Hello folks! This is an exploration of native window access in P2D/P3D and JAVA2D. In my Windows 10 environment, I was seeing offsets, and I was compelled to understand why. And now I do! This is an advanced topic an…

---

## [AI assisted coding inside of Processing IDE](https://discourse.processing.org/t/ai-assisted-coding-inside-of-processing-ide/48223)

<div class="topic-metadata">

**Author:** [@tomjuggler](https://discourse.processing.org/u/tomjuggler)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 6:35am UTC](https://discourse.processing.org/t/ai-assisted-coding-inside-of-processing-ide/48223 "2026-04-14T06:35:41Z")

</div>

Check out my article (with video) on how I use Cecli Open Source AI coding assistant to write code for me inside of the Processing IDE. Just type a comment and the AI will do the rest! Cecli Watch Files Mode - Circus Sc…

---

## [Processing Geometry Suite](https://discourse.processing.org/t/processing-geometry-suite/29924)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 34\
**Last updated:** [April 9, 2026, 8:42pm UTC](https://discourse.processing.org/t/processing-geometry-suite/29924 "2026-04-09T20:42:02Z")

</div>

Processing Geometry Suite Hi everyone. I’m pleased to share something I’ve been working on the past few months – a 2D computational geometry that I’ve called Processing Geometry Suite. The focus of the library is on vi…

---

## [Peace, Love and Happiness!](https://discourse.processing.org/t/peace-love-and-happiness/48413)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 1\
**Last updated:** [April 9, 2026, 8:28pm UTC](https://discourse.processing.org/t/peace-love-and-happiness/48413 "2026-04-09T20:28:25Z")

</div>

Hello folks! I was inspired by something I read reflecting on the 60’s and the peace, love and happiness vibe of that era. ▶ Code ▶ Images The happy face looks sad! Reminded me of this: “You can’t wait until life i…

---

## [New educational program for young beginners in programming](https://discourse.processing.org/t/new-educational-program-for-young-beginners-in-programming/35002)

<div class="topic-metadata">

**Author:** [@desk](https://discourse.processing.org/u/desk)\
**Replies:** 1\
**Last updated:** [April 2, 2026, 6:42am UTC](https://discourse.processing.org/t/new-educational-program-for-young-beginners-in-programming/35002 "2026-04-02T06:42:06Z")

</div>

I’ve decided to open source a few projects I’ve developed so that others can use and even help develop them. This project helps young children understand instructions and sequence in a cute way. https://github.com/t…

---

## [Lost in Space PGraphics Exploration](https://discourse.processing.org/t/lost-in-space-pgraphics-exploration/48391)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [April 1, 2026, 3:46pm UTC](https://discourse.processing.org/t/lost-in-space-pgraphics-exploration/48391 "2026-04-01T15:46:22Z")

</div>

Hello folks! Some simple and fun code exploring PGraphics. // Author: GLV // Date: 2026-04-01 // Description: // Some fun with PGraphics // Watch while listening to: // https://open.spotify.com/track/1i2HCDqbRb6onbo…

---

## [PstarEngine : I'm building a small game engine with Processing and P5js](https://discourse.processing.org/t/pstarengine-im-building-a-small-game-engine-with-processing-and-p5js/46870)

<div class="topic-metadata">

**Author:** [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Replies:** 12\
**Last updated:** [April 1, 2026, 11:47am UTC](https://discourse.processing.org/t/pstarengine-im-building-a-small-game-engine-with-processing-and-p5js/46870 "2026-04-01T11:47:49Z")

</div>

It is about having 2 versions: in Java with Processing and in Javascript with P5js. The idea of this project is, on the one hand, to be able to create small 2D games by being able to understand and access the engine cod…

---

## [Have a heart...❤️](https://discourse.processing.org/t/have-a-heart/47881)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 1\
**Last updated:** [March 26, 2026, 4:44pm UTC](https://discourse.processing.org/t/have-a-heart/47881 "2026-03-26T16:44:32Z")

</div>

// heart float x = 16 \* pow(sin(angle), 3); float y = 13 \* cos(angle) - 5 \* cos(2 \* angle) - 2 \* cos(3 \* angle) - cos(4 \* angle); ▶ Code Reference: Valentine's Day - Wikipedia P…

---

## [Cochlear spiral spectrogram — visualizing music like the inner ear](https://discourse.processing.org/t/cochlear-spiral-spectrogram-visualizing-music-like-the-inner-ear/48267)

<div class="topic-metadata">

**Author:** [@nivdvir](https://discourse.processing.org/u/nivdvir)\
**Replies:** 0\
**Last updated:** [March 22, 2026, 2:17pm UTC](https://discourse.processing.org/t/cochlear-spiral-spectrogram-visualizing-music-like-the-inner-ear/48267 "2026-03-22T14:17:30Z")

</div>

I built a music visualization system that maps audio frequencies onto a Fermat spiral, mimicking how the human cochlea processes sound. How it works: 381 logarithmically-spaced frequency bins (20 Hz — 8 kHz) Mapped …

---

## [Pi Day (Monte Carlo method)](https://discourse.processing.org/t/pi-day-monte-carlo-method/48237)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [March 19, 2026, 5:46pm UTC](https://discourse.processing.org/t/pi-day-monte-carlo-method/48237 "2026-03-19T17:46:59Z")

</div>

Hello folks! It is never to late for Pi! // Monte Carlo Pi // glv // 2026-03-19 // Reference: // https://en.wikipedia.org/wiki/Monte\_Carlo\_method // The exact math: // Area of circle: PI\*r\*r // Area of square: 2\*r \* …

---

## [P5.js virtual POV Poi in my Flask Web App](https://discourse.processing.org/t/p5-js-virtual-pov-poi-in-my-flask-web-app/48222)

<div class="topic-metadata">

**Author:** [@tomjuggler](https://discourse.processing.org/u/tomjuggler)\
**Replies:** 0\
**Last updated:** [March 18, 2026, 7:21pm UTC](https://discourse.processing.org/t/p5-js-virtual-pov-poi-in-my-flask-web-app/48222 "2026-03-18T19:21:07Z")

</div>

Still using Processing after 10 years! I do some Android prototyping and also this P5.js sketch which takes images and displays a virtual persistence-of-vision effect on my site (https://magicpoi.com - login is for my …

---

## [JavaFX MeshView Cube with Images](https://discourse.processing.org/t/javafx-meshview-cube-with-images/48010)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [March 2, 2026, 6:46pm UTC](https://discourse.processing.org/t/javafx-meshview-cube-with-images/48010 "2026-03-02T18:46:16Z")

</div>

The following source code demonstrates JavaFX MeshView for 3D graphics by creating a cube with different images on its faces in the default Processing FX2D window. An underlying TriangleMesh is used. It was designed on…

---

## [MultiImages From Single File](https://discourse.processing.org/t/multiimages-from-single-file/47851)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 5\
**Last updated:** [February 27, 2026, 3:44pm UTC](https://discourse.processing.org/t/multiimages-from-single-file/47851 "2026-02-27T15:44:14Z")

</div>

The following source code will display individual images from a single .png file containing a grid of images. This obviates the need to include multiple image files in the sketch folder. This demo was developed in MacO…

---

## [SWNet16 Neural Network](https://discourse.processing.org/t/swnet16-neural-network/47779)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 2\
**Last updated:** [January 27, 2026, 3:13am UTC](https://discourse.processing.org/t/swnet16-neural-network/47779 "2026-01-27T03:13:35Z")

</div>

The idea is to fuse multiple small width layers (ie. width 16 layers) into one larger layer using the one-to-all connectivity of a fast transform. And then stack those layers into a neural network. There are a few techn…

---

## [Conway's Game of Life Showcase](https://discourse.processing.org/t/conways-game-of-life-showcase/47781)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 0\
**Last updated:** [January 21, 2026, 4:53pm UTC](https://discourse.processing.org/t/conways-game-of-life-showcase/47781 "2026-01-21T16:53:10Z")

</div>

Implementing Conway’s Game of Life has always been of interest to me since I first became aware of it. Although my early attempts worked they were slow and could not manage large grids, but then I was a novice programmer…

---

## [JavaFX Controls Preview](https://discourse.processing.org/t/javafx-controls-preview/41353)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 16\
**Last updated:** [January 8, 2026, 2:53pm UTC](https://discourse.processing.org/t/javafx-controls-preview/41353 "2026-01-08T14:53:55Z")

</div>

The screenshot below is a preview of JavaFX Controls. It was created in Processing4 after adding the javafx.controls module to line 1086 of JavaBuild.java and recompiling the editor. The source code and output are show…

---

## [Read and write images and text files Android](https://discourse.processing.org/t/read-and-write-images-and-text-files-android/29947)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 10\
**Last updated:** [January 5, 2026, 5:25am UTC](https://discourse.processing.org/t/read-and-write-images-and-text-files-android/29947 "2026-01-05T05:25:11Z")

</div>

text saver. Save text to any location in android. Please set the manifest permissions by adding the following file to your sketch folder. AndroidManifest.xml \<?xml version="1.0" encoding="UTF-8"?\> \<manifest xmlns:andro…

---

## [New Year Countdown Timer to 2026](https://discourse.processing.org/t/new-year-countdown-timer-to-2026/47591)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 2\
**Last updated:** [February 27, 2026, 3:25pm UTC](https://discourse.processing.org/t/new-year-countdown-timer-to-2026/47591 "2026-02-27T15:25:01Z")

</div>

Hello folks! New Year Countdown Timer to 2026. p5.js version needs work and now counting down to 2027: Java version: // New Year Countdown to 2026 // Time Elapsed using System.currentTimeMillis() // v1.0.1 // GLV 2…

---

## [iOSEditor in Processing](https://discourse.processing.org/t/ioseditor-in-processing/47672)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [December 29, 2025, 8:31pm UTC](https://discourse.processing.org/t/ioseditor-in-processing/47672 "2025-12-29T20:31:33Z")

</div>

Editors created in Processing are capable of running several different computer languages; basically if there is a compiler for a language, a Processing editor app can run the source code for that language. The followin…

[Previous page](https://discourse.processing.org/c/gallery/21.md)

[Next page](https://discourse.processing.org/c/gallery/21.md?page=2)
