# Latest

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

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

**Page:** 552

---

## [Questions on static methods](https://discourse.processing.org/t/questions-on-static-methods/6169)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 4\
**Last updated:** [December 2, 2018, 7:33pm UTC](https://discourse.processing.org/t/questions-on-static-methods/6169 "2018-12-02T19:33:43Z")

</div>

Hi everyone, I’m trying to get my head around static methods in a class. Let’s say I want to create the following class: class MyVector { float v1, v2; MyVector(float v1, float v2) { this.v1 = v1; this.…

---

## [Shift perspective on a 2D sketch? or if not posible, easily convert to 3D?](https://discourse.processing.org/t/shift-perspective-on-a-2d-sketch-or-if-not-posible-easily-convert-to-3d/5954)

<div class="topic-metadata">

**Author:** [@gio](https://discourse.processing.org/u/gio)\
**Replies:** 2\
**Last updated:** [December 2, 2018, 6:53pm UTC](https://discourse.processing.org/t/shift-perspective-on-a-2d-sketch-or-if-not-posible-easily-convert-to-3d/5954 "2018-12-02T18:53:35Z")

</div>

Hi, I got this 2s array grid of sliding circles: https://codepen.io/giorgiomartini/pen/MzGmwW?editors=0010 Its inspired by this poster: as u can see in the poster, it has perspecive… is there a way to tilt/shift …

---

## [Open Call for 2019 Processing Foundation Fellowships](https://discourse.processing.org/t/open-call-for-2019-processing-foundation-fellowships/6168)

<div class="topic-metadata">

**Author:** [@lmccart](https://discourse.processing.org/u/lmccart)\
**Replies:** 0\
**Last updated:** [December 2, 2018, 5:35pm UTC](https://discourse.processing.org/t/open-call-for-2019-processing-foundation-fellowships/6168 "2018-12-02T17:35:37Z")

</div>

The Processing Foundation is currently accepting applications for the 2019 Fellowship Program. Processing Foundation Fellowships support artists, coders, and collectives in visionary projects that conceive a new directio…

---

## [Turning processing file into a website?](https://discourse.processing.org/t/turning-processing-file-into-a-website/6166)

<div class="topic-metadata">

**Author:** [@HelaRua](https://discourse.processing.org/u/HelaRua)\
**Replies:** 2\
**Last updated:** [December 2, 2018, 4:23pm UTC](https://discourse.processing.org/t/turning-processing-file-into-a-website/6166 "2018-12-02T16:23:42Z")

</div>

Hi! Is there a way to take a processing file and make it a website? Also: is it possible to have have many people collaborate and make changes on it while being able to see each other’s changes in real-time? Thanks :sm…

---

## [How to get pitch of human voice](https://discourse.processing.org/t/how-to-get-pitch-of-human-voice/5833)

<div class="topic-metadata">

**Author:** [@emma](https://discourse.processing.org/u/emma)\
**Replies:** 5\
**Last updated:** [December 2, 2018, 7:30am UTC](https://discourse.processing.org/t/how-to-get-pitch-of-human-voice/5833 "2018-12-02T07:30:58Z")

</div>

I’m trying to make a sketch that find the pitch of a human voice (speaking or singing). I thought I was headed in the right direction, but I’m getting stuck. Here is my strategy: Loop through all the frequencies in th…

---

## [Making 3D planets](https://discourse.processing.org/t/making-3d-planets/6136)

<div class="topic-metadata">

**Author:** [@nerdboybi](https://discourse.processing.org/u/nerdboybi)\
**Replies:** 6\
**Last updated:** [December 2, 2018, 1:42am UTC](https://discourse.processing.org/t/making-3d-planets/6136 "2018-12-02T01:42:03Z")

</div>

Hello, so I have made this program where my planet rotates around the sun. final int SUN\_SIZE=50; final int planetSize=SUN\_SIZE/2; final int X\_RADIUS=150; final int Y\_RADIUS=35; float angle=0; final float SPEED=0.03; …

---

## [How do I create regular spirograph curves around an asymmetrical shape](https://discourse.processing.org/t/how-do-i-create-regular-spirograph-curves-around-an-asymmetrical-shape/5501)

<div class="topic-metadata">

**Author:** [@Rah](https://discourse.processing.org/u/Rah)\
**Replies:** 16\
**Last updated:** [December 1, 2018, 5:22pm UTC](https://discourse.processing.org/t/how-do-i-create-regular-spirograph-curves-around-an-asymmetrical-shape/5501 "2018-12-01T17:22:27Z")

</div>

Hello! I’m desparate for a solution to my problem and very thankful for any kind of help. I’m new to this program and I need to find a way how to create regular spirograph-like curves around an asymmetrical shape. So n…

---

## [Function wont work](https://discourse.processing.org/t/function-wont-work/6134)

<div class="topic-metadata">

**Author:** [@kornFusion](https://discourse.processing.org/u/kornFusion)\
**Replies:** 4\
**Last updated:** [December 1, 2018, 5:06pm UTC](https://discourse.processing.org/t/function-wont-work/6134 "2018-12-01T17:06:43Z")

</div>

Hey Everyone, I have coded a very simple game which works perfectly except the part where the player loses. I have a function called, dead with a condition that if deadSign == true show 2 pictures (PNG) which one of t…

---

## [How to set these object in the back?](https://discourse.processing.org/t/how-to-set-these-object-in-the-back/6133)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 7\
**Last updated:** [December 1, 2018, 4:48pm UTC](https://discourse.processing.org/t/how-to-set-these-object-in-the-back/6133 "2018-12-01T16:48:52Z")

</div>

Having trouble getting the stars to be behind the building and the windows to be behind the water and the bridge. float time = 0; float\[\] a = new float\[2000\]; wall\[\]walls; void setup(){ size(1000,700); for (int i =…

---

## [Processing Foundation logo too wide for mobile](https://discourse.processing.org/t/processing-foundation-logo-too-wide-for-mobile/5838)

<div class="topic-metadata">

**Author:** [@Jakub](https://discourse.processing.org/u/Jakub)\
**Replies:** 8\
**Last updated:** [December 1, 2018, 4:33pm UTC](https://discourse.processing.org/t/processing-foundation-logo-too-wide-for-mobile/5838 "2018-12-01T16:33:14Z")

</div>

Did the logo for this site change recently? My profile icon in the top right corner is now partly out of the screen and it’s hard to see when there is a notification badge on it.

---

## [Upload files that are not images](https://discourse.processing.org/t/upload-files-that-are-not-images/5933)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 12\
**Last updated:** [December 1, 2018, 4:29pm UTC](https://discourse.processing.org/t/upload-files-that-are-not-images/5933 "2018-12-01T16:29:23Z")

</div>

Hello there, Can we authorize people to upload files that are not images (.jpg / .png type)? Like in this Discourse forum : https://discourse.mcneel.com/ Thanks again for the quality of this forum :slight\_smile:

---

## [Displaying effect unwanted](https://discourse.processing.org/t/displaying-effect-unwanted/6129)

<div class="topic-metadata">

**Author:** [@Pr0tonX](https://discourse.processing.org/u/Pr0tonX)\
**Replies:** 1\
**Last updated:** [December 1, 2018, 3:37pm UTC](https://discourse.processing.org/t/displaying-effect-unwanted/6129 "2018-12-01T15:37:26Z")

</div>

Hello, I’m trying to remake the concept of the Patatap of jonobr1 ( see https://www.patatap.com/) wich is pretty cool : 1 song 1 shape according to the song, launched by your keyboard. So I’m stuck on only one animatio…

---

## [Pushing cell agents](https://discourse.processing.org/t/pushing-cell-agents/6077)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 5\
**Last updated:** [December 1, 2018, 1:42pm UTC](https://discourse.processing.org/t/pushing-cell-agents/6077 "2018-12-01T13:42:01Z")

</div>

Hi, I’m trying to make a Cell Division and Growth algorithm where cell agents are pushed right next to neighboring cell just after the division process. I’d like the final output to look like a circle packing. Howeve…

---

## [Jonno's Music Visualisers](https://discourse.processing.org/t/jonnos-music-visualisers/6132)

<div class="topic-metadata">

**Author:** [@Uncle\_Jonno](https://discourse.processing.org/u/Uncle_Jonno)\
**Replies:** 2\
**Last updated:** [December 1, 2018, 2:50am UTC](https://discourse.processing.org/t/jonnos-music-visualisers/6132 "2018-12-01T02:50:22Z")

</div>

Instead of spamming other threads, I thought I would make my own in the Beginner section. I’ve been having a go at music visualisers in Processing and MINIM. Sorry about the la…

---

## [Applying two forces to particles](https://discourse.processing.org/t/applying-two-forces-to-particles/6127)

<div class="topic-metadata">

**Author:** [@jmean](https://discourse.processing.org/u/jmean)\
**Replies:** 1\
**Last updated:** [December 1, 2018, 1:51am UTC](https://discourse.processing.org/t/applying-two-forces-to-particles/6127 "2018-12-01T01:51:31Z")

</div>

Hi, I’m writing a sketch where I want many small particles to be attracted to large central particle, this is working. However I also want all small particles to repel from each other at the same time. I’ve tried a co…

---

## [How can I make my game create a new ball and/or restart the code?](https://discourse.processing.org/t/how-can-i-make-my-game-create-a-new-ball-and-or-restart-the-code/6111)

<div class="topic-metadata">

**Author:** [@BLy](https://discourse.processing.org/u/BLy)\
**Replies:** 6\
**Last updated:** [December 1, 2018, 12:39am UTC](https://discourse.processing.org/t/how-can-i-make-my-game-create-a-new-ball-and-or-restart-the-code/6111 "2018-12-01T00:39:17Z")

</div>

I am currently trying to make it so when a button is clicked, it will create a new ball. I’m also trying to have another button that would completely restart the game. Can someone help me out please? My code is here: va…

---

## [Volume control with analog sensor Arduino/ Processing](https://discourse.processing.org/t/volume-control-with-analog-sensor-arduino-processing/6122)

<div class="topic-metadata">

**Author:** [@Pomdibow](https://discourse.processing.org/u/Pomdibow)\
**Replies:** 6\
**Last updated:** [December 1, 2018, 12:28am UTC](https://discourse.processing.org/t/volume-control-with-analog-sensor-arduino-processing/6122 "2018-12-01T00:28:06Z")

</div>

Hi everyone, I would like to control the volume of my audio file or my video with a classic analog sensor. So I founded these sketchs to link Arduino and Processing and I modified it to map my volume but I don’t underst…

---

## [Overlaying images with opacity using tint() in P3D](https://discourse.processing.org/t/overlaying-images-with-opacity-using-tint-in-p3d/6114)

<div class="topic-metadata">

**Author:** [@currymike](https://discourse.processing.org/u/currymike)\
**Replies:** 5\
**Last updated:** [November 30, 2018, 6:37pm UTC](https://discourse.processing.org/t/overlaying-images-with-opacity-using-tint-in-p3d/6114 "2018-11-30T18:37:17Z")

</div>

I’m playing around with overlaying two images in 3D space using P3D and tint(). When I bring the opacity of the front image down instead of seeing the image behind I get a black box. (see images below). I trying to cr…

---

## [How to create the code of the following video effect?](https://discourse.processing.org/t/how-to-create-the-code-of-the-following-video-effect/6113)

<div class="topic-metadata">

**Author:** [@Malvan](https://discourse.processing.org/u/Malvan)\
**Replies:** 1\
**Last updated:** [November 30, 2018, 4:11pm UTC](https://discourse.processing.org/t/how-to-create-the-code-of-the-following-video-effect/6113 "2018-11-30T16:11:13Z")

</div>

Hello there! I was searching through the internet to find anything useful regarding to one of my school projects. I want to create something like this: https://vimeo.com/8218843 The problem is, I don’t really know wher…

---

## [FATAL EXCEPTION: Animation Thread](https://discourse.processing.org/t/fatal-exception-animation-thread/5914)

<div class="topic-metadata">

**Author:** [@Filipopl](https://discourse.processing.org/u/Filipopl)\
**Replies:** 1\
**Last updated:** [November 25, 2018, 1:01pm UTC](https://discourse.processing.org/t/fatal-exception-animation-thread/5914 "2018-11-25T13:01:07Z")

</div>

Hello everybody. I’m new with Android Mode for processing and I’m trying to add opencv library but I get this error when i run: FATAL EXCEPTION: Animation Thread Process: processing.test.mhi, PID: 8129 java.lang.Unsatis…

---

## [How to save 120 FFT values per second at 30 frames per second?](https://discourse.processing.org/t/how-to-save-120-fft-values-per-second-at-30-frames-per-second/6087)

<div class="topic-metadata">

**Author:** [@Jan](https://discourse.processing.org/u/Jan)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 8:55am UTC](https://discourse.processing.org/t/how-to-save-120-fft-values-per-second-at-30-frames-per-second/6087 "2018-11-30T08:55:48Z")

</div>

My sketch will run at 30 frames per second. (much more will not be possible, its pretty much to render) But i need very detailed audio data of the audio input. If i save the values of the spectrum bands in every draw()…

---

## [Minim AudioOutput and Oscil](https://discourse.processing.org/t/minim-audiooutput-and-oscil/2387)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 2:12am UTC](https://discourse.processing.org/t/minim-audiooutput-and-oscil/2387 "2018-11-30T02:12:37Z")

</div>

is there a good simple tutorial for Minim apart from http://code.compart where audio output mental.net creating Oscil and waveforms are discussed in a simple manner please advice

---

## [Breaking out of For Loop when mouse is depressed?](https://discourse.processing.org/t/breaking-out-of-for-loop-when-mouse-is-depressed/6071)

<div class="topic-metadata">

**Author:** [@DarkEco](https://discourse.processing.org/u/DarkEco)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 1:20am UTC](https://discourse.processing.org/t/breaking-out-of-for-loop-when-mouse-is-depressed/6071 "2018-11-30T01:20:15Z")

</div>

Hi, i’m quite new to coding in general and having a really hard time with this. Currently my loop is running from 0-1000 in a single click, but i need it to break out of the loop when i let go of the mouse. I’m guessing …

---

## [Need help for a homework (should be ez for you )](https://discourse.processing.org/t/need-help-for-a-homework-should-be-ez-for-you/6082)

<div class="topic-metadata">

**Author:** [@Robin73](https://discourse.processing.org/u/Robin73)\
**Replies:** 9\
**Last updated:** [November 30, 2018, 1:26am UTC](https://discourse.processing.org/t/need-help-for-a-homework-should-be-ez-for-you/6082 "2018-11-30T01:26:55Z")

</div>

So i have to make spawn Random Howls with random abscissa, size, and grey shades. The problem is that they are spawning and they disappear and i don’t want them to disappear here’s the code. function setup(){ crea…

---

## [P5.js online reference broken](https://discourse.processing.org/t/p5-js-online-reference-broken/6060)

<div class="topic-metadata">

**Author:** [@ktorn](https://discourse.processing.org/u/ktorn)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 1:09am UTC](https://discourse.processing.org/t/p5-js-online-reference-broken/6060 "2018-11-30T01:09:47Z")

</div>

Seems like the p5.js online reference (https://p5js.org/reference/) is currently broken, with console errors: https://p5js.org/assets/js/p5.min.js 404 (Not Found) https://p5js.org/assets/js/p5.dom.min.js 404 (Not Found)…

---

## [Is there a similar function to pushMatrix() and popMatrix() but instead for transforms its for functions like stroke() and strokeWeight()?](https://discourse.processing.org/t/is-there-a-similar-function-to-pushmatrix-and-popmatrix-but-instead-for-transforms-its-for-functions-like-stroke-and-strokeweight/6088)

<div class="topic-metadata">

**Author:** [@klaik30](https://discourse.processing.org/u/klaik30)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 12:39am UTC](https://discourse.processing.org/t/is-there-a-similar-function-to-pushmatrix-and-popmatrix-but-instead-for-transforms-its-for-functions-like-stroke-and-strokeweight/6088 "2018-11-30T00:39:42Z")

</div>

pushMatrix() and popMatrix() are super useful when I want to not destroy the current coordinate system and basically switch reference frame but in that reference frame, I might want to apply settings that only apply to t…

---

## [New Issue With Code / variable usage](https://discourse.processing.org/t/new-issue-with-code-variable-usage/6096)

<div class="topic-metadata">

**Author:** [@Etorphine](https://discourse.processing.org/u/Etorphine)\
**Replies:** 2\
**Last updated:** [November 30, 2018, 12:36am UTC](https://discourse.processing.org/t/new-issue-with-code-variable-usage/6096 "2018-11-30T00:36:44Z")

</div>

The issue I am currently having with my code is it having it randomly display the image I want. I attempted to have a variable named finalImage in which it would be stored once it selected the random image but I cannot h…

---

## [Multi-threading on Ethereum walelts transactions](https://discourse.processing.org/t/multi-threading-on-ethereum-walelts-transactions/5884)

<div class="topic-metadata">

**Author:** [@moba\_moba65](https://discourse.processing.org/u/moba_moba65)\
**Replies:** 18\
**Last updated:** [November 29, 2018, 11:54pm UTC](https://discourse.processing.org/t/multi-threading-on-ethereum-walelts-transactions/5884 "2018-11-29T23:54:20Z")

</div>

I am writing a code on Ethereum transactions between couple of wallets. My goal is to make an animation to show that how the transactions are being done between these wallets. So I gave each wallet an X-Y coordination an…

---

## [What is wrong with this code?](https://discourse.processing.org/t/what-is-wrong-with-this-code/6089)

<div class="topic-metadata">

**Author:** [@CowPieForever](https://discourse.processing.org/u/CowPieForever)\
**Replies:** 4\
**Last updated:** [November 29, 2018, 11:30pm UTC](https://discourse.processing.org/t/what-is-wrong-with-this-code/6089 "2018-11-29T23:30:59Z")

</div>

This is my code: however, whenever I run it, it gives me the error “expecting }, found ‘else’”. I’ve gone through it multiple times and I have no idea whats going wrong. Please help.

---

## [JoptionPane library error!](https://discourse.processing.org/t/joptionpane-library-error/6081)

<div class="topic-metadata">

**Author:** [@JeromeBatchoski](https://discourse.processing.org/u/JeromeBatchoski)\
**Replies:** 1\
**Last updated:** [November 29, 2018, 9:31pm UTC](https://discourse.processing.org/t/joptionpane-library-error/6081 "2018-11-29T21:31:58Z")

</div>

I keep getting the following error, ive searched everywhere, even reinstalled the program, still no progress. The package “javax.swing.J0ptionPane” does not exist. You might be missing a library. All the spelling are c…

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

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