# Processing

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

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

**Page:** 321

---

## [How to draw and rotate at the same time?](https://discourse.processing.org/t/how-to-draw-and-rotate-at-the-same-time/8539)

<div class="topic-metadata">

**Author:** [@ricaroca](https://discourse.processing.org/u/ricaroca)\
**Replies:** 3\
**Last updated:** [February 21, 2019, 1:35pm UTC](https://discourse.processing.org/t/how-to-draw-and-rotate-at-the-same-time/8539 "2019-02-21T13:35:02Z")

</div>

hi! I can’t find a way to draw a shape, and I mean drawing it frame by frame, no just making it appear while rotating it. so, I’m drawing a circle with points, I can do it, but without using background(0) in void draw(…

---

## [Enun memory size](https://discourse.processing.org/t/enun-memory-size/8418)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 3\
**Last updated:** [February 21, 2019, 12:58pm UTC](https://discourse.processing.org/t/enun-memory-size/8418 "2019-02-21T12:58:05Z")

</div>

Hello, just a quick question, how much memory does an enum value need? How about this example: enum Figure{ EMPTY, WHITE\_PAWN, BLACK\_PAWN, WHITE\_QUEEN, BLACK\_QUEEN }

---

## [SImultaneous sketch excecution on different computers](https://discourse.processing.org/t/simultaneous-sketch-excecution-on-different-computers/8479)

<div class="topic-metadata">

**Author:** [@marcovvv](https://discourse.processing.org/u/marcovvv)\
**Replies:** 2\
**Last updated:** [February 21, 2019, 11:40am UTC](https://discourse.processing.org/t/simultaneous-sketch-excecution-on-different-computers/8479 "2019-02-21T11:40:42Z")

</div>

Hi, Is there a library to start simultaneously, in sync, two or more different sketches, each one in a different computer on a internal LAN and projecting on different projectors? any latency issue? thanks marco

---

## [Fullscreen/span](https://discourse.processing.org/t/fullscreen-span/8582)

<div class="topic-metadata">

**Author:** [@mattleaf](https://discourse.processing.org/u/mattleaf)\
**Replies:** 5\
**Last updated:** [February 21, 2019, 9:35am UTC](https://discourse.processing.org/t/fullscreen-span/8582 "2019-02-21T09:35:27Z")

</div>

Hia I’m looking at working with multiple monitors. SPAN is quite a nice new feature, however i’m wondering if there’s a way to exclude my working machines display from the output? I have 2 or 3 external monitors comin…

---

## [VerletPhysics2D particles and behaviors management](https://discourse.processing.org/t/verletphysics2d-particles-and-behaviors-management/8523)

<div class="topic-metadata">

**Author:** [@billhsu](https://discourse.processing.org/u/billhsu)\
**Replies:** 4\
**Last updated:** [February 21, 2019, 7:13am UTC](https://discourse.processing.org/t/verletphysics2d-particles-and-behaviors-management/8523 "2019-02-21T07:13:51Z")

</div>

I’ve been using VerletPhysics2D for a project, and have some questions about interactions between particles and behaviors. I’ve studied the VerletPhysics example Attraction2D. When a particle p is added, to prevent coll…

---

## [How can I use a "for" loop to redraw something multiple times?](https://discourse.processing.org/t/how-can-i-use-a-for-loop-to-redraw-something-multiple-times/8585)

<div class="topic-metadata">

**Author:** [@bh1234](https://discourse.processing.org/u/bh1234)\
**Replies:** 4\
**Last updated:** [February 21, 2019, 7:27am UTC](https://discourse.processing.org/t/how-can-i-use-a-for-loop-to-redraw-something-multiple-times/8585 "2019-02-21T07:27:39Z")

</div>

So, I’m taking this CSS 101 class and our professor has given us some code that draws an owl: void setup ( ) { size(600,600); background(200); smooth( ); frameRate(30); } void draw ( ) { owl(35,100); } void owl…

---

## [Help using Processing with Matlab](https://discourse.processing.org/t/help-using-processing-with-matlab/8467)

<div class="topic-metadata">

**Author:** [@salvimess](https://discourse.processing.org/u/salvimess)\
**Replies:** 3\
**Last updated:** [February 21, 2019, 6:15am UTC](https://discourse.processing.org/t/help-using-processing-with-matlab/8467 "2019-02-21T06:15:48Z")

</div>

I have a program in Matlab that processes video and returns certain variables that pertain to that video. My goal is to have these variables be processed in Processing in order to create some cool visuals. Anyone have an…

---

## [Filling Dinamyc Arrays\[\]\[\]](https://discourse.processing.org/t/filling-dinamyc-arrays/7049)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 4\
**Last updated:** [January 8, 2019, 2:38pm UTC](https://discourse.processing.org/t/filling-dinamyc-arrays/7049 "2019-01-08T14:38:06Z")

</div>

hello! i need some help to fill a two dimensional array in a dinamyc way. I want to add a new Cols in a JTable when and object is created, and fill the rows with the values of the object. for that i want to use a two dim…

---

## [Virtual Serial Ports macOS/Processing](https://discourse.processing.org/t/virtual-serial-ports-macos-processing/8529)

<div class="topic-metadata">

**Author:** [@Dolomiti](https://discourse.processing.org/u/Dolomiti)\
**Replies:** 1\
**Last updated:** [February 21, 2019, 4:58am UTC](https://discourse.processing.org/t/virtual-serial-ports-macos-processing/8529 "2019-02-21T04:58:10Z")

</div>

Hello friends. Someone who works with the macOS and processing system could tell me if it is possible to create virtual ports to test the applications. In the free virtual Serial ports style. Thank you. Charles

---

## [\[SOLVED\] A good way to compress nested "if else" statements?](https://discourse.processing.org/t/solved-a-good-way-to-compress-nested-if-else-statements/8419)

<div class="topic-metadata">

**Author:** [@kandles11](https://discourse.processing.org/u/kandles11)\
**Replies:** 8\
**Last updated:** [February 21, 2019, 4:36am UTC](https://discourse.processing.org/t/solved-a-good-way-to-compress-nested-if-else-statements/8419 "2019-02-21T04:36:36Z")

</div>

hey yall, i have a long script that lets a user choose a team once they enter a set of characters. it goes through a long list of if else statements in order to choose it. are there any other commands that would be more …

---

## [Help with starting a coding project](https://discourse.processing.org/t/help-with-starting-a-coding-project/8436)

<div class="topic-metadata">

**Author:** [@NationalRex22](https://discourse.processing.org/u/NationalRex22)\
**Replies:** 6\
**Last updated:** [February 20, 2019, 11:27pm UTC](https://discourse.processing.org/t/help-with-starting-a-coding-project/8436 "2019-02-20T23:27:26Z")

</div>

Hello, I’m new to programming, and my objectives are easy to explain: I’m interested in designing a simple program in Sketch that illustrates a user interface that is easy to understand, uses a true or false condition t…

---

## [Dictionary for Video](https://discourse.processing.org/t/dictionary-for-video/8483)

<div class="topic-metadata">

**Author:** [@alterus](https://discourse.processing.org/u/alterus)\
**Replies:** 2\
**Last updated:** [February 20, 2019, 10:57pm UTC](https://discourse.processing.org/t/dictionary-for-video/8483 "2019-02-20T22:57:34Z")

</div>

I am just recently getting into Processing after using Supercollider for a while. Now I am looking for code that plays another random video from a map on my computer every time it is cue’d. Similar to what is possible wi…

---

## [Noob question: Should I learn processing for this project?](https://discourse.processing.org/t/noob-question-should-i-learn-processing-for-this-project/8410)

<div class="topic-metadata">

**Author:** [@divdivdiv](https://discourse.processing.org/u/divdivdiv)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 9:34pm UTC](https://discourse.processing.org/t/noob-question-should-i-learn-processing-for-this-project/8410 "2019-02-20T21:34:10Z")

</div>

Hi there. I’d love to get your opinion if whether Processing is the right tool for a project I have had in my mind for a long time. I want to create an artwork with video feed that only shows what has not moved in the l…

---

## [Different shade of color when using opacity](https://discourse.processing.org/t/different-shade-of-color-when-using-opacity/8476)

<div class="topic-metadata">

**Author:** [@gytis585](https://discourse.processing.org/u/gytis585)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 7:53pm UTC](https://discourse.processing.org/t/different-shade-of-color-when-using-opacity/8476 "2019-02-20T19:53:57Z")

</div>

Hello, I am experiencing a weird error regarding opacity. I am rendering a 3D shape made out of two circles. Each of the circle is made out of several pieces. Every second is flipped. The ones that are fliped get a dar…

---

## [Silhouette Kinect V2 + Removing Background](https://discourse.processing.org/t/silhouette-kinect-v2-removing-background/8472)

<div class="topic-metadata">

**Author:** [@mrtnmur](https://discourse.processing.org/u/mrtnmur)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 7:45pm UTC](https://discourse.processing.org/t/silhouette-kinect-v2-removing-background/8472 "2019-02-20T19:45:34Z")

</div>

Hello There, And thank you for your amazing work. I’m a beginner in processing and I am trying to remove the background from the information captured through a kinectv2. I’ve made a Threshold selection of the depth info…

---

## [Semicircle drawing producing artifacts](https://discourse.processing.org/t/semicircle-drawing-producing-artifacts/8444)

<div class="topic-metadata">

**Author:** [@RagingLightning](https://discourse.processing.org/u/RagingLightning)\
**Replies:** 8\
**Last updated:** [February 20, 2019, 7:41pm UTC](https://discourse.processing.org/t/semicircle-drawing-producing-artifacts/8444 "2019-02-20T19:41:00Z")

</div>

Hello! I am trying to draw a semisphere using verticies, but for some reason I get weird artifacts, when two or more “rings” are drawn behind each other. I already tried to use illumination (with a point light at 0,0,0 …

---

## [How to calculate the shades of a color?](https://discourse.processing.org/t/how-to-calculate-the-shades-of-a-color/8426)

<div class="topic-metadata">

**Author:** [@bobw](https://discourse.processing.org/u/bobw)\
**Replies:** 3\
**Last updated:** [February 20, 2019, 7:34pm UTC](https://discourse.processing.org/t/how-to-calculate-the-shades-of-a-color/8426 "2019-02-20T19:34:04Z")

</div>

Is there a way to calculate the shades of a color? I’d like to assign evenly spaced fill colors to an arbitrary and ever changing number of objects based on their size. Assign smaller objects darker shades and larger o…

---

## [Serial Communication not working with value 300+](https://discourse.processing.org/t/serial-communication-not-working-with-value-300/8427)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 7:05pm UTC](https://discourse.processing.org/t/serial-communication-not-working-with-value-300/8427 "2019-02-20T19:05:35Z")

</div>

Hey, So I’m working on a project which measures the fluctuations in the data of three sensors. This is where the sensor checks if its value has risen, fallen or stayed the same over a set time. I then send the results o…

---

## [Rate in a graph](https://discourse.processing.org/t/rate-in-a-graph/337)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 17\
**Last updated:** [February 20, 2019, 2:41pm UTC](https://discourse.processing.org/t/rate-in-a-graph/337 "2019-02-20T14:41:39Z")

</div>

Hello, i have made a programm that loads csv files and make plots in processing IDE…I would like to know how can i calculate the rate of the results with code in java for processing i3.t The plots are sinusoidal so i w…

---

## [Serial Input Text File](https://discourse.processing.org/t/serial-input-text-file/8557)

<div class="topic-metadata">

**Author:** [@OWL28SS](https://discourse.processing.org/u/OWL28SS)\
**Replies:** 2\
**Last updated:** [February 20, 2019, 1:34pm UTC](https://discourse.processing.org/t/serial-input-text-file/8557 "2019-02-20T13:34:17Z")

</div>

I am taking data from a pressure sensor from Arduino and I need to save the data in a text file. I am using processing to save the data. I am not able to figure out the code for the continuous saving of the data. Please …

---

## [Sketch to Webpage](https://discourse.processing.org/t/sketch-to-webpage/8543)

<div class="topic-metadata">

**Author:** [@stevenoneilsteven](https://discourse.processing.org/u/stevenoneilsteven)\
**Replies:** 4\
**Last updated:** [February 20, 2019, 12:53pm UTC](https://discourse.processing.org/t/sketch-to-webpage/8543 "2019-02-20T12:53:47Z")

</div>

Any help on how I can turn this Sketch in to an interactive webpage? void setup () { size(1920,1080); background(0); } void draw () { if (mousePressed) { noStroke(); fill(0); ellipse(mouseX, mouseY, 460, 460); …

---

## [Beginner's Bad Luck](https://discourse.processing.org/t/beginners-bad-luck/8542)

<div class="topic-metadata">

**Author:** [@stevenoneilsteven](https://discourse.processing.org/u/stevenoneilsteven)\
**Replies:** 3\
**Last updated:** [February 20, 2019, 9:06am UTC](https://discourse.processing.org/t/beginners-bad-luck/8542 "2019-02-20T09:06:55Z")

</div>

Hello, I have been playing with Processing for the first time and have reached an obstacle. void setup () { size(1920,1080); background(0); } void draw () { if (mousePressed) { fill(0); ellipse(mou…

---

## [\[SOLVED\] Interface vs Enum vs any other better solution?](https://discourse.processing.org/t/solved-interface-vs-enum-vs-any-other-better-solution/7658)

<div class="topic-metadata">

**Author:** [@Ov3rM1nD](https://discourse.processing.org/u/Ov3rM1nD)\
**Replies:** 5\
**Last updated:** [February 20, 2019, 3:34am UTC](https://discourse.processing.org/t/solved-interface-vs-enum-vs-any-other-better-solution/7658 "2019-02-20T03:34:38Z")

</div>

Hello folks! I was a few days ago reading random topics here on the site, and I came across this, where I felt interested to create a .jar file with a compilation of colors to use in my sketches. My question is, I have …

---

## [How to rotate entire scene instead of all objects in scene (P3D)](https://discourse.processing.org/t/how-to-rotate-entire-scene-instead-of-all-objects-in-scene-p3d/8546)

<div class="topic-metadata">

**Author:** [@TheZipCreator](https://discourse.processing.org/u/TheZipCreator)\
**Replies:** 1\
**Last updated:** [February 20, 2019, 3:17am UTC](https://discourse.processing.org/t/how-to-rotate-entire-scene-instead-of-all-objects-in-scene-p3d/8546 "2019-02-20T03:17:57Z")

</div>

I have some code to make a scene and then I want to rotate the entire scene (not all the objects in the scene) When I run this code it rotates the cube and the skysphere seperately, but I want the entire scene to rotate…

---

## [Can\`t move PacMan](https://discourse.processing.org/t/can-t-move-pacman/8537)

<div class="topic-metadata">

**Author:** [@Obacht](https://discourse.processing.org/u/Obacht)\
**Replies:** 1\
**Last updated:** [February 19, 2019, 11:37pm UTC](https://discourse.processing.org/t/can-t-move-pacman/8537 "2019-02-19T23:37:13Z")

</div>

int xkoord = 200; int ykoord = 200; int summand = 10; int winkel1 = 40; int winkel2 = 320; void setup() { size (400, 400); frameRate(60); background(0); PacMan(); Waende(); } void PacMan() { fill ( 255, 255…

---

## [Level Change controlled by Buttons](https://discourse.processing.org/t/level-change-controlled-by-buttons/8517)

<div class="topic-metadata">

**Author:** [@DJ\_SCRATCH](https://discourse.processing.org/u/DJ_SCRATCH)\
**Replies:** 1\
**Last updated:** [February 19, 2019, 1:58am UTC](https://discourse.processing.org/t/level-change-controlled-by-buttons/8517 "2019-02-19T01:58:04Z")

</div>

Hi, I’m trying to create a very simple game where the player is given a choice between two buttons in every level, get it right and you move on get it wrong and the word “WRONG” flashes on the screen, but every time I c…

---

## [Sampling color data for LED matrix](https://discourse.processing.org/t/sampling-color-data-for-led-matrix/8302)

<div class="topic-metadata">

**Author:** [@blue](https://discourse.processing.org/u/blue)\
**Replies:** 6\
**Last updated:** [February 19, 2019, 9:32pm UTC](https://discourse.processing.org/t/sampling-color-data-for-led-matrix/8302 "2019-02-19T21:32:48Z")

</div>

Hello, I’m working with a custom made 16\*16 white led matrix connected to an arduino. I’ve written a sketch that samples 256 pixels using the ‘get()’ function, converts the data, and sends to the arduino over osc. It wo…

---

## [Help on line detection](https://discourse.processing.org/t/help-on-line-detection/8373)

<div class="topic-metadata">

**Author:** [@peter1](https://discourse.processing.org/u/peter1)\
**Replies:** 1\
**Last updated:** [February 19, 2019, 6:28pm UTC](https://discourse.processing.org/t/help-on-line-detection/8373 "2019-02-19T18:28:04Z")

</div>

Im working on a maze game, and cant find out how to detect if the ball hits the walls/lines! int x; int y; int s; void setup(){ size(500,500); background(0); noStroke(); x = 20; y = 20; s = 10; fill(0,0,2…

---

## [Use into setup() a float value from a method that finds it](https://discourse.processing.org/t/use-into-setup-a-float-value-from-a-method-that-finds-it/6343)

<div class="topic-metadata">

**Author:** [@netphysicist](https://discourse.processing.org/u/netphysicist)\
**Replies:** 49\
**Last updated:** [February 19, 2019, 12:23pm UTC](https://discourse.processing.org/t/use-into-setup-a-float-value-from-a-method-that-finds-it/6343 "2019-02-19T12:23:07Z")

</div>

Hello, i have made a function void findvalue() which calculates with maths a float value named intensity and then i call this function into the void setup…My problem is that when i use the value intensity inside the v…

---

## [Super mario game help](https://discourse.processing.org/t/super-mario-game-help/8470)

<div class="topic-metadata">

**Author:** [@LuciferMS666](https://discourse.processing.org/u/LuciferMS666)\
**Replies:** 4\
**Last updated:** [February 19, 2019, 11:46am UTC](https://discourse.processing.org/t/super-mario-game-help/8470 "2019-02-19T11:46:16Z")

</div>

Hello everyone, I created this discussion because I have a job to do on processing. So I decided to create a mario game only I would like to have your help (because I’m still a beginner). I would like you to help me for …

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

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