# Processing

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

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

**Page:** 209

---

## [Processing is adding slashes and arrows to the end of lines after autoformat](https://discourse.processing.org/t/processing-is-adding-slashes-and-arrows-to-the-end-of-lines-after-autoformat/20949)

<div class="topic-metadata">

**Author:** [@jordantoshplus](https://discourse.processing.org/u/jordantoshplus)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 5:37am UTC](https://discourse.processing.org/t/processing-is-adding-slashes-and-arrows-to-the-end-of-lines-after-autoformat/20949 "2020-05-19T05:37:26Z")

</div>

I did a quick search but I couldn’t find anything relevant. Whenever I autoformat (ctrl+t) a file in processing ide, if I open the same file in vscode, some of the lines have //\<\>// at the end

---

## [Delete an element by entering a number and the following elements must move up](https://discourse.processing.org/t/delete-an-element-by-entering-a-number-and-the-following-elements-must-move-up/20840)

<div class="topic-metadata">

**Author:** [@homeCoder](https://discourse.processing.org/u/homeCoder)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 2:16am UTC](https://discourse.processing.org/t/delete-an-element-by-entering-a-number-and-the-following-elements-must-move-up/20840 "2020-05-19T02:16:06Z")

</div>

This array element (e-mails) shows up when you start the program - thats right. But I want to do something like: If I press e.g. the key ‘1’ I want that the program delete automatically the mailingListe element number 1 …

---

## [Sorting an array](https://discourse.processing.org/t/sorting-an-array/20992)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 10:40pm UTC](https://discourse.processing.org/t/sorting-an-array/20992 "2020-05-18T22:40:37Z")

</div>

I cannot see my way to sorting an array of points using a simple float comparison. Here’s the essence of what I’m seeking to do: import java.util.Collections; void setup(){ ArrayList\<Point\> points = new ArrayList();…

---

## [Does Processing support packages?](https://discourse.processing.org/t/does-processing-support-packages/6585)

<div class="topic-metadata">

**Author:** [@MCCreeper8890](https://discourse.processing.org/u/MCCreeper8890)\
**Replies:** 12\
**Last updated:** [May 18, 2020, 9:54pm UTC](https://discourse.processing.org/t/does-processing-support-packages/6585 "2020-05-18T21:54:23Z")

</div>

I’m creating a physics simulator, and I want the “force” classes to be arranged in a class called force. I noticed Processing still has public private and package. However, I suspect these are from Java itself, and are n…

---

## [G4P GKnob rotation direction](https://discourse.processing.org/t/g4p-gknob-rotation-direction/20299)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 12\
**Last updated:** [May 18, 2020, 8:46pm UTC](https://discourse.processing.org/t/g4p-gknob-rotation-direction/20299 "2020-05-18T20:46:09Z")

</div>

When I use MyKnob.setTurnMode(GKnob.CTRL\_VERTICAL); dragging the mouse up turns the knob anti-clockwise and the value decreases and vice versa when I drag down. I think it would be more ‘natural’ to have ‘drag up’ -\> r…

---

## [How to create different color for each point](https://discourse.processing.org/t/how-to-create-different-color-for-each-point/21011)

<div class="topic-metadata">

**Author:** [@DeathEater](https://discourse.processing.org/u/DeathEater)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 3:27pm UTC](https://discourse.processing.org/t/how-to-create-different-color-for-each-point/21011 "2020-05-18T15:27:09Z")

</div>

import java.awt.Point; final static int N\_POINTS\_EACH= 13; float scale = 0.25f; ArrayList \<PointSet\> allpointsets; int currentset = 0; void settings() { size(700, 500); } void setup() { frameRate(60); allpo…

---

## [Comparing an image with a pattern one](https://discourse.processing.org/t/comparing-an-image-with-a-pattern-one/20626)

<div class="topic-metadata">

**Author:** [@erwrow](https://discourse.processing.org/u/erwrow)\
**Replies:** 8\
**Last updated:** [May 18, 2020, 3:21pm UTC](https://discourse.processing.org/t/comparing-an-image-with-a-pattern-one/20626 "2020-05-18T15:21:36Z")

</div>

Hi everyone! As the title suggest, i need to compare an image (could be from the live feed of a camera) with a few patterns in memory, and be able to tell if this image is like one of the patterns (and wich) and hopeful…

---

## [Processing using bare conductive](https://discourse.processing.org/t/processing-using-bare-conductive/20983)

<div class="topic-metadata">

**Author:** [@herbert\_greenhorses](https://discourse.processing.org/u/herbert_greenhorses)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 1:30am UTC](https://discourse.processing.org/t/processing-using-bare-conductive/20983 "2020-05-18T01:30:21Z")

</div>

Hello, I’m French, my english is poor. But I can try. I use Processing, as a librarian. I also use Bare Conductive. I have Arduino. So I can plug the Bare Conductive in Processing. With this sketch, I can see which …

---

## [Constant ellipse when mouse clicked](https://discourse.processing.org/t/constant-ellipse-when-mouse-clicked/21014)

<div class="topic-metadata">

**Author:** [@Casto92i](https://discourse.processing.org/u/Casto92i)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 1:15pm UTC](https://discourse.processing.org/t/constant-ellipse-when-mouse-clicked/21014 "2020-05-18T13:15:37Z")

</div>

void mousePressed(){ ellipse(Projpos.x, Projpos.y, 100, 100); } Hi, i have a problem where i’d like to spawn an ellipse each time the mouse is pressed but when i pressed my mouse an ellipse spawn just for 1 second

---

## [Autonomous agents applied to paintings](https://discourse.processing.org/t/autonomous-agents-applied-to-paintings/20978)

<div class="topic-metadata">

**Author:** [@SemAntys](https://discourse.processing.org/u/SemAntys)\
**Replies:** 3\
**Last updated:** [May 18, 2020, 9:57am UTC](https://discourse.processing.org/t/autonomous-agents-applied-to-paintings/20978 "2020-05-18T09:57:38Z")

</div>

Hi! I’ve recently discovered the work of Leonoardo Solas and I’m very interested in his Mona Rayadas drawings, here is an example: I’ve already used autonomous agents in the past, but I’m struggling to write an opera…

---

## [Tobii 4C library - Processing disappeared](https://discourse.processing.org/t/tobii-4c-library-processing-disappeared/20821)

<div class="topic-metadata">

**Author:** [@Johan](https://discourse.processing.org/u/Johan)\
**Replies:** 15\
**Last updated:** [May 18, 2020, 9:48am UTC](https://discourse.processing.org/t/tobii-4c-library-processing-disappeared/20821 "2020-05-18T09:48:07Z")

</div>

The link http://hci.soc.napier.ac.uk/GazeTrack/ seems to be down and I cannot reach Mr. Esteves. First it appeared in the library list of processing but it couldn’t been loaded. Now it has completely disappeared. Do yo…

---

## [Why does not processing work well on my MacBook Air 2015](https://discourse.processing.org/t/why-does-not-processing-work-well-on-my-macbook-air-2015/20901)

<div class="topic-metadata">

**Author:** [@Amesh](https://discourse.processing.org/u/Amesh)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 6:00am UTC](https://discourse.processing.org/t/why-does-not-processing-work-well-on-my-macbook-air-2015/20901 "2020-05-18T06:00:29Z")

</div>

I want to ask you why processing doesn’t work on my MacBook Air 2015? Here are specs this mac; MacBook Air 2015(11-inch) processer 1.6 GHz Intel Core i5 Memory 4GB 1600 MHz DDR3 Before I opened and coded in 1th Apri…

---

## [Trying to make a perlin noise loop into a Music visualization](https://discourse.processing.org/t/trying-to-make-a-perlin-noise-loop-into-a-music-visualization/20988)

<div class="topic-metadata">

**Author:** [@Cub](https://discourse.processing.org/u/Cub)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 1:26am UTC](https://discourse.processing.org/t/trying-to-make-a-perlin-noise-loop-into-a-music-visualization/20988 "2020-05-18T01:26:55Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int totalFrames = 100; int counter = 0; boolean record = false; Particle\[\] particles = new Particle\[100\]; void setup() { size(600, 600); …

---

## [Easy way to see variable values after sketch is run?](https://discourse.processing.org/t/easy-way-to-see-variable-values-after-sketch-is-run/20981)

<div class="topic-metadata">

**Author:** [@jl33](https://discourse.processing.org/u/jl33)\
**Replies:** 6\
**Last updated:** [May 17, 2020, 11:48pm UTC](https://discourse.processing.org/t/easy-way-to-see-variable-values-after-sketch-is-run/20981 "2020-05-17T23:48:29Z")

</div>

I’m using Processing to work on some procedural generation stuff with a lot of random(), so for debugging/developing the code I often want to check what value some variable ended up throwing. I’m aware that if I know in …

---

## [Processing setup](https://discourse.processing.org/t/processing-setup/20885)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 3\
**Last updated:** [May 17, 2020, 9:48pm UTC](https://discourse.processing.org/t/processing-setup/20885 "2020-05-17T21:48:28Z")

</div>

I just downloaded Processing and intend to use it to design GUI’s for Arduino projects. My question is in regards to how to set up a Processing file structure on my home network. I have a number of computers that I use w…

---

## [Getting java exception in G4P while creating child window](https://discourse.processing.org/t/getting-java-exception-in-g4p-while-creating-child-window/20882)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 6\
**Last updated:** [May 17, 2020, 6:19pm UTC](https://discourse.processing.org/t/getting-java-exception-in-g4p-while-creating-child-window/20882 "2020-05-17T18:19:10Z")

</div>

I think I know what the problem is, I just wanted to get a second opinion. This is by far the most complex window I’ve tried to create so far. Sometimes it comes up OK and sometimes I get a “java.util.ConcurrentModificat…

---

## [Help with Shapes3D](https://discourse.processing.org/t/help-with-shapes3d/20930)

<div class="topic-metadata">

**Author:** [@lilqtip](https://discourse.processing.org/u/lilqtip)\
**Replies:** 1\
**Last updated:** [May 16, 2020, 7:33am UTC](https://discourse.processing.org/t/help-with-shapes3d/20930 "2020-05-16T07:33:05Z")

</div>

I am new to using libraries, to be frank, this is my first time trying. Now I am trying to use shapes3D to well, make 3D shapes and I can’t figure out how to work it. I have used their website ‘http://www.lagers.org.uk…

---

## [Doubts about readStringUntil ()](https://discourse.processing.org/t/doubts-about-readstringuntil/20938)

<div class="topic-metadata">

**Author:** [@Black\_1](https://discourse.processing.org/u/Black_1)\
**Replies:** 4\
**Last updated:** [May 17, 2020, 4:53pm UTC](https://discourse.processing.org/t/doubts-about-readstringuntil/20938 "2020-05-17T16:53:50Z")

</div>

hi everyone, i’m a new member, and i’m using processing recently. I am currently having difficulty with the “readStringUntil ()” function. Processing communicates with Arduino via LAN, but if the connection fails, the …

---

## [Animation problem: delay](https://discourse.processing.org/t/animation-problem-delay/20973)

<div class="topic-metadata">

**Author:** [@kukukoks](https://discourse.processing.org/u/kukukoks)\
**Replies:** 3\
**Last updated:** [May 17, 2020, 4:17pm UTC](https://discourse.processing.org/t/animation-problem-delay/20973 "2020-05-17T16:17:21Z")

</div>

Hi i have a problem with my code, i have 6 png and need to load this png from 0 to 5, but when i start program i have instantly 5 PImage zero, jeden, dwa, trzy, cztery, piec; void setup() { size(200, 200); zero=loa…

---

## [createInput() for Java](https://discourse.processing.org/t/createinput-for-java/20925)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 3\
**Last updated:** [May 17, 2020, 2:43pm UTC](https://discourse.processing.org/t/createinput-for-java/20925 "2020-05-17T14:43:04Z")

</div>

Hello, looking for a way to create a number box like the Pure Data one, Any ideas please? Is a simple box with a cursor. Enter a number or change it by mouse drag.

---

## [How to gradient this color preview](https://discourse.processing.org/t/how-to-gradient-this-color-preview/19526)

<div class="topic-metadata">

**Author:** [@newbietot](https://discourse.processing.org/u/newbietot)\
**Replies:** 3\
**Last updated:** [April 8, 2020, 1:41pm UTC](https://discourse.processing.org/t/how-to-gradient-this-color-preview/19526 "2020-04-08T13:41:54Z")

</div>

i want to make my color previewer will display the gradient black at bottom the gradient white at the top right corner, once i click the color slider into red .. the top left corner will display the color that i picked…

---

## [Loading from TXT and implementing into my current code](https://discourse.processing.org/t/loading-from-txt-and-implementing-into-my-current-code/20898)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 1\
**Last updated:** [May 17, 2020, 3:28am UTC](https://discourse.processing.org/t/loading-from-txt-and-implementing-into-my-current-code/20898 "2020-05-17T03:28:45Z")

</div>

Hello all. As some of you may know, it is the month of Ramadan. As a challenge, I decided to make a Ramadan app, and a desktop version of the app. Currently its programmed with all the prayer times for the duration of Ra…

---

## [Resize background image](https://discourse.processing.org/t/resize-background-image/20883)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 1\
**Last updated:** [May 16, 2020, 11:21pm UTC](https://discourse.processing.org/t/resize-background-image/20883 "2020-05-16T23:21:48Z")

</div>

Hi everyone, I have created an image (1920 x 1080 px) for my background. When I open the the file in another laptop that has a lower window size, then I get problems running the file. I wonder if there is a way to resiz…

---

## [Problems with translate](https://discourse.processing.org/t/problems-with-translate/20952)

<div class="topic-metadata">

**Author:** [@valeria0616](https://discourse.processing.org/u/valeria0616)\
**Replies:** 4\
**Last updated:** [May 16, 2020, 11:14pm UTC](https://discourse.processing.org/t/problems-with-translate/20952 "2020-05-16T23:14:24Z")

</div>

Hi everyone, i’m really new to processing, and I have a project that consists on doing something in 3d, so I was trying to draw the Starry Night and add the stars and houses with spheres that rotate and boxes, but when I…

---

## [Shapes3d library terrain](https://discourse.processing.org/t/shapes3d-library-terrain/20929)

<div class="topic-metadata">

**Author:** [@Mark962](https://discourse.processing.org/u/Mark962)\
**Replies:** 4\
**Last updated:** [May 16, 2020, 10:55pm UTC](https://discourse.processing.org/t/shapes3d-library-terrain/20929 "2020-05-16T22:55:07Z")

</div>

Has anyone used the terrain class in V3.0 of shapes3d? It is substantially different from what was done in V2 and I haven’t seen any V3.0 examples. Mark

---

## [Game State Management with Key Events](https://discourse.processing.org/t/game-state-management-with-key-events/19492)

<div class="topic-metadata">

**Author:** [@graysonh](https://discourse.processing.org/u/graysonh)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 9:20pm UTC](https://discourse.processing.org/t/game-state-management-with-key-events/19492 "2020-05-16T21:20:08Z")

</div>

Hello all, I’m working on a Roguelike dungeon crawler and I am learning new game development/coding techniques along the way. I am having trouble creating a finite state machine that switches between states with user in…

---

## [Matrix multiplication issue](https://discourse.processing.org/t/matrix-multiplication-issue/20622)

<div class="topic-metadata">

**Author:** [@some](https://discourse.processing.org/u/some)\
**Replies:** 3\
**Last updated:** [May 16, 2020, 7:39pm UTC](https://discourse.processing.org/t/matrix-multiplication-issue/20622 "2020-05-16T19:39:36Z")

</div>

Hi i tried to perform matrix multiplication for 2d rotation. I expected result that points will rotate in place, but instead i got flicker and movement outside screen. Here is the source code: float angle=10; PVector\[…

---

## [Helping assignments](https://discourse.processing.org/t/helping-assignments/20942)

<div class="topic-metadata">

**Author:** [@tengtengloves](https://discourse.processing.org/u/tengtengloves)\
**Replies:** 2\
**Last updated:** [May 16, 2020, 6:36pm UTC](https://discourse.processing.org/t/helping-assignments/20942 "2020-05-16T18:36:00Z")

</div>

Hi, I am trying to draw a planet that keeps spinning with a little interaction with the users. I couldn’t run the data in processing and couldn’t find the error below. The users click on the planet, it will interact wit…

---

## [Creating sectors in a rotating circular image](https://discourse.processing.org/t/creating-sectors-in-a-rotating-circular-image/20781)

<div class="topic-metadata">

**Author:** [@soraiaxb](https://discourse.processing.org/u/soraiaxb)\
**Replies:** 16\
**Last updated:** [May 16, 2020, 4:49pm UTC](https://discourse.processing.org/t/creating-sectors-in-a-rotating-circular-image/20781 "2020-05-16T16:49:14Z")

</div>

Hi, I have a circular image that rotates on mouseDragged and the image has various letters around the circle, when I drag the image to a certain position, one of the letters goes on top of a box indicating i want to writ…

---

## [Question regarding resetting animation for tank game](https://discourse.processing.org/t/question-regarding-resetting-animation-for-tank-game/20857)

<div class="topic-metadata">

**Author:** [@Pepbaggen](https://discourse.processing.org/u/Pepbaggen)\
**Replies:** 1\
**Last updated:** [May 16, 2020, 5:45am UTC](https://discourse.processing.org/t/question-regarding-resetting-animation-for-tank-game/20857 "2020-05-16T05:45:32Z")

</div>

Hi! I can fire my gun and hit the other tank, but when i shoot once, i cannot reset the code so i can shoot again… I need to stop the program and hit play again. Help? Thanks! import controlP5.\*; //library voor de power…

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

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