# Processing

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

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

**Page:** 255

---

## [ABOUT.... solar system simulation](https://discourse.processing.org/t/about-solar-system-simulation/15969)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 3\
**Last updated:** [November 30, 2019, 9:01pm UTC](https://discourse.processing.org/t/about-solar-system-simulation/15969 "2019-11-30T21:01:18Z")

</div>

Planet\[\] planets=new Planet\[8\]; void setup(){ size(200,200); for(int i=0;i\<planets.length;i++){ planets\[i\]=new Planet(20+i\*10,i+8); } } void draw(){ background(255); pushMatrix(); translate(width/2,height…

---

## [Background Image won't load](https://discourse.processing.org/t/background-image-wont-load/15964)

<div class="topic-metadata">

**Author:** [@thegoodnunes](https://discourse.processing.org/u/thegoodnunes)\
**Replies:** 2\
**Last updated:** [November 30, 2019, 8:55pm UTC](https://discourse.processing.org/t/background-image-wont-load/15964 "2019-11-30T20:55:00Z")

</div>

Hi All- I’m attempting to get this fork process, to run over the top of a background image, instead of the default neutral single color. I’ve loaded the image into the sketch data file, and attempted to set it up and d…

---

## [\[SOLVED\] Using the keyboard to change the direction a moving circle](https://discourse.processing.org/t/solved-using-the-keyboard-to-change-the-direction-a-moving-circle/15991)

<div class="topic-metadata">

**Author:** [@P3t3R08](https://discourse.processing.org/u/P3t3R08)\
**Replies:** 2\
**Last updated:** [November 30, 2019, 8:28pm UTC](https://discourse.processing.org/t/solved-using-the-keyboard-to-change-the-direction-a-moving-circle/15991 "2019-11-30T20:28:24Z")

</div>

Hello, I am trying to write a program that causes the circle to go in one direction but when I press the letter ‘a’ on the keyboard it will go the opposite direction. Additionally, if the circle reaches a boundary it wi…

---

## [Draw rectangles with the mouse, background refresh](https://discourse.processing.org/t/draw-rectangles-with-the-mouse-background-refresh/15961)

<div class="topic-metadata">

**Author:** [@antang](https://discourse.processing.org/u/antang)\
**Replies:** 4\
**Last updated:** [November 30, 2019, 8:21pm UTC](https://discourse.processing.org/t/draw-rectangles-with-the-mouse-background-refresh/15961 "2019-11-30T20:21:17Z")

</div>

hello everybody, I’m new to processing. I am looking to write a program in which I select an area of an image ( like “rect selection” in Photoshop for example…), this area has a red stroke and is slightly opaque, once t…

---

## [Circle/ Square Packing Tips](https://discourse.processing.org/t/circle-square-packing-tips/15929)

<div class="topic-metadata">

**Author:** [@K3N](https://discourse.processing.org/u/K3N)\
**Replies:** 5\
**Last updated:** [November 30, 2019, 8:07pm UTC](https://discourse.processing.org/t/circle-square-packing-tips/15929 "2019-11-30T20:07:16Z")

</div>

Hello I am new here so I hope I follow the rules and am able to get some help :stuck\_out\_tongue: I have this code from my Prof that was originally for circle packing and i just slightly adjusted it to be square packing …

---

## [Accumulate rotation with snapping](https://discourse.processing.org/t/accumulate-rotation-with-snapping/15609)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 30\
**Last updated:** [November 30, 2019, 7:55pm UTC](https://discourse.processing.org/t/accumulate-rotation-with-snapping/15609 "2019-11-30T19:55:47Z")

</div>

For a few weeks I have been having trouble finding a clean way to measure the accumulated angle of a circular drag while snapping the result to seconds on a clock. This is as close as I have come but it is still not wor…

---

## [Ignore the first point in a Line (Kinect Depth)](https://discourse.processing.org/t/ignore-the-first-point-in-a-line-kinect-depth/15985)

<div class="topic-metadata">

**Author:** [@wilsown](https://discourse.processing.org/u/wilsown)\
**Replies:** 0\
**Last updated:** [November 30, 2019, 4:55pm UTC](https://discourse.processing.org/t/ignore-the-first-point-in-a-line-kinect-depth/15985 "2019-11-30T16:55:36Z")

</div>

Hey Guys, i’d like to draw lines similar to the infamous “Unknown Pleasure” Album cover but with a Kinect v2 as source for the line positioning and the depth measured by the Kinect for the elevation of the lines. Like …

---

## [Error during download and install of \<library.name\>](https://discourse.processing.org/t/error-during-download-and-install-of-library-name/15801)

<div class="topic-metadata">

**Author:** [@Pisicandru](https://discourse.processing.org/u/Pisicandru)\
**Replies:** 5\
**Last updated:** [November 30, 2019, 4:44pm UTC](https://discourse.processing.org/t/error-during-download-and-install-of-library-name/15801 "2019-11-30T16:44:20Z")

</div>

Hi, I am a beginner and I am starting small - like - how to install a library. I run Processing 3.5.3 and using Menu - Import Library - Add Library. I am getting the following error: Error during download and install of…

---

## [Rotate() weird behaviour](https://discourse.processing.org/t/rotate-weird-behaviour/15937)

<div class="topic-metadata">

**Author:** [@kalab](https://discourse.processing.org/u/kalab)\
**Replies:** 6\
**Last updated:** [November 30, 2019, 2:46pm UTC](https://discourse.processing.org/t/rotate-weird-behaviour/15937 "2019-11-30T14:46:07Z")

</div>

Hey folks, So i have a simple block of code here where i am placing a bunch of triangles on the screen and rotating them randomly in multiples of 90 degrees at every draw. It starts off all right but tends to get a grad…

---

## [Visually show beam in processing](https://discourse.processing.org/t/visually-show-beam-in-processing/15979)

<div class="topic-metadata">

**Author:** [@shariqqureshi](https://discourse.processing.org/u/shariqqureshi)\
**Replies:** 11\
**Last updated:** [November 30, 2019, 2:44pm UTC](https://discourse.processing.org/t/visually-show-beam-in-processing/15979 "2019-11-30T14:44:15Z")

</div>

in our final year project our wants us to show beam in processing software… i.e if we apply load on he beam in reality it will be visible in processing software also show us deformation recorded by strain guages … can …

---

## [I need tips about num input:)](https://discourse.processing.org/t/i-need-tips-about-num-input/15973)

<div class="topic-metadata">

**Author:** [@24stevek](https://discourse.processing.org/u/24stevek)\
**Replies:** 11\
**Last updated:** [November 30, 2019, 12:01pm UTC](https://discourse.processing.org/t/i-need-tips-about-num-input/15973 "2019-11-30T12:01:55Z")

</div>

HI! I need to get a number input, but it’s all mixed up. I’ve tried Keypressed - that doesn’t work well because it notices spacebar as input too and using virtual buttons like a calculator - that works well but is inc…

---

## [Fill function in an array of objects](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925)

<div class="topic-metadata">

**Author:** [@Kasdal](https://discourse.processing.org/u/Kasdal)\
**Replies:** 3\
**Last updated:** [November 29, 2019, 9:19pm UTC](https://discourse.processing.org/t/fill-function-in-an-array-of-objects/15925 "2019-11-29T21:19:14Z")

</div>

import javax.swing.\*; Ball \[\] balls; PVector wind = new PVector(0.03, 3); PVector gravity = new PVector(0.1, 0.1); void setup() { size(800, 600); smooth(); background(255); int ballCount = Integer.parseInt( …

---

## [Multiple Type Dictionaries](https://discourse.processing.org/t/multiple-type-dictionaries/15786)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 8:28pm UTC](https://discourse.processing.org/t/multiple-type-dictionaries/15786 "2019-11-29T20:28:25Z")

</div>

In processing, is there a way to have a dictionary with multiple types (e.g. String, int, float, etc) I can’t seem to find if there is or not in the docu, the best I’ve found is single type ones like a float dict, int d…

---

## [Is it possible to convert arduino ADC value to wav file?](https://discourse.processing.org/t/is-it-possible-to-convert-arduino-adc-value-to-wav-file/15931)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [November 29, 2019, 2:17pm UTC](https://discourse.processing.org/t/is-it-possible-to-convert-arduino-adc-value-to-wav-file/15931 "2019-11-29T14:17:00Z")

</div>

Is it possible to convert arduino ADC value to wav file? Hi. The flowchart is as follows: Receive the sound signal from the microphone. It is delivered to Arduino analog pins through the amplifier. Get the ADC value…

---

## [map.getScreenPosition does not work as expected with unfolding maps](https://discourse.processing.org/t/map-getscreenposition-does-not-work-as-expected-with-unfolding-maps/15864)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 6\
**Last updated:** [November 29, 2019, 10:41am UTC](https://discourse.processing.org/t/map-getscreenposition-does-not-work-as-expected-with-unfolding-maps/15864 "2019-11-29T10:41:40Z")

</div>

Hi. The following is the code: // Import Unfolding Maps import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.core.\*; import de.fhpotsdam.unfolding.data.\*; import de.fhpotsdam.unfolding.events.\*; import de.fhpo…

---

## [How to append to a 2 dimensional array?](https://discourse.processing.org/t/how-to-append-to-a-2-dimensional-array/15936)

<div class="topic-metadata">

**Author:** [@JoeyPeluka](https://discourse.processing.org/u/JoeyPeluka)\
**Replies:** 5\
**Last updated:** [November 29, 2019, 9:28am UTC](https://discourse.processing.org/t/how-to-append-to-a-2-dimensional-array/15936 "2019-11-29T09:28:05Z")

</div>

Hello, I’m having trouble finding an answer to this problem. How would you append an array to an array. One of the ways I have tried doing this: int\[\]\[\] array; for (int i=1; i\<=20; i++) { append(array,{0,0,…

---

## [Issue with deciding to place background in draw() or set()](https://discourse.processing.org/t/issue-with-deciding-to-place-background-in-draw-or-set/15933)

<div class="topic-metadata">

**Author:** [@Miaomelette](https://discourse.processing.org/u/Miaomelette)\
**Replies:** 1\
**Last updated:** [November 29, 2019, 2:16am UTC](https://discourse.processing.org/t/issue-with-deciding-to-place-background-in-draw-or-set/15933 "2019-11-29T02:16:24Z")

</div>

Hi, I’m currently making a “sandwich creator” minigame, where the programs start with an intro of one slice of bread dropping down, and the user can click to put shapes on it as “toppings”. The issue I’m running into is …

---

## [Visualize cannon firing (launch vehicle) simulation](https://discourse.processing.org/t/visualize-cannon-firing-launch-vehicle-simulation/15521)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 4\
**Last updated:** [November 28, 2019, 10:13pm UTC](https://discourse.processing.org/t/visualize-cannon-firing-launch-vehicle-simulation/15521 "2019-11-28T22:13:48Z")

</div>

As I said before, I have to use processing to create project that visualizes and introduces concepts and various examples of math and science. The idea that I’m thinking about is that if you shoot a cannon from a cannon …

---

## [Increasement with ONE on keypress](https://discourse.processing.org/t/increasement-with-one-on-keypress/15906)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 6\
**Last updated:** [November 28, 2019, 10:13pm UTC](https://discourse.processing.org/t/increasement-with-one-on-keypress/15906 "2019-11-28T22:13:45Z")

</div>

Hey everyone. I’ve founded this code online I’m reworking it, so I come to my needs but now I’ve hit a bump. This is only a section of my code, so I don’t know if this enough to have this work. In the original code int …

---

## [Moving object with noLoop()](https://discourse.processing.org/t/moving-object-with-noloop/15841)

<div class="topic-metadata">

**Author:** [@San](https://discourse.processing.org/u/San)\
**Replies:** 15\
**Last updated:** [November 28, 2019, 9:07pm UTC](https://discourse.processing.org/t/moving-object-with-noloop/15841 "2019-11-28T21:07:52Z")

</div>

Hey! I made this code: Grid 40x60 with 10 red blocks and 1 yellow block. And I can move the yellow block with the w-a-s-d keys. But the red blocks keep getting a new position. That problem is fixed when I add the noLoo…

---

## [Adding text field to my calculator homework](https://discourse.processing.org/t/adding-text-field-to-my-calculator-homework/15916)

<div class="topic-metadata">

**Author:** [@bcas](https://discourse.processing.org/u/bcas)\
**Replies:** 1\
**Last updated:** [November 28, 2019, 7:54pm UTC](https://discourse.processing.org/t/adding-text-field-to-my-calculator-homework/15916 "2019-11-28T19:54:06Z")

</div>

Hi all. First post here. I have to make a calculator as a homework assignment. What I have so far is working buttons with results displayed in the terminal using a println. What I am trying to achieve is to display the r…

---

## [Movement script continues moving diagonally](https://discourse.processing.org/t/movement-script-continues-moving-diagonally/15854)

<div class="topic-metadata">

**Author:** [@madbrine](https://discourse.processing.org/u/madbrine)\
**Replies:** 5\
**Last updated:** [November 28, 2019, 7:26pm UTC](https://discourse.processing.org/t/movement-script-continues-moving-diagonally/15854 "2019-11-28T19:26:27Z")

</div>

So I’m working on a movement script for a game, but when I go from diagonal to just one direction, it continues moving diagonally. PImage pS\[\]; //Allocating a spot for Player sprites Player p; //Creates the player //Ke…

---

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

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 1\
**Last updated:** [November 28, 2019, 6:39pm UTC](https://discourse.processing.org/t/random-firsts-random/15914 "2019-11-28T18:39:51Z")

</div>

I’m using 3 floats for R G B color and if I run my code. The first variable is always black and once I press the button to randomize the colors again it will change. Can I make it that by running to program its start wi…

---

## [Can I make a small windows app for taking time and log production times?](https://discourse.processing.org/t/can-i-make-a-small-windows-app-for-taking-time-and-log-production-times/15484)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 19\
**Last updated:** [November 28, 2019, 5:18pm UTC](https://discourse.processing.org/t/can-i-make-a-small-windows-app-for-taking-time-and-log-production-times/15484 "2019-11-28T17:18:41Z")

</div>

Hi! First of all. Is it possible to export/save a finished program to open in windows without processing? What I would like is a windows app for logging times for different articles. So. I need the option to add a num…

---

## [Learning in neuronal Networks needs seems to get stuck](https://discourse.processing.org/t/learning-in-neuronal-networks-needs-seems-to-get-stuck/15891)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [November 28, 2019, 5:06pm UTC](https://discourse.processing.org/t/learning-in-neuronal-networks-needs-seems-to-get-stuck/15891 "2019-11-28T17:06:28Z")

</div>

Hi I’m using the Neuroph library from Java and I’m programming something to detect single numbers. But using even 2 samples the learning-process seems to get stuck here is the link where I got the jars. http://neuroph.s…

---

## [Using peasycam within a class?](https://discourse.processing.org/t/using-peasycam-within-a-class/15900)

<div class="topic-metadata">

**Author:** [@mjt](https://discourse.processing.org/u/mjt)\
**Replies:** 1\
**Last updated:** [November 28, 2019, 12:22pm UTC](https://discourse.processing.org/t/using-peasycam-within-a-class/15900 "2019-11-28T12:22:58Z")

</div>

Hi! I’m coding some projections that need to be switched between using keypresses. Each projection is its own class and one of them, “Stars”, which just displays a bunch of stars, is 3d. I’m using peasycam for this, but …

---

## [Error when zoom in and out](https://discourse.processing.org/t/error-when-zoom-in-and-out/15856)

<div class="topic-metadata">

**Author:** [@thefso](https://discourse.processing.org/u/thefso)\
**Replies:** 3\
**Last updated:** [November 28, 2019, 11:05am UTC](https://discourse.processing.org/t/error-when-zoom-in-and-out/15856 "2019-11-28T11:05:29Z")

</div>

I want to only use the wheel to zoom in and out and the center of our view is where the new dot is draw, but I fail to do so, anybody an idea how to solve that? float sFactor = 1.0; float transX = 0.0; float transY = 0.…

---

## [Vertical Text Align Question](https://discourse.processing.org/t/vertical-text-align-question/15892)

<div class="topic-metadata">

**Author:** [@Ladan](https://discourse.processing.org/u/Ladan)\
**Replies:** 2\
**Last updated:** [November 28, 2019, 6:26am UTC](https://discourse.processing.org/t/vertical-text-align-question/15892 "2019-11-28T06:26:28Z")

</div>

Hello! I am trying to Align my text: “QUIZ”, vertically, but the “I” and the text in general just looks bad, can somebody help me, to make it better? void draw\_quiz\_text() { fill(184, 18, 18); textSize(150); s…

---

## [Particles on webcam pixels (and phone cam)](https://discourse.processing.org/t/particles-on-webcam-pixels-and-phone-cam/15868)

<div class="topic-metadata">

**Author:** [@joana](https://discourse.processing.org/u/joana)\
**Replies:** 3\
**Last updated:** [November 27, 2019, 5:28pm UTC](https://discourse.processing.org/t/particles-on-webcam-pixels-and-phone-cam/15868 "2019-11-27T17:28:11Z")

</div>

Hi there. Based on the frame differencing Processing example, how can I include particle systems to represent the pixels on the webcam? I mean, how can I represent the webcam’s movement through particles? Here’s an exam…

---

## [Help with grid game](https://discourse.processing.org/t/help-with-grid-game/15888)

<div class="topic-metadata">

**Author:** [@ihatearrays](https://discourse.processing.org/u/ihatearrays)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 6:12pm UTC](https://discourse.processing.org/t/help-with-grid-game/15888 "2019-11-27T18:12:32Z")

</div>

I’m involved in a team project in college. the objective is to make a game for kids and the foundation is there. but when the mouse hover code works i have the other 8 squares in my 3x3 grid set to white. i want it to be…

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

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