# Processing

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

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

**Page:** 254

---

## [Passing this as a method](https://discourse.processing.org/t/passing-this-as-a-method/15796)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 6\
**Last updated:** [December 4, 2019, 2:32am UTC](https://discourse.processing.org/t/passing-this-as-a-method/15796 "2019-12-04T02:32:54Z")

</div>

Controlp5 passes this as a method, controlP5 = new ControlP5(this) How do you create a class that can do this?

---

## [Installing JPaste](https://discourse.processing.org/t/installing-jpaste/16078)

<div class="topic-metadata">

**Author:** [@Devon123](https://discourse.processing.org/u/Devon123)\
**Replies:** 1\
**Last updated:** [December 3, 2019, 9:35pm UTC](https://discourse.processing.org/t/installing-jpaste/16078 "2019-12-03T21:35:23Z")

</div>

I put it in the library folder, but it isn’t installed. Any help would be appreciated Here it is:

---

## [Lines don't draw when using custom "zooming" - can't see why](https://discourse.processing.org/t/lines-dont-draw-when-using-custom-zooming-cant-see-why/16051)

<div class="topic-metadata">

**Author:** [@C-Level-Increment](https://discourse.processing.org/u/C-Level-Increment)\
**Replies:** 2\
**Last updated:** [December 3, 2019, 7:37pm UTC](https://discourse.processing.org/t/lines-dont-draw-when-using-custom-zooming-cant-see-why/16051 "2019-12-03T19:37:50Z")

</div>

Hey there, since this is my first post here I’ll quickly introduce myself: I am an material sciences engeneering student with a hobby level experience in some coding matters (like arduinos, tinkering with physics engi…

---

## [Exporting as .gif, the Explode effect, and many more problems](https://discourse.processing.org/t/exporting-as-gif-the-explode-effect-and-many-more-problems/15802)

<div class="topic-metadata">

**Author:** [@vogelstraussk](https://discourse.processing.org/u/vogelstraussk)\
**Replies:** 3\
**Last updated:** [December 3, 2019, 7:35pm UTC](https://discourse.processing.org/t/exporting-as-gif-the-explode-effect-and-many-more-problems/15802 "2019-12-03T19:35:34Z")

</div>

Hello, clever people! First things first, I am a design student who just started teaching herself Processing a week ago, so I have NO knowledge beyond The Coding Train tutorials. (It’s fun! But at the same time I am ju…

---

## [I am creating a floor plan and I want to know how to constraint certain areas to not draw in](https://discourse.processing.org/t/i-am-creating-a-floor-plan-and-i-want-to-know-how-to-constraint-certain-areas-to-not-draw-in/16081)

<div class="topic-metadata">

**Author:** [@elcougario](https://discourse.processing.org/u/elcougario)\
**Replies:** 1\
**Last updated:** [December 3, 2019, 5:05pm UTC](https://discourse.processing.org/t/i-am-creating-a-floor-plan-and-i-want-to-know-how-to-constraint-certain-areas-to-not-draw-in/16081 "2019-12-03T17:05:33Z")

</div>

Hey guys, I am working on an abstract floor plan using processing. I am making a grid with random rectangles and small ellipses. I have some voids on the four corners and one in the middle. Right now I am just covering u…

---

## [How can I restart the program with keypress](https://discourse.processing.org/t/how-can-i-restart-the-program-with-keypress/15446)

<div class="topic-metadata">

**Author:** [@Kitty](https://discourse.processing.org/u/Kitty)\
**Replies:** 26\
**Last updated:** [November 22, 2019, 7:18pm UTC](https://discourse.processing.org/t/how-can-i-restart-the-program-with-keypress/15446 "2019-11-22T19:18:31Z")

</div>

I want the key “Q” to restart the program, but the reset function isn’t working.

---

## [Can I Sort my incoming String based on the first char?](https://discourse.processing.org/t/can-i-sort-my-incoming-string-based-on-the-first-char/15847)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 12\
**Last updated:** [December 3, 2019, 11:00am UTC](https://discourse.processing.org/t/can-i-sort-my-incoming-string-based-on-the-first-char/15847 "2019-12-03T11:00:41Z")

</div>

I am getting a lot of data from an Arduino Serial port. The problem is that some are numbers , some are sentences, etc While I can split a String in Floats, that string can have only numbers. So I decided to have seve…

---

## [Sending Arduino to Processing](https://discourse.processing.org/t/sending-arduino-to-processing/16058)

<div class="topic-metadata">

**Author:** [@Cbeni](https://discourse.processing.org/u/Cbeni)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 11:53pm UTC](https://discourse.processing.org/t/sending-arduino-to-processing/16058 "2019-12-02T23:53:57Z")

</div>

Hey, Its my first time connecting the arduino to processing. I followed a tutorial to the T and double checked the code but i am still getting an error. can someone tell me where i went wrong? Processing Code — import …

---

## [Class Problem - Any Suggestions](https://discourse.processing.org/t/class-problem-any-suggestions/14864)

<div class="topic-metadata">

**Author:** [@Cbeni](https://discourse.processing.org/u/Cbeni)\
**Replies:** 6\
**Last updated:** [December 2, 2019, 10:32pm UTC](https://discourse.processing.org/t/class-problem-any-suggestions/14864 "2019-12-02T22:32:36Z")

</div>

My bolt class is not being recognized. Any suggestions? import processing.sound.\*; SoundFile myAudio; SoundFile AudioWin; //variables float rectx =100; float recty =100; float b=20; PImage myImageRobot; PImage myImage…

---

## [Closed Mesh Area and Volume](https://discourse.processing.org/t/closed-mesh-area-and-volume/15640)

<div class="topic-metadata">

**Author:** [@jNew](https://discourse.processing.org/u/jNew)\
**Replies:** 10\
**Last updated:** [December 2, 2019, 4:19pm UTC](https://discourse.processing.org/t/closed-mesh-area-and-volume/15640 "2019-12-02T16:19:17Z")

</div>

I am trying to slice a closed mesh and get the new surface area and volume. HEMesh has a mesh.getArea() in the Ref\_HEM\_Soapfilm example, but the function does not exist in the library and I can’t find documentation for …

---

## [Modifying Project Sentry Gun (PSG) to Detect Fires](https://discourse.processing.org/t/modifying-project-sentry-gun-psg-to-detect-fires/16047)

<div class="topic-metadata">

**Author:** [@gupperino](https://discourse.processing.org/u/gupperino)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 4:15pm UTC](https://discourse.processing.org/t/modifying-project-sentry-gun-psg-to-detect-fires/16047 "2019-12-02T16:15:02Z")

</div>

Hello all, I’m a high school student working on a project for the New York City Science and Engineering Fair. My partner and I have created a device that can track fires and extinguish them using water. The software driv…

---

## [Processing JS and HTML + PHP](https://discourse.processing.org/t/processing-js-and-html-php/16046)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 4:11pm UTC](https://discourse.processing.org/t/processing-js-and-html-php/16046 "2019-12-02T16:11:08Z")

</div>

I’ve made a processing sketch that I had upload on my website (localhost). But the buttons that I programmed doesn’t work because i’m using the “selectInput” function that is not avaible in web. So, I guess I need to mak…

---

## [Monitoring Graphics Processing Unit (GPU) with Processing 3](https://discourse.processing.org/t/monitoring-graphics-processing-unit-gpu-with-processing-3/15860)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 12\
**Last updated:** [December 2, 2019, 3:06pm UTC](https://discourse.processing.org/t/monitoring-graphics-processing-unit-gpu-with-processing-3/15860 "2019-12-02T15:06:07Z")

</div>

Hello, Using the: java.lang.management.ManagementFactory and com.sun.management.OperatingSystemMXBean libraries, I was able to read the CPU and RAM usage of my pc. Now I would like to be able to read the Graphics Proces…

---

## [Rotations and translations in real time](https://discourse.processing.org/t/rotations-and-translations-in-real-time/15490)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 2\
**Last updated:** [December 2, 2019, 11:13am UTC](https://discourse.processing.org/t/rotations-and-translations-in-real-time/15490 "2019-12-02T11:13:50Z")

</div>

Hi guys, I know there are many topics about this theme, but I’m getting mad with this :woozy\_face:… I have the UTM coordinates and orientation of my state, at the same time, I have coordinates of the objects that surrou…

---

## [Processing js - html and php](https://discourse.processing.org/t/processing-js-html-and-php/16034)

<div class="topic-metadata">

**Author:** [@dawn](https://discourse.processing.org/u/dawn)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 11:05am UTC](https://discourse.processing.org/t/processing-js-html-and-php/16034 "2019-12-02T11:05:17Z")

</div>

Hello, I have to run a sketch on a website but I can’t make it appear. I only can run some examples if they are inside the examples folder but when I want to link them on my webpage (HTML) they don’t work. Below some cod…

---

## [Convert color notation in an array](https://discourse.processing.org/t/convert-color-notation-in-an-array/15972)

<div class="topic-metadata">

**Author:** [@stupidquestion](https://discourse.processing.org/u/stupidquestion)\
**Replies:** 6\
**Last updated:** [December 2, 2019, 9:28am UTC](https://discourse.processing.org/t/convert-color-notation-in-an-array/15972 "2019-12-02T09:28:36Z")

</div>

so, i want to take an inventory of a bunch of my pixels in an array, and loadPixels() seems to generate that array fine, but I can’t figure out how to read that data, much less use it with other code. any idea how to co…

---

## [Detect double click inside class](https://discourse.processing.org/t/detect-double-click-inside-class/15793)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 12\
**Last updated:** [December 2, 2019, 9:26am UTC](https://discourse.processing.org/t/detect-double-click-inside-class/15793 "2019-12-02T09:26:35Z")

</div>

Hello, I would like to detect a double mouse click from within a class. If a double click is detected, some event has to be executed. I would like the code to be modular, so the mouseClicked() or mousePressed() functions…

---

## [Processing won’t start at all](https://discourse.processing.org/t/processing-won-t-start-at-all/16010)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 7\
**Last updated:** [December 2, 2019, 12:53am UTC](https://discourse.processing.org/t/processing-won-t-start-at-all/16010 "2019-12-02T00:53:59Z")

</div>

In the .err file it says “Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: Could not initialize class sun.reflect.misc.MethodUtil” Any help?

---

## [Video Game using inputs from serial](https://discourse.processing.org/t/video-game-using-inputs-from-serial/16024)

<div class="topic-metadata">

**Author:** [@richardw1102](https://discourse.processing.org/u/richardw1102)\
**Replies:** 1\
**Last updated:** [December 1, 2019, 11:07pm UTC](https://discourse.processing.org/t/video-game-using-inputs-from-serial/16024 "2019-12-01T23:07:49Z")

</div>

So I am creating a video game, similar to this https://circuitdigest.com/microcontroller-projects/ping-pong-game-using-arduino-accelerometer#comment-30863 I currently have a button thats an input to my arduino and whene…

---

## [Project generative design](https://discourse.processing.org/t/project-generative-design/15805)

<div class="topic-metadata">

**Author:** [@marcoo](https://discourse.processing.org/u/marcoo)\
**Replies:** 2\
**Last updated:** [December 1, 2019, 7:25pm UTC](https://discourse.processing.org/t/project-generative-design/15805 "2019-12-01T19:25:58Z")

</div>

hello again. I am starting a new project development about generative design on processing. The idea is produce a generative silhouette of an image. More detailed, i’m trying to represent dynamically spider man “webs” on…

---

## [Adding Color and music to Ripple effect](https://discourse.processing.org/t/adding-color-and-music-to-ripple-effect/16009)

<div class="topic-metadata">

**Author:** [@Swagific](https://discourse.processing.org/u/Swagific)\
**Replies:** 4\
**Last updated:** [December 1, 2019, 6:37pm UTC](https://discourse.processing.org/t/adding-color-and-music-to-ripple-effect/16009 "2019-12-01T18:37:57Z")

</div>

Hi im trying to create a ripple using mouse dragged. i have the code but i dont know how to change the color im hopping to have it be random whenever its dragged across, and for it to play music and stop once the mouse …

---

## [I have my coordinates, can I zoom in?](https://discourse.processing.org/t/i-have-my-coordinates-can-i-zoom-in/16013)

<div class="topic-metadata">

**Author:** [@libensvivit](https://discourse.processing.org/u/libensvivit)\
**Replies:** 3\
**Last updated:** [December 1, 2019, 3:48pm UTC](https://discourse.processing.org/t/i-have-my-coordinates-can-i-zoom-in/16013 "2019-12-01T15:48:19Z")

</div>

Hi everyone… I’m using discrete fourier transform to draw epicycles with processing library in Java. It looks like this : It is basically bunch of circles rotating in harmony to draw something. I have an ArrayList p…

---

## [Best way to make selection options](https://discourse.processing.org/t/best-way-to-make-selection-options/15993)

<div class="topic-metadata">

**Author:** [@keeg23](https://discourse.processing.org/u/keeg23)\
**Replies:** 4\
**Last updated:** [December 1, 2019, 3:30pm UTC](https://discourse.processing.org/t/best-way-to-make-selection-options/15993 "2019-12-01T15:30:47Z")

</div>

I need help with coding my paint program so I am able to switch between colors. But not sure the best way to set it up. Anything will help.

---

## [Other library right](https://discourse.processing.org/t/other-library-right/15945)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 3\
**Last updated:** [December 1, 2019, 2:40pm UTC](https://discourse.processing.org/t/other-library-right/15945 "2019-12-01T14:40:15Z")

</div>

Hi, I’m programming my own library and I would like to use a part of other library as toxiclib. Can I modify the .jar to use only the class I need ? Can I take some part of the code and writing the author in comments …

---

## [\[SOLVED\] Use the keyboard to make a design appear](https://discourse.processing.org/t/solved-use-the-keyboard-to-make-a-design-appear/16004)

<div class="topic-metadata">

**Author:** [@P3t3R08](https://discourse.processing.org/u/P3t3R08)\
**Replies:** 7\
**Last updated:** [December 1, 2019, 5:23am UTC](https://discourse.processing.org/t/solved-use-the-keyboard-to-make-a-design-appear/16004 "2019-12-01T05:23:41Z")

</div>

Hello, I am trying to write a program where if I press the letter ‘c’ on the keyboard a design similar to one that is already programmed for, will appear and continue to go in a circle. The only issue is that the design…

---

## [Objects not disappearing when new screen selected](https://discourse.processing.org/t/objects-not-disappearing-when-new-screen-selected/15778)

<div class="topic-metadata">

**Author:** [@unique\_username](https://discourse.processing.org/u/unique_username)\
**Replies:** 12\
**Last updated:** [December 1, 2019, 2:39am UTC](https://discourse.processing.org/t/objects-not-disappearing-when-new-screen-selected/15778 "2019-12-01T02:39:38Z")

</div>

I’m a bit new to processing, and I’m trying to make a game using multiple levels. Levels are either locked or unlocked, and are represented by either a button or a lock. When a button is pressed, the background does inde…

---

## [Getting data from strain guages](https://discourse.processing.org/t/getting-data-from-strain-guages/15978)

<div class="topic-metadata">

**Author:** [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)\
**Replies:** 13\
**Last updated:** [December 1, 2019, 2:10am UTC](https://discourse.processing.org/t/getting-data-from-strain-guages/15978 "2019-12-01T02:10:52Z")

</div>

hello guys… i am facing problem regarding processing 3… we are doing final year project in which we are doing structural health monitoring by using strain guages. now being a civil engineer i am not capable of writing c…

---

## [Random rectangle](https://discourse.processing.org/t/random-rectangle/16000)

<div class="topic-metadata">

**Author:** [@elcougario](https://discourse.processing.org/u/elcougario)\
**Replies:** 1\
**Last updated:** [November 30, 2019, 11:33pm UTC](https://discourse.processing.org/t/random-rectangle/16000 "2019-11-30T23:33:49Z")

</div>

Hey guys. Im trying to make rectangles be inside a quad shape I’ve created. How do we do this. I would want them not to touch as well (like not overlap). I’ve though of using a Boolean or and array but I cant figure it o…

---

## [Arduino to Processing String Comparison Error](https://discourse.processing.org/t/arduino-to-processing-string-comparison-error/15968)

<div class="topic-metadata">

**Author:** [@HAOZOO](https://discourse.processing.org/u/HAOZOO)\
**Replies:** 13\
**Last updated:** [November 30, 2019, 10:00pm UTC](https://discourse.processing.org/t/arduino-to-processing-string-comparison-error/15968 "2019-11-30T22:00:07Z")

</div>

Hello, I am trying to have an Arduino use six different buttons to play six different playlists based off of comparing strings sent by Arduino to the value of a string in Processing, but am consistently running into a wa…

---

## [10 Random red blocks on a grid](https://discourse.processing.org/t/10-random-red-blocks-on-a-grid/15814)

<div class="topic-metadata">

**Author:** [@San](https://discourse.processing.org/u/San)\
**Replies:** 6\
**Last updated:** [November 30, 2019, 9:06pm UTC](https://discourse.processing.org/t/10-random-red-blocks-on-a-grid/15814 "2019-11-30T21:06:24Z")

</div>

Hey! I made this 60x40 grid and I am trying to make 10 of the squares red. And it has to be 10 random squares each time I run the program. I have tried a lot but can’t figure it out… Can anyone please tell me who to do…

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

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