# Processing

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

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

**Page:** 353

---

## [STOP the explosion](https://discourse.processing.org/t/stop-the-explosion/5071)

<div class="topic-metadata">

**Author:** [@kornFusion](https://discourse.processing.org/u/kornFusion)\
**Replies:** 4\
**Last updated:** [November 1, 2018, 5:36pm UTC](https://discourse.processing.org/t/stop-the-explosion/5071 "2018-11-01T17:36:43Z")

</div>

Hey Guys, I have the following code which I want to stop the particles before they leave the screen… So I dont know how to stop them near the edges of the screen… Please advice… Thanks Particle \[\] pickles = new Part…

---

## [Arc radius uglyness](https://discourse.processing.org/t/arc-radius-uglyness/4999)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 3\
**Last updated:** [November 1, 2018, 5:21pm UTC](https://discourse.processing.org/t/arc-radius-uglyness/4999 "2018-11-01T17:21:02Z")

</div>

in my arc i see a radial pixel jump, ( processing 3.4 , win7 ) any trick to avoid that? int m = 150, r = 200; float w =TAU/60; void setup() { size(300, 300); noFill(); strokeWeight(3); } void draw() { backgro…

---

## [What's the right approach to draw in / overlay PGraphics with transparency?](https://discourse.processing.org/t/whats-the-right-approach-to-draw-in-overlay-pgraphics-with-transparency/5060)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 4\
**Last updated:** [November 1, 2018, 2:11pm UTC](https://discourse.processing.org/t/whats-the-right-approach-to-draw-in-overlay-pgraphics-with-transparency/5060 "2018-11-01T14:11:50Z")

</div>

Hi! What would be the right way to have multiple PGraphics with transparency and draw them on top of each other to avoid tinting? I’ll try to show the issue with some images and code: PGraphics pg; int mode = 0; …

---

## [Trying to turn static collage image into animation](https://discourse.processing.org/t/trying-to-turn-static-collage-image-into-animation/5066)

<div class="topic-metadata">

**Author:** [@chisholmem](https://discourse.processing.org/u/chisholmem)\
**Replies:** 1\
**Last updated:** [November 1, 2018, 4:15am UTC](https://discourse.processing.org/t/trying-to-turn-static-collage-image-into-animation/5066 "2018-11-01T04:15:32Z")

</div>

Hi there, I am new to processing and trying to figure out an assignment for class. I am currently trying to figure out how to incorporate millis() into this code, to scale/descale the images I have and to add a colored s…

---

## [quadraticVertex function not working properly](https://discourse.processing.org/t/quadraticvertex-function-not-working-properly/4938)

<div class="topic-metadata">

**Author:** [@cbroney](https://discourse.processing.org/u/cbroney)\
**Replies:** 6\
**Last updated:** [November 1, 2018, 1:59am UTC](https://discourse.processing.org/t/quadraticvertex-function-not-working-properly/4938 "2018-11-01T01:59:45Z")

</div>

when I load this shape i created it doesnt draw with the curves unless I remove the “b1” from each line. can someone please tell me why PShape b1; PShape b2; PShape b3; void setup() { size(1600,1200); background(25…

---

## [Dimension of the display window](https://discourse.processing.org/t/dimension-of-the-display-window/5063)

<div class="topic-metadata">

**Author:** [@ACT](https://discourse.processing.org/u/ACT)\
**Replies:** 4\
**Last updated:** [November 1, 2018, 1:28am UTC](https://discourse.processing.org/t/dimension-of-the-display-window/5063 "2018-11-01T01:28:18Z")

</div>

What are the sizes of the window display?

---

## [Help with a computer science 10 "Red Square" assignment](https://discourse.processing.org/t/help-with-a-computer-science-10-red-square-assignment/5008)

<div class="topic-metadata">

**Author:** [@zstrei](https://discourse.processing.org/u/zstrei)\
**Replies:** 16\
**Last updated:** [November 1, 2018, 1:22am UTC](https://discourse.processing.org/t/help-with-a-computer-science-10-red-square-assignment/5008 "2018-11-01T01:22:55Z")

</div>

I have to create a game similar to the game in the link provided below. http://www.hypedup.co.uk/games/redsquare.html I am only in Grade Ten, so it doesn’t need to be fancy or with any hard code. The Marking rubric is …

---

## [Arduino, Adafruit board help](https://discourse.processing.org/t/arduino-adafruit-board-help/4964)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [November 1, 2018, 1:16am UTC](https://discourse.processing.org/t/arduino-adafruit-board-help/4964 "2018-11-01T01:16:31Z")

</div>

Hello dear processors, so I have bought this pulse-room kit. I followed all the steps that appear here and when I verify the code an error appears that says : invalid conversion from ‘void ()(tc\_module)’ to ‘void (\*)()’ …

---

## [Using Millis() to scale an animation](https://discourse.processing.org/t/using-millis-to-scale-an-animation/5064)

<div class="topic-metadata">

**Author:** [@chisholmem](https://discourse.processing.org/u/chisholmem)\
**Replies:** 1\
**Last updated:** [November 1, 2018, 12:59am UTC](https://discourse.processing.org/t/using-millis-to-scale-an-animation/5064 "2018-11-01T00:59:55Z")

</div>

I’m really confused as to how I can add millis() to animation I’ve already made. If you run the code I have below, it shows yellow stars on a blue background, moving from side to side. What I want to do is to change it i…

---

## [Help a newbie with polymorphic particles](https://discourse.processing.org/t/help-a-newbie-with-polymorphic-particles/5068)

<div class="topic-metadata">

**Author:** [@jbr123](https://discourse.processing.org/u/jbr123)\
**Replies:** 5\
**Last updated:** [November 1, 2018, 12:40am UTC](https://discourse.processing.org/t/help-a-newbie-with-polymorphic-particles/5068 "2018-11-01T00:40:01Z")

</div>

Hi there, I am working on a university project with processing. This is a first time for me, so bear with me… We are creating a particle system (of sorts) that will eventually trigger sounds etc. The code I have attache…

---

## [RSS Feed to print through receipt printer](https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945)

<div class="topic-metadata">

**Author:** [@Lili](https://discourse.processing.org/u/Lili)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 10:54pm UTC](https://discourse.processing.org/t/rss-feed-to-print-through-receipt-printer/4945 "2018-10-31T22:54:47Z")

</div>

Hi! I’m very new to Processing and coding but I’m trying to print the content of an RSS Feed to print through a receipt/ thermal printer. I can print text through the MyPort.Write function but it’d be great if it would …

---

## [Updating to processing latest IDE](https://discourse.processing.org/t/updating-to-processing-latest-ide/4939)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 6:39pm UTC](https://discourse.processing.org/t/updating-to-processing-latest-ide/4939 "2018-10-31T18:39:41Z")

</div>

I want to keep writing and compiling sketches in 2.2.1 But my current IDE from 2.2.1 download does not include line numbers. I want to use the current IDE with processing 2.2.1 Is this possible , to isolate IDE from p…

---

## [Draw order in 3D](https://discourse.processing.org/t/draw-order-in-3d/4789)

<div class="topic-metadata">

**Author:** [@garroad\_ran](https://discourse.processing.org/u/garroad_ran)\
**Replies:** 15\
**Last updated:** [October 31, 2018, 6:06pm UTC](https://discourse.processing.org/t/draw-order-in-3d/4789 "2018-10-31T18:06:44Z")

</div>

I’m getting into 3d for the first time and I’m not quite sure how I’m supposed to handle draw order. The easiest way to explain my question is probably with an image and code. void setup() { size(1280, 720, P3D); …

---

## [Using Serial data in real time?](https://discourse.processing.org/t/using-serial-data-in-real-time/5056)

<div class="topic-metadata">

**Author:** [@csanyipal](https://discourse.processing.org/u/csanyipal)\
**Replies:** 4\
**Last updated:** [October 31, 2018, 5:25pm UTC](https://discourse.processing.org/t/using-serial-data-in-real-time/5056 "2018-10-31T17:25:39Z")

</div>

Hi, I have a project which uses data from the Serial port. The sketch is the following: // Processing code for this example // Tweak the Arduino Logo // by Scott Fitzgerald // This example code is in the publi…

---

## [Chess Board: make all fields flash](https://discourse.processing.org/t/chess-board-make-all-fields-flash/4943)

<div class="topic-metadata">

**Author:** [@hexe43](https://discourse.processing.org/u/hexe43)\
**Replies:** 2\
**Last updated:** [October 31, 2018, 5:22pm UTC](https://discourse.processing.org/t/chess-board-make-all-fields-flash/4943 "2018-10-31T17:22:56Z")

</div>

Hi, I am new in processing and I have to make my chess board flash (every field in a random color in a specific frame rate) when I press enter and make it stop flashing when I press it again. I already tried several thi…

---

## [For Loop Problem](https://discourse.processing.org/t/for-loop-problem/4913)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 4\
**Last updated:** [October 31, 2018, 5:16pm UTC](https://discourse.processing.org/t/for-loop-problem/4913 "2018-10-31T17:16:07Z")

</div>

I have code that initializes a 2d array, but when the Y goes to zero it gives an array out of bounds exception. Why is this? How do I fix it?

---

## [Arduino + Raspberry Pi - install IDE](https://discourse.processing.org/t/arduino-raspberry-pi-install-ide/5062)

<div class="topic-metadata">

**Author:** [@tgoode451](https://discourse.processing.org/u/tgoode451)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 4:50pm UTC](https://discourse.processing.org/t/arduino-raspberry-pi-install-ide/5062 "2018-10-31T16:50:23Z")

</div>

---

## [Drawing waveform into Wavetable from Minim](https://discourse.processing.org/t/drawing-waveform-into-wavetable-from-minim/5052)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 0\
**Last updated:** [October 31, 2018, 2:11pm UTC](https://discourse.processing.org/t/drawing-waveform-into-wavetable-from-minim/5052 "2018-10-31T14:11:51Z")

</div>

Hello and good afternoon! I am having some issues inserting this method into the wavetable examples in Minim library. I’d like to draw the waveform like pure data when plotting the waveform. Maybe with the mousePresse…

---

## [Minim Library NullPointerException upon loading file](https://discourse.processing.org/t/minim-library-nullpointerexception-upon-loading-file/5051)

<div class="topic-metadata">

**Author:** [@Marcus152](https://discourse.processing.org/u/Marcus152)\
**Replies:** 0\
**Last updated:** [October 31, 2018, 2:05pm UTC](https://discourse.processing.org/t/minim-library-nullpointerexception-upon-loading-file/5051 "2018-10-31T14:05:05Z")

</div>

Hi again, I seem to be having a problem with the minim library in Processing 3.0b5. I’ve properly loaded in my audio files, but when I start the game, it gives me this error in the syntax each time: ==== JavaSound Minim…

---

## [Need some home help combining both of these](https://discourse.processing.org/t/need-some-home-help-combining-both-of-these/5011)

<div class="topic-metadata">

**Author:** [@orb](https://discourse.processing.org/u/orb)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 10:56am UTC](https://discourse.processing.org/t/need-some-home-help-combining-both-of-these/5011 "2018-10-31T10:56:26Z")

</div>

I’m trying make the player shoot the bullets, but I have no idea how. What I do know that is that the second code can make player shoot bullets. I just need help making them fit each other. \[code re-posted below\]

---

## [Need Simple Colision Example](https://discourse.processing.org/t/need-simple-colision-example/5002)

<div class="topic-metadata">

**Author:** [@Staalone](https://discourse.processing.org/u/Staalone)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 9:31am UTC](https://discourse.processing.org/t/need-simple-colision-example/5002 "2018-10-31T09:31:27Z")

</div>

Hy, I need a code for a ball that’s controlled by the mouse that when it hits any of the corners the ball goes back to the middle, thank you!

---

## [Processing on a free Wix-site?](https://discourse.processing.org/t/processing-on-a-free-wix-site/5013)

<div class="topic-metadata">

**Author:** [@bobbiD](https://discourse.processing.org/u/bobbiD)\
**Replies:** 3\
**Last updated:** [October 31, 2018, 12:44am UTC](https://discourse.processing.org/t/processing-on-a-free-wix-site/5013 "2018-10-31T00:44:04Z")

</div>

Hello! I started the code since a few months on processing for artschool, and I would have liked integrating directly a processing code into a page of my Free Wixsite. Is it possible ? and if yes have you some informati…

---

## [How to make a color palette from an image ordered by frequence](https://discourse.processing.org/t/how-to-make-a-color-palette-from-an-image-ordered-by-frequence/4850)

<div class="topic-metadata">

**Author:** [@BulVvyvXsWDYZl8J](https://discourse.processing.org/u/BulVvyvXsWDYZl8J)\
**Replies:** 9\
**Last updated:** [October 30, 2018, 10:20pm UTC](https://discourse.processing.org/t/how-to-make-a-color-palette-from-an-image-ordered-by-frequence/4850 "2018-10-30T22:20:42Z")

</div>

My goal is to get an array that’ll show in order the most used colours in an image. The catch is that the colours should be perceptually different. I have working code that does the first part — get all the colours in o…

---

## [Button automatically clicked once at the beginning of the program](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995)

<div class="topic-metadata">

**Author:** [@AllenLiu574](https://discourse.processing.org/u/AllenLiu574)\
**Replies:** 3\
**Last updated:** [October 30, 2018, 6:55pm UTC](https://discourse.processing.org/t/button-automatically-clicked-once-at-the-beginning-of-the-program/4995 "2018-10-30T18:55:04Z")

</div>

The following is part of the testing code I’m working on: I was trying to implement the button, and when it is clicked, it will print out the message “Button pressed”. I ran the program by clicking the run button on the…

---

## [PVectors, traveling a path](https://discourse.processing.org/t/pvectors-traveling-a-path/4887)

<div class="topic-metadata">

**Author:** [@jack.sibert](https://discourse.processing.org/u/jack.sibert)\
**Replies:** 4\
**Last updated:** [October 30, 2018, 6:50pm UTC](https://discourse.processing.org/t/pvectors-traveling-a-path/4887 "2018-10-30T18:50:54Z")

</div>

I’m trying to write a program that has a Ball object travel across paths determined by randomly placed PVector objects. In the Ball class i’ve written a move method that moves a Ball to the nearest PVector object in the…

---

## [Unwanted delay when using sound library](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 5\
**Last updated:** [October 30, 2018, 6:24pm UTC](https://discourse.processing.org/t/unwanted-delay-when-using-sound-library/4810 "2018-10-30T18:24:01Z")

</div>

Hi I am trying to make a video game (undertale) in processing but I have come across some problems along the way. I am trying to import some mp3 files but when i start the program it says “INFO: JSyn: default output late…

---

## [How to make cooldown timer for button](https://discourse.processing.org/t/how-to-make-cooldown-timer-for-button/4890)

<div class="topic-metadata">

**Author:** [@codingsucks](https://discourse.processing.org/u/codingsucks)\
**Replies:** 3\
**Last updated:** [October 30, 2018, 6:36pm UTC](https://discourse.processing.org/t/how-to-make-cooldown-timer-for-button/4890 "2018-10-30T18:36:56Z")

</div>

I am looking for a way to add a 4 second cool down on using the button ‘w’. How do I achieve this?

---

## [Printing a sequence of number on the canvas using text()](https://discourse.processing.org/t/printing-a-sequence-of-number-on-the-canvas-using-text/4936)

<div class="topic-metadata">

**Author:** [@Dee-3\_123](https://discourse.processing.org/u/Dee-3_123)\
**Replies:** 5\
**Last updated:** [October 30, 2018, 4:41pm UTC](https://discourse.processing.org/t/printing-a-sequence-of-number-on-the-canvas-using-text/4936 "2018-10-30T16:41:09Z")

</div>

Hi! there, I am trying to print a sequence of number on canvas using text() and for loop but those numbers are overwriting on one another. actually I want to print Fibonacci sequence on the canvas and the number of step…

---

## [Advice to help Ambilight calculate Arduino](https://discourse.processing.org/t/advice-to-help-ambilight-calculate-arduino/5028)

<div class="topic-metadata">

**Author:** [@Mationdeed](https://discourse.processing.org/u/Mationdeed)\
**Replies:** 1\
**Last updated:** [October 30, 2018, 4:12pm UTC](https://discourse.processing.org/t/advice-to-help-ambilight-calculate-arduino/5028 "2018-10-30T16:12:12Z")

</div>

Well, this is Ambilight. I find it easier to use Arduino than to design your own hardware. There are also many Arduino users on the net

---

## [Geomerative - fitting text inside arbitrary shapes?](https://discourse.processing.org/t/geomerative-fitting-text-inside-arbitrary-shapes/4917)

<div class="topic-metadata">

**Author:** [@Angle](https://discourse.processing.org/u/Angle)\
**Replies:** 11\
**Last updated:** [October 30, 2018, 1:09am UTC](https://discourse.processing.org/t/geomerative-fitting-text-inside-arbitrary-shapes/4917 "2018-10-30T01:09:03Z")

</div>

I’m trying to fit text into shapes, so as to get an effect like so: I’m using the Geomerative library, but the RShape.contains(RShape) doesn’t seem to be working for me. It always seems to return false, no matter what…

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

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