# Processing

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

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

**Page:** 298

---

## [How to "smooth" noise results](https://discourse.processing.org/t/how-to-smooth-noise-results/11307)

<div class="topic-metadata">

**Author:** [@glaem](https://discourse.processing.org/u/glaem)\
**Replies:** 4\
**Last updated:** [May 19, 2019, 9:43pm UTC](https://discourse.processing.org/t/how-to-smooth-noise-results/11307 "2019-05-19T21:43:11Z")

</div>

I know that noise returns a value between 0,1. I’m looking for a way to “smooth” the noise. Maybe instead of returning .5, .6, .3 etc. it would return .5, .5, .6, .6, .3, .3 basically I want to hold the noise value …

---

## [Memory Usage Optimization](https://discourse.processing.org/t/memory-usage-optimization/11375)

<div class="topic-metadata">

**Author:** [@MrPyro](https://discourse.processing.org/u/MrPyro)\
**Replies:** 5\
**Last updated:** [May 19, 2019, 9:12pm UTC](https://discourse.processing.org/t/memory-usage-optimization/11375 "2019-05-19T21:12:01Z")

</div>

I’m currently working on a project that needs the ability to draw 500 \* 500 \* 256 boxes. \[https://github.com/Mr-Pyro/3DSV\]. I am running out of ram. The PShape storing just the boxes alone seems to be approaching 2-3GB e…

---

## [Sequence of rotation](https://discourse.processing.org/t/sequence-of-rotation/3184)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 7\
**Last updated:** [May 19, 2019, 4:59pm UTC](https://discourse.processing.org/t/sequence-of-rotation/3184 "2019-05-19T16:59:44Z")

</div>

does the sequence in what i use rotation matter? like by rotateZ(radians(alphaZ)); rotateY(radians(alphaY)); rotateX(radians(alphaX)); show\_object(); rotateX(radians(-alphaX)); rotateY(radians(-alphaY)); rotateZ(radian…

---

## [Gryd System Graphic Design](https://discourse.processing.org/t/gryd-system-graphic-design/10457)

<div class="topic-metadata">

**Author:** [@rand\_colors](https://discourse.processing.org/u/rand_colors)\
**Replies:** 19\
**Last updated:** [May 19, 2019, 4:29pm UTC](https://discourse.processing.org/t/gryd-system-graphic-design/10457 "2019-05-19T16:29:08Z")

</div>

Hello everyone, as far as you know is there a class or library to deal with Grid design systems? I’m looking for something that could be helpful in composition of 2D images. Thank you in advance. Best R\_colors

---

## [Actualise data automaticaly (with a beat detection)](https://discourse.processing.org/t/actualise-data-automaticaly-with-a-beat-detection/11348)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 4\
**Last updated:** [May 19, 2019, 1:19pm UTC](https://discourse.processing.org/t/actualise-data-automaticaly-with-a-beat-detection/11348 "2019-05-19T13:19:24Z")

</div>

Hi there, I would like my program actualise itself the data to compute each time it detected a threshold of Beat in a song. For the moment I actualise my self the program by tapping on the key: 7. I would like my prog…

---

## [Simplest method for pshape triangle with rounded corners?](https://discourse.processing.org/t/simplest-method-for-pshape-triangle-with-rounded-corners/8563)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 4\
**Last updated:** [May 19, 2019, 10:11am UTC](https://discourse.processing.org/t/simplest-method-for-pshape-triangle-with-rounded-corners/8563 "2019-05-19T10:11:23Z")

</div>

Has anyone got any suggestions for this ? It can be drawn point by point rather tediously with vertex and beziervertex, but is there maybe an easier method ? Thanks for any suggestions. mala

---

## [Shader in processing](https://discourse.processing.org/t/shader-in-processing/11288)

<div class="topic-metadata">

**Author:** [@karinalopez87](https://discourse.processing.org/u/karinalopez87)\
**Replies:** 3\
**Last updated:** [May 19, 2019, 9:34am UTC](https://discourse.processing.org/t/shader-in-processing/11288 "2019-05-19T09:34:50Z")

</div>

Does anyone know how to bring the float remain and coord.x into processing to edit and add randomization? Also, I’ve been attempting to use pgraphics to incorporate the shader as a layer to fade in and fade out. glsl c…

---

## [Functional Stencils() and Brushes()](https://discourse.processing.org/t/functional-stencils-and-brushes/11291)

<div class="topic-metadata">

**Author:** [@Student40](https://discourse.processing.org/u/Student40)\
**Replies:** 4\
**Last updated:** [May 19, 2019, 6:14am UTC](https://discourse.processing.org/t/functional-stencils-and-brushes/11291 "2019-05-19T06:14:58Z")

</div>

having a hard time incorporating this into a code, any help would be great. the directions state to do this for my assignment each key a,s,d,f,g will be assigned to call a different function use noLoop(), loop(), comb…

---

## [Pong - problems with boundary check](https://discourse.processing.org/t/pong-problems-with-boundary-check/11367)

<div class="topic-metadata">

**Author:** [@marcholman23](https://discourse.processing.org/u/marcholman23)\
**Replies:** 11\
**Last updated:** [May 19, 2019, 3:32am UTC](https://discourse.processing.org/t/pong-problems-with-boundary-check/11367 "2019-05-19T03:32:08Z")

</div>

Hi, I’m new to processing and working on implementing a simple pong like program. At this point I have created a Ball and a Paddle. The Paddle is simply a rectangle that tracks the mouseX variable. Now I am working o…

---

## [Imageloader, How to convert Image to PImage?](https://discourse.processing.org/t/imageloader-how-to-convert-image-to-pimage/11357)

<div class="topic-metadata">

**Author:** [@Palp](https://discourse.processing.org/u/Palp)\
**Replies:** 1\
**Last updated:** [May 18, 2019, 3:35pm UTC](https://discourse.processing.org/t/imageloader-how-to-convert-image-to-pimage/11357 "2019-05-18T15:35:35Z")

</div>

Hello, I am trying to Load images from data folder with string on by one with 2 seconds of displaying time, and get pixel brightness value from these images. What I have: String path = sketchPath("data"); ImageLoader …

---

## [Processing video library wont play larger files](https://discourse.processing.org/t/processing-video-library-wont-play-larger-files/11368)

<div class="topic-metadata">

**Author:** [@sfickel](https://discourse.processing.org/u/sfickel)\
**Replies:** 1\
**Last updated:** [May 19, 2019, 1:50am UTC](https://discourse.processing.org/t/processing-video-library-wont-play-larger-files/11368 "2019-05-19T01:50:56Z")

</div>

Hello! I am using the processing-video library and I am not able to get it to play a video file larger than 250mb which seems pretty small. Is there any way to get it to play larger files or is there a file size restrict…

---

## [How do I integrate dist() into my current code?](https://discourse.processing.org/t/how-do-i-integrate-dist-into-my-current-code/11313)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 14\
**Last updated:** [May 18, 2019, 11:39pm UTC](https://discourse.processing.org/t/how-do-i-integrate-dist-into-my-current-code/11313 "2019-05-18T23:39:40Z")

</div>

Below is a simple program I am trying to build up. When the Ball object and Donut object intersect I would like: 1/ the ball to turn red 2/ the donut to turn blue 3/ the background to be a random color When there is…

---

## [Detect if any window in the sketch is the active window](https://discourse.processing.org/t/detect-if-any-window-in-the-sketch-is-the-active-window/8989)

<div class="topic-metadata">

**Author:** [@jamcdonald](https://discourse.processing.org/u/jamcdonald)\
**Replies:** 9\
**Last updated:** [May 18, 2019, 8:30pm UTC](https://discourse.processing.org/t/detect-if-any-window-in-the-sketch-is-the-active-window/8989 "2019-05-18T20:30:59Z")

</div>

I have a 2+ windows processing Sketch, I want 1 windows to stay on top of all the other windows in the sketch, to do this I am using surface.setAlwaysOnTop(true);, however this puts the window on top of all windows, not …

---

## [Control Ableton Live from Processing with a Mac](https://discourse.processing.org/t/control-ableton-live-from-processing-with-a-mac/11036)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 10\
**Last updated:** [May 18, 2019, 9:29am UTC](https://discourse.processing.org/t/control-ableton-live-from-processing-with-a-mac/11036 "2019-05-18T09:29:11Z")

</div>

Hi, I saw a method to use Processing as MIDI controller to Ableton here http://legacy.andrewflo.com/work/liveosc-processing-bridge/ I’m trying to use to use it to send MIDI value, but I can’t send data or make recogni…

---

## [Track balls by color and shape with camera and OpenCV](https://discourse.processing.org/t/track-balls-by-color-and-shape-with-camera-and-opencv/11234)

<div class="topic-metadata">

**Author:** [@Chemi](https://discourse.processing.org/u/Chemi)\
**Replies:** 4\
**Last updated:** [May 17, 2019, 1:01pm UTC](https://discourse.processing.org/t/track-balls-by-color-and-shape-with-camera-and-opencv/11234 "2019-05-17T13:01:31Z")

</div>

Hello. I have an exam that consists on detecting an object with a camera. I explain it a little bit: With the mouse you have to select the object and then the programme have to make the tracking of that object. The code…

---

## [Running .class file built from command line](https://discourse.processing.org/t/running-class-file-built-from-command-line/1719)

<div class="topic-metadata">

**Author:** [@ellenlowing](https://discourse.processing.org/u/ellenlowing)\
**Replies:** 7\
**Last updated:** [May 17, 2019, 10:58pm UTC](https://discourse.processing.org/t/running-class-file-built-from-command-line/1719 "2019-05-17T22:58:35Z")

</div>

Hi all Processing folks, I am having trouble running .class file on command line. Since I want to run my sketch in headless mode on a Mac, I followed this solution (https://github.com/processing/processing/issues/3996) t…

---

## [Two level to my game](https://discourse.processing.org/t/two-level-to-my-game/11281)

<div class="topic-metadata">

**Author:** [@macabol](https://discourse.processing.org/u/macabol)\
**Replies:** 19\
**Last updated:** [May 17, 2019, 7:31pm UTC](https://discourse.processing.org/t/two-level-to-my-game/11281 "2019-05-17T19:31:14Z")

</div>

Hello everyone I urgently need your help I must make my game tomorrow and I just miss it to do 2 level to my game but I do not know how to do it. Thank you for your help and here is my code: PImage img;//image boule PIm…

---

## [Paint line question](https://discourse.processing.org/t/paint-line-question/11312)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.processing.org/u/Nick1)\
**Replies:** 4\
**Last updated:** [May 17, 2019, 3:26pm UTC](https://discourse.processing.org/t/paint-line-question/11312 "2019-05-17T15:26:55Z")

</div>

Hey, I want to draw a line with my “paint” program but is does not draw. Can anyone help me? Thanks int akt\_links, akt\_breite, akt\_oben, akt\_hoehe; boolean zeichnen\_aktiv, zeichnen\_aktiv\_linie, loeschen, viereck, kre…

---

## [\[SOLVED\] While using Javafx for playing a video, how can i make a "rect", for example, appear in front of it?](https://discourse.processing.org/t/solved-while-using-javafx-for-playing-a-video-how-can-i-make-a-rect-for-example-appear-in-front-of-it/11173)

<div class="topic-metadata">

**Author:** [@94matheus](https://discourse.processing.org/u/94matheus)\
**Replies:** 8\
**Last updated:** [May 17, 2019, 1:37pm UTC](https://discourse.processing.org/t/solved-while-using-javafx-for-playing-a-video-how-can-i-make-a-rect-for-example-appear-in-front-of-it/11173 "2019-05-17T13:37:16Z")

</div>

Hi! I’m using PApplet inside Eclipse (A college assignment requires that we use Processing IDE but I need some of Java functions to make it work the way I envision it) and everytime a video starts playing (through java…

---

## [Need help with an Arduino program](https://discourse.processing.org/t/need-help-with-an-arduino-program/11306)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 4\
**Last updated:** [May 17, 2019, 1:40am UTC](https://discourse.processing.org/t/need-help-with-an-arduino-program/11306 "2019-05-17T01:40:13Z")

</div>

My goal is to write a processing program that turns an LED on or off whenever a “button” (drawn on the screen), is clicked with the mouse. int circleX, circleY; int circleSize = 93; color circleColor, baseColor; c…

---

## [How do I stop an if-statement from carrying over to the next function](https://discourse.processing.org/t/how-do-i-stop-an-if-statement-from-carrying-over-to-the-next-function/11309)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 6\
**Last updated:** [May 16, 2019, 8:46pm UTC](https://discourse.processing.org/t/how-do-i-stop-an-if-statement-from-carrying-over-to-the-next-function/11309 "2019-05-16T20:46:14Z")

</div>

I would like the ball to bounce along the x-axis; the donut to bounce along the y-axis. Currently the ball movement is fine. The donut movement is following the if-statement for the ball as well as the donut. How do I…

---

## [LerpColor seamless motion](https://discourse.processing.org/t/lerpcolor-seamless-motion/11303)

<div class="topic-metadata">

**Author:** [@ale.moso](https://discourse.processing.org/u/ale.moso)\
**Replies:** 6\
**Last updated:** [May 16, 2019, 6:24pm UTC](https://discourse.processing.org/t/lerpcolor-seamless-motion/11303 "2019-05-16T18:24:46Z")

</div>

Hi dear community, I want to made gradients where colors move from one to another constantly changing but whitout a blink like a flow of colors. Any ideas in how acomplish this? Many thanks

---

## [serialEvent out of bounds error](https://discourse.processing.org/t/serialevent-out-of-bounds-error/11272)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 10:28am UTC](https://discourse.processing.org/t/serialevent-out-of-bounds-error/11272 "2019-05-16T10:28:36Z")

</div>

Below is the function causing the exception, followed by the error message. This HAD been working - not sure what I’ve done differently to ‘break’ it. Any ideas where to start looking? =A. void serialEvent(Serial com…

---

## [Sending and saving multiple values from Arduino to Processing](https://discourse.processing.org/t/sending-and-saving-multiple-values-from-arduino-to-processing/11299)

<div class="topic-metadata">

**Author:** [@skmr](https://discourse.processing.org/u/skmr)\
**Replies:** 2\
**Last updated:** [May 16, 2019, 9:13am UTC](https://discourse.processing.org/t/sending-and-saving-multiple-values-from-arduino-to-processing/11299 "2019-05-16T09:13:08Z")

</div>

Hi, I’m new to coding with processing, so apologies in advance for rookie mistakes. I’m working on a project where I’m collectiog multiple orientation angles from 2 BNO055 sensors using Arduino. The idea is to create a…

---

## [Is possible use different layer for the axes on chart?](https://discourse.processing.org/t/is-possible-use-different-layer-for-the-axes-on-chart/11150)

<div class="topic-metadata">

**Author:** [@dondu](https://discourse.processing.org/u/dondu)\
**Replies:** 8\
**Last updated:** [May 16, 2019, 5:15am UTC](https://discourse.processing.org/t/is-possible-use-different-layer-for-the-axes-on-chart/11150 "2019-05-16T05:15:44Z")

</div>

Hello, I’m just starting with Processing to process data from serial port. I want to show animated data on chart something like the chart below. Is possible use different layer for the axes and scale lines on chart? …

---

## [Music loop with minim library](https://discourse.processing.org/t/music-loop-with-minim-library/11163)

<div class="topic-metadata">

**Author:** [@yonjukyu](https://discourse.processing.org/u/yonjukyu)\
**Replies:** 1\
**Last updated:** [May 16, 2019, 4:59am UTC](https://discourse.processing.org/t/music-loop-with-minim-library/11163 "2019-05-16T04:59:37Z")

</div>

Hello. I want to make a loop with my music, like when she stop she start again. i’m using the minim library. here is my code. import ddf.minim.\*; Minim minim; AudioSnippet son\_musique; void setup(){ minim = new Mi…

---

## [Can GameControlPlus send data TO device?](https://discourse.processing.org/t/can-gamecontrolplus-send-data-to-device/11275)

<div class="topic-metadata">

**Author:** [@alan856](https://discourse.processing.org/u/alan856)\
**Replies:** 9\
**Last updated:** [May 16, 2019, 1:34am UTC](https://discourse.processing.org/t/can-gamecontrolplus-send-data-to-device/11275 "2019-05-16T01:34:41Z")

</div>

I am using @Quark’s SUPER GameControlPlus to have a custom joystick (using an Arduino Micro) to send to Processing. And it is working great! When the joystick fire button is pressed this may or may not start an event i…

---

## [Request for guidance:- Making 3D objects appear static on a webcam feed using arduino & an IMU:](https://discourse.processing.org/t/request-for-guidance-making-3d-objects-appear-static-on-a-webcam-feed-using-arduino-an-imu/10902)

<div class="topic-metadata">

**Author:** [@moh\_maya](https://discourse.processing.org/u/moh_maya)\
**Replies:** 28\
**Last updated:** [May 15, 2019, 11:05pm UTC](https://discourse.processing.org/t/request-for-guidance-making-3d-objects-appear-static-on-a-webcam-feed-using-arduino-an-imu/10902 "2019-05-15T23:05:01Z")

</div>

Request for guidance:- Making 3D objects appear static on a webcam feed using arduino & an IMU: Is this possible? Hello, I’m new to processing (but have some coding experience in python & java / android). I am trying t…

---

## [Need help with arduino program](https://discourse.processing.org/t/need-help-with-arduino-program/11287)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 10:01pm UTC](https://discourse.processing.org/t/need-help-with-arduino-program/11287 "2019-05-15T22:01:56Z")

</div>

so i was asked to make a Processing program that simulates an RGB LED changing through the color spectrum. Prompt the user for a speed when your program starts. The larger the speed value, the quicker your RGB LED will c…

---

## [Calculation for variables in D. Shiffman book "Learning Processing"](https://discourse.processing.org/t/calculation-for-variables-in-d-shiffman-book-learning-processing/11286)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 9:29pm UTC](https://discourse.processing.org/t/calculation-for-variables-in-d-shiffman-book-learning-processing/11286 "2019-05-15T21:29:35Z")

</div>

I’m trying to get a better understanding on how Dan Shiffman drew his raindrop shape via the variables below AND the starting y position. Any help is most appreciated! Text in bold placed next to the 3 areas in questio…

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

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