# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=56

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

**Page:** 57

---

## [Using Sublime text.. Processing-Java error in Processing](https://discourse.processing.org/t/using-sublime-text-processing-java-error-in-processing/39998)

<div class="topic-metadata">

**Author:** [@bardo](https://discourse.processing.org/u/bardo)\
**Replies:** 6\
**Last updated:** [December 3, 2022, 5:04pm UTC](https://discourse.processing.org/t/using-sublime-text-processing-java-error-in-processing/39998 "2022-12-03T17:04:05Z")

</div>

hi there, i am tryng to use processing with Sublime. I have been following the tutorials on how to set everything. The only issue im having is that when I click build in Sublime, it gies me an error about Processign-ja…

---

## [Which one is a quadratic equation?](https://discourse.processing.org/t/which-one-is-a-quadratic-equation/39981)

<div class="topic-metadata">

**Author:** [@Robertrichardr](https://discourse.processing.org/u/Robertrichardr)\
**Replies:** 2\
**Last updated:** [December 3, 2022, 10:40am UTC](https://discourse.processing.org/t/which-one-is-a-quadratic-equation/39981 "2022-12-03T10:40:17Z")

</div>

A quadratic equation is a 2nd-degree equation, meaning it has at least one term that is equaled. A common form is ax ² + bx + c = 0, with a, b, and c being constants or mathematical coefficients and x being the unknown v…

---

## [Loading a random image for every different screen in Processing](https://discourse.processing.org/t/loading-a-random-image-for-every-different-screen-in-processing/40004)

<div class="topic-metadata">

**Author:** [@onosecond](https://discourse.processing.org/u/onosecond)\
**Replies:** 1\
**Last updated:** [December 3, 2022, 7:22am UTC](https://discourse.processing.org/t/loading-a-random-image-for-every-different-screen-in-processing/40004 "2022-12-03T07:22:34Z")

</div>

Hi everyone! Please note that I am a beginner :slight\_smile: I am trying to find how to change the background to a different image every time the screen changes. A bit of context: I am trying to make a quiz game, and e…

---

## [Converting AudioIn to a SoundFile](https://discourse.processing.org/t/converting-audioin-to-a-soundfile/39987)

<div class="topic-metadata">

**Author:** [@alpharome01](https://discourse.processing.org/u/alpharome01)\
**Replies:** 0\
**Last updated:** [December 2, 2022, 10:52am UTC](https://discourse.processing.org/t/converting-audioin-to-a-soundfile/39987 "2022-12-02T10:52:05Z")

</div>

I’m making a audio recorder/saver, this is the code as of right now. import processing.sound.\*; AudioIn audioIn; int stage; SoundFile segments\[\] = new SoundFile\[10000\]; void setup() { fullScreen(); audioIn = new Aud…

---

## [Bouncing gradient](https://discourse.processing.org/t/bouncing-gradient/39090)

<div class="topic-metadata">

**Author:** [@gradientquestion](https://discourse.processing.org/u/gradientquestion)\
**Replies:** 3\
**Last updated:** [December 2, 2022, 6:18pm UTC](https://discourse.processing.org/t/bouncing-gradient/39090 "2022-12-02T18:18:58Z")

</div>

Hello ! I am a beginner on processing, I need to make a moving gradient with 3 RGB codes. pink: 247,211,237 blue: 156,217,204 white: 255,251,233 I found this code here : https://happycoding.io/examples/processing/fo…

---

## [How to make iced animation like Elsa in Processing](https://discourse.processing.org/t/how-to-make-iced-animation-like-elsa-in-processing/39994)

<div class="topic-metadata">

**Author:** [@Aoo](https://discourse.processing.org/u/Aoo)\
**Replies:** 1\
**Last updated:** [December 2, 2022, 5:23pm UTC](https://discourse.processing.org/t/how-to-make-iced-animation-like-elsa-in-processing/39994 "2022-12-02T17:23:19Z")

</div>

how to make iced animation like Elsa in pressing？

---

## [Mac - red close window dot - how set modified?](https://discourse.processing.org/t/mac-red-close-window-dot-how-set-modified/39970)

<div class="topic-metadata">

**Author:** [@Svedblen](https://discourse.processing.org/u/Svedblen)\
**Replies:** 12\
**Last updated:** [December 2, 2022, 11:38am UTC](https://discourse.processing.org/t/mac-red-close-window-dot-how-set-modified/39970 "2022-12-02T11:38:00Z")

</div>

Hi, I’m running (Java) Processing on a Mac and I would like to be able to set the black tiny dot inside the red Close Window dot when my application is “modified”. Any ideas on how to manage that? Thanks

---

## [First project - moving a transparent circle over a semi opaque background with an image behind](https://discourse.processing.org/t/first-project-moving-a-transparent-circle-over-a-semi-opaque-background-with-an-image-behind/1078)

<div class="topic-metadata">

**Author:** [@redstevo](https://discourse.processing.org/u/redstevo)\
**Replies:** 7\
**Last updated:** [December 1, 2022, 4:09pm UTC](https://discourse.processing.org/t/first-project-moving-a-transparent-circle-over-a-semi-opaque-background-with-an-image-behind/1078 "2022-12-01T16:09:21Z")

</div>

Hi all, First post - I’ve been tasked with making a model to recreate a tunnel vision experience for someone - the model I’ve been given is using an old eye test list of letters and mimicking the inability to scan the li…

---

## [Background color not changing](https://discourse.processing.org/t/background-color-not-changing/39953)

<div class="topic-metadata">

**Author:** [@appas](https://discourse.processing.org/u/appas)\
**Replies:** 3\
**Last updated:** [December 1, 2022, 11:33am UTC](https://discourse.processing.org/t/background-color-not-changing/39953 "2022-12-01T11:33:48Z")

</div>

Hello, I am having the problem that calls to background do nothing. Eg. this minimal code: void setup() { background(51); } void draw() { clear(); } Is, according to the reference, supposed to produce this: …

---

## [Consistent patterns when using random](https://discourse.processing.org/t/consistent-patterns-when-using-random/39950)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 2\
**Last updated:** [December 1, 2022, 2:02am UTC](https://discourse.processing.org/t/consistent-patterns-when-using-random/39950 "2022-12-01T02:02:40Z")

</div>

I am designing a generative wreath. In it i want to randomly add a berry to the end of needles some of the time. However, the random() function is producing consistent patterns (see lines of berries in the image), usuall…

---

## [New Modes not showing up in Manage Modes Page](https://discourse.processing.org/t/new-modes-not-showing-up-in-manage-modes-page/39945)

<div class="topic-metadata">

**Author:** [@JamieHooper](https://discourse.processing.org/u/JamieHooper)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 7:44pm UTC](https://discourse.processing.org/t/new-modes-not-showing-up-in-manage-modes-page/39945 "2022-11-30T19:44:27Z")

</div>

I’m trying to use Python but when I go to the manage modes page the modes list is completely blank. I’ve restarted and everything, anyone come across this? This is in processing 4

---

## [Encountering bugs in Processing 4.1.1 on Windows 11](https://discourse.processing.org/t/encountering-bugs-in-processing-4-1-1-on-windows-11/39949)

<div class="topic-metadata">

**Author:** [@WolfyD](https://discourse.processing.org/u/WolfyD)\
**Replies:** 3\
**Last updated:** [November 30, 2022, 7:35pm UTC](https://discourse.processing.org/t/encountering-bugs-in-processing-4-1-1-on-windows-11/39949 "2022-11-30T19:35:27Z")

</div>

I have been using Processing 3.5.4 for a while but yesterday I decided to download Processing 4.1.1. I found a couple of bugs that are mostly just really annoying. I have read around online but have not found them ment…

---

## [Processing 4.1 is out!](https://discourse.processing.org/t/processing-4-1-is-out/39946)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 0\
**Last updated:** [November 30, 2022, 4:30pm UTC](https://discourse.processing.org/t/processing-4-1-is-out/39946 "2022-11-30T16:30:21Z")

</div>

Hello everyone, Processing 4.1 was released this week. Get it from the Download page. This release brings back the offline reference, extends support for Chinese localizations, along with more updates and fixes. It fol…

---

## [Hex color fill()](https://discourse.processing.org/t/hex-color-fill/39940)

<div class="topic-metadata">

**Author:** [@add](https://discourse.processing.org/u/add)\
**Replies:** 2\
**Last updated:** [November 30, 2022, 11:54am UTC](https://discourse.processing.org/t/hex-color-fill/39940 "2022-11-30T11:54:22Z")

</div>

Hi! I want the circle to be filled with hex colors depending on the quadrant where the mouse is located, but I don’t know what variables to put in the function drawCircle(), the program only works with RGB. so, what sho…

---

## [Please can someone help a poor old artist :)](https://discourse.processing.org/t/please-can-someone-help-a-poor-old-artist/11094)

<div class="topic-metadata">

**Author:** [@PhilDaniels](https://discourse.processing.org/u/PhilDaniels)\
**Replies:** 17\
**Last updated:** [November 30, 2022, 10:56am UTC](https://discourse.processing.org/t/please-can-someone-help-a-poor-old-artist/11094 "2022-11-30T10:56:21Z")

</div>

Hi All I am a professional artist from Norfolk, UK. I am trying to make some high definition stencils and stumbled across a chaps website that gave some info and details on processing and a script that he had made with…

---

## ['Spin the bottle' - 360 degrees with PVector](https://discourse.processing.org/t/spin-the-bottle-360-degrees-with-pvector/39872)

<div class="topic-metadata">

**Author:** [@acousticer](https://discourse.processing.org/u/acousticer)\
**Replies:** 6\
**Last updated:** [November 30, 2022, 12:42am UTC](https://discourse.processing.org/t/spin-the-bottle-360-degrees-with-pvector/39872 "2022-11-30T00:42:04Z")

</div>

Can someone please tell me what I’m missing here to make this spin 360 degrees. I was able to do it without using PVectors but it doesn’t seem to work when I alter with code with PVectors. I’m still just getting the hang…

---

## [Returning PVector from a function](https://discourse.processing.org/t/returning-pvector-from-a-function/39883)

<div class="topic-metadata">

**Author:** [@Mijin](https://discourse.processing.org/u/Mijin)\
**Replies:** 8\
**Last updated:** [November 29, 2022, 11:31am UTC](https://discourse.processing.org/t/returning-pvector-from-a-function/39883 "2022-11-29T11:31:38Z")

</div>

Hi guys, What is the best practice for functions that need to return a PVector, given that it’s a reference type? Consider the below code void SomeBigCalculation () { // Just temporarily need to know the relative p…

---

## [Why can't I draw both figures when the line moves? How to use if/else vs switch statement](https://discourse.processing.org/t/why-cant-i-draw-both-figures-when-the-line-moves-how-to-use-if-else-vs-switch-statement/39919)

<div class="topic-metadata">

**Author:** [@add](https://discourse.processing.org/u/add)\
**Replies:** 2\
**Last updated:** [November 28, 2022, 8:58pm UTC](https://discourse.processing.org/t/why-cant-i-draw-both-figures-when-the-line-moves-how-to-use-if-else-vs-switch-statement/39919 "2022-11-28T20:58:35Z")

</div>

int v=1,a = 0,r=50; void setup(){ size(200,200); frameRate= 30; } void draw() { background(200); a = (a + 1) % height; // 'a' increases between 0 and width line(0, a, width, a); stroke(0); strokeWeight …

---

## [School Assignment](https://discourse.processing.org/t/school-assignment/39920)

<div class="topic-metadata">

**Author:** [@virtualreality](https://discourse.processing.org/u/virtualreality)\
**Replies:** 4\
**Last updated:** [November 28, 2022, 6:49pm UTC](https://discourse.processing.org/t/school-assignment/39920 "2022-11-28T18:49:16Z")

</div>

How to create a Car Dashboard assignment by using processing software. The requirements is a speedometer, temperature, tachometer, fuel gauge, fuel gauge pointer need to be independently control by itself if the speedome…

---

## [Reference in local for P4](https://discourse.processing.org/t/reference-in-local-for-p4/39602)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 3\
**Last updated:** [November 28, 2022, 2:56pm UTC](https://discourse.processing.org/t/reference-in-local-for-p4/39602 "2022-11-28T14:56:56Z")

</div>

Hi, I have a demanding on last P4 ide. I think it’s better to put the new reference accessible offline when you press Ctrl-F like on P3. Some people don’t have a connection and it’s a important tool for learning. Some …

---

## [Random changing character](https://discourse.processing.org/t/random-changing-character/39887)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [November 28, 2022, 9:02am UTC](https://discourse.processing.org/t/random-changing-character/39887 "2022-11-28T09:02:59Z")

</div>

Hi there! I want yo do a changing random character. I have done this and It starts working char c = 33; c += random(93); size(500, 500); textSize(128); text(c, 250, 250); Then, I try to animate It, I wan…

---

## [Scaling a CSV to screen](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906)

<div class="topic-metadata">

**Author:** [@Rbu](https://discourse.processing.org/u/Rbu)\
**Replies:** 3\
**Last updated:** [November 27, 2022, 11:07pm UTC](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906 "2022-11-27T23:07:08Z")

</div>

Hello I’m on a project at the moment and I’m importing and using data from a CSV file, the problem I have is that the coordinates within the screen are to large and end up off screen, I need some advice on rescaling the …

---

## [Use loadTable with variable like String, String\[\], String\[\]\[\], StringList?](https://discourse.processing.org/t/use-loadtable-with-variable-like-string-string-string-stringlist/12457)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 7\
**Last updated:** [November 27, 2022, 11:05pm UTC](https://discourse.processing.org/t/use-loadtable-with-variable-like-string-string-string-stringlist/12457 "2022-11-27T23:05:26Z")

</div>

Does anyone know if you can use loadTable() to generate a Table using a local variable rather than a file as input? For example if you have CSV-like data stored in a String, or a String\[\] (per row), or a String\[\]\[\] (per…

---

## [How to record sound from a microphone using the Core Sound library?](https://discourse.processing.org/t/how-to-record-sound-from-a-microphone-using-the-core-sound-library/39811)

<div class="topic-metadata">

**Author:** [@jvolker](https://discourse.processing.org/u/jvolker)\
**Replies:** 1\
**Last updated:** [November 27, 2022, 8:06pm UTC](https://discourse.processing.org/t/how-to-record-sound-from-a-microphone-using-the-core-sound-library/39811 "2022-11-27T20:06:10Z")

</div>

Hi, I’m looking for a way to record and playback sound from a microphone using the Core Sound library. It seems there are no examples to do this and looking at the API I don’t see a way to get from AudioIn to AudioSampl…

---

## [Game over screen problem in a game](https://discourse.processing.org/t/game-over-screen-problem-in-a-game/39903)

<div class="topic-metadata">

**Author:** [@processinglearner](https://discourse.processing.org/u/processinglearner)\
**Replies:** 4\
**Last updated:** [November 27, 2022, 7:03pm UTC](https://discourse.processing.org/t/game-over-screen-problem-in-a-game/39903 "2022-11-27T19:03:52Z")

</div>

hi! I made one game with loop.And there is game screen in the end.But this screen should be active for 5 seconds in the loop.My code is like this: void draw() { ... if( frameCount / 60 == 3 ) { fill(255, 0, 255);…

---

## [MIDIBus: extending Advanced MIDIMessageIO to handle MIDI Patch Change output](https://discourse.processing.org/t/midibus-extending-advanced-midimessageio-to-handle-midi-patch-change-output/39900)

<div class="topic-metadata">

**Author:** [@m47k0](https://discourse.processing.org/u/m47k0)\
**Replies:** 0\
**Last updated:** [November 27, 2022, 4:13pm UTC](https://discourse.processing.org/t/midibus-extending-advanced-midimessageio-to-handle-midi-patch-change-output/39900 "2022-11-27T16:13:36Z")

</div>

Have been generating data which I map & output as MIDI controller change data with TheMIDIBus, no problem. I now want to output Patch Change data, which out the box TheMIDIBus doesn’t appear to handle. In the MIDIBus A…

---

## [Programming advice (spiral from point to point)](https://discourse.processing.org/t/programming-advice-spiral-from-point-to-point/37628)

<div class="topic-metadata">

**Author:** [@Rbu](https://discourse.processing.org/u/Rbu)\
**Replies:** 16\
**Last updated:** [November 27, 2022, 11:04am UTC](https://discourse.processing.org/t/programming-advice-spiral-from-point-to-point/37628 "2022-11-27T11:04:32Z")

</div>

Hello, I am looking to start a programming project. But stuck at the first I want to program a progressive circle that follows a line. I will add a picture because im unsure how to explain.

---

## [Change colors on different objects blinking](https://discourse.processing.org/t/change-colors-on-different-objects-blinking/39832)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 8\
**Last updated:** [November 27, 2022, 2:19am UTC](https://discourse.processing.org/t/change-colors-on-different-objects-blinking/39832 "2022-11-27T02:19:35Z")

</div>

Hello, I need help to change the colors! i am trynig to make a differents objects like a rect, circle, triangle, blink/flash with diferent colors, I am till now, can do it with black and white. As the code below i show…

---

## [Sketch code recorded a sound and i do not know wy and also take the sound/noise recorded off](https://discourse.processing.org/t/sketch-code-recorded-a-sound-and-i-do-not-know-wy-and-also-take-the-sound-noise-recorded-off/39888)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 0\
**Last updated:** [November 26, 2022, 9:15pm UTC](https://discourse.processing.org/t/sketch-code-recorded-a-sound-and-i-do-not-know-wy-and-also-take-the-sound-noise-recorded-off/39888 "2022-11-26T21:15:39Z")

</div>

Hello people. I found anice code and i modify it. Added some ellipses and add my onw picture.jpg, changed some numbers and the size of the canva. This bubbling the image with sounds from microphone, ( i wnat to change …

---

## [In the Processing ball game, the movements of the balls are limited](https://discourse.processing.org/t/in-the-processing-ball-game-the-movements-of-the-balls-are-limited/39890)

<div class="topic-metadata">

**Author:** [@Huginn](https://discourse.processing.org/u/Huginn)\
**Replies:** 1\
**Last updated:** [November 26, 2022, 10:25pm UTC](https://discourse.processing.org/t/in-the-processing-ball-game-the-movements-of-the-balls-are-limited/39890 "2022-11-26T22:25:01Z")

</div>

float xPos = 400; float yPos = 300; float xPos2 = 0; float yPos2 = 300; int radius = 50; int x1, y1, x2, y2; float theta = 0f; int speedX = 2; int speedY = 2; int x1\_, y1\_, x2\_, y2\_; float theta\_ = 0f; int speedX\_ …

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=55)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=57)
