# Processing

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

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

**Page:** 91

---

## [Duplicate Curves](https://discourse.processing.org/t/duplicate-curves/35366)

<div class="topic-metadata">

**Author:** [@jmankoff](https://discourse.processing.org/u/jmankoff)\
**Replies:** 4\
**Last updated:** [February 22, 2022, 4:55am UTC](https://discourse.processing.org/t/duplicate-curves/35366 "2022-02-22T04:55:55Z")

</div>

Hi, I’m trying to generate an SVG with bezier curves in it from processing. However, when I open the resulting SVG in illustrator, there are duplicates of every curve – one with no fill but a line, and one with no line,…

---

## [Collision detection for player sprite and platforms sprites](https://discourse.processing.org/t/collision-detection-for-player-sprite-and-platforms-sprites/35363)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 10:13pm UTC](https://discourse.processing.org/t/collision-detection-for-player-sprite-and-platforms-sprites/35363 "2022-02-21T22:13:56Z")

</div>

I have read some topics here on the Processing forum and watched some videos on YouTube towards collision detection in simple games, however most of them are centred in drawings made on Processing itself, such as circles…

---

## [    This is the code that I have written so far. When the mouse is clicked, objects will appear but I want the program structured, in which if the mouse is pressed again on an object, the object will delete.           ](https://discourse.processing.org/t/this-is-the-code-that-i-have-written-so-far-when-the-mouse-is-clicked-objects-will-appear-but-i-want-the-program-structured-in-which-if-the-mouse-is-pressed-again-on-an-object-the-object-will-delete/35348)

<div class="topic-metadata">

**Author:** [@erijgeirg](https://discourse.processing.org/u/erijgeirg)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 6:18am UTC](https://discourse.processing.org/t/this-is-the-code-that-i-have-written-so-far-when-the-mouse-is-clicked-objects-will-appear-but-i-want-the-program-structured-in-which-if-the-mouse-is-pressed-again-on-an-object-the-object-will-delete/35348 "2022-02-21T06:18:30Z")

</div>

public class circle { float x, y; int circleShape; public circle(float x, float y) { this.x = x; this.y = y; circleShape = floor(random(3)); } public void drawcircle() { if (circleShape == 0) { circle1();} } p…

---

## [Problem with reading a html file](https://discourse.processing.org/t/problem-with-reading-a-html-file/32277)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 2\
**Last updated:** [February 20, 2022, 8:27pm UTC](https://discourse.processing.org/t/problem-with-reading-a-html-file/32277 "2022-02-20T20:27:44Z")

</div>

Hey, I want to write a class with which you can get a certain element from a website. For example give the class a link and an xpath and as result I want a string with the code of the element. link:Ludmilla von Böhmen…

---

## [Send 1 data from Processing to Python that changes in void draw() loop (NEED HELP)](https://discourse.processing.org/t/send-1-data-from-processing-to-python-that-changes-in-void-draw-loop-need-help/35241)

<div class="topic-metadata">

**Author:** [@finchle99](https://discourse.processing.org/u/finchle99)\
**Replies:** 4\
**Last updated:** [February 20, 2022, 6:08pm UTC](https://discourse.processing.org/t/send-1-data-from-processing-to-python-that-changes-in-void-draw-loop-need-help/35241 "2022-02-20T18:08:59Z")

</div>

Hi, I’m new in Processing. How can I send only 1 data from Processing to Python every time I use mousePressed == true, the data changes in void draw(). I tried and every time I press the mouse, the data that was sent …

---

## [Image() function with 4 points](https://discourse.processing.org/t/image-function-with-4-points/35182)

<div class="topic-metadata">

**Author:** [@Omri](https://discourse.processing.org/u/Omri)\
**Replies:** 21\
**Last updated:** [February 19, 2022, 4:06pm UTC](https://discourse.processing.org/t/image-function-with-4-points/35182 "2022-02-19T16:06:55Z")

</div>

Hey, Is there any option to display an image in processing with 4 points coordinates? (top left, top right, bottom left, bottom right). in the references, I see with top left, bottom right thanks :slight\_smile:

---

## [Detect rectangle intersection in 3D](https://discourse.processing.org/t/detect-rectangle-intersection-in-3d/35201)

<div class="topic-metadata">

**Author:** [@bruno.pace](https://discourse.processing.org/u/bruno.pace)\
**Replies:** 5\
**Last updated:** [February 19, 2022, 3:50pm UTC](https://discourse.processing.org/t/detect-rectangle-intersection-in-3d/35201 "2022-02-19T15:50:12Z")

</div>

Hi there, I am writing a program to draw some white squares in 3D space and I would like that, where they intersect, a black line is shown. I can’t find an easy way to do that. However, if I use different colors for th…

---

## [Possible to simulate Photoshop Layer Styles?](https://discourse.processing.org/t/possible-to-simulate-photoshop-layer-styles/35288)

<div class="topic-metadata">

**Author:** [@derrotebaron](https://discourse.processing.org/u/derrotebaron)\
**Replies:** 2\
**Last updated:** [February 19, 2022, 3:41pm UTC](https://discourse.processing.org/t/possible-to-simulate-photoshop-layer-styles/35288 "2022-02-19T15:41:53Z")

</div>

Is it possible to simulate Photoshop layer styles within Processing? The example I’m thinking of would be applying different styles or graphic actions to an image, such as halftones or a glitch effect. Basically I’d ha…

---

## [Multi channel audio output using audio interface](https://discourse.processing.org/t/multi-channel-audio-output-using-audio-interface/35276)

<div class="topic-metadata">

**Author:** [@GSA\_IxD](https://discourse.processing.org/u/GSA_IxD)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 8:42pm UTC](https://discourse.processing.org/t/multi-channel-audio-output-using-audio-interface/35276 "2022-02-18T20:42:48Z")

</div>

Hi – appreciate there are a couple of similar questions on this but couldn’t get a resolution that works for playing samples. Wondering if it’s just not possible so any steer appreciated. I am trying to build a simple 6…

---

## [Setting max available memory - best practice?](https://discourse.processing.org/t/setting-max-available-memory-best-practice/35256)

<div class="topic-metadata">

**Author:** [@dy1](https://discourse.processing.org/u/dy1)\
**Replies:** 1\
**Last updated:** [February 19, 2022, 12:19am UTC](https://discourse.processing.org/t/setting-max-available-memory-best-practice/35256 "2022-02-19T00:19:45Z")

</div>

I’m running Processing 3 on my new MacBook Pro with an Apple M1 Max processor and 32 GB of memory. And I’m wondering if I should be setting Processing’s memory settings to be something other than the default. I see in p…

---

## [Slider - adjust sound cp5](https://discourse.processing.org/t/slider-adjust-sound-cp5/15606)

<div class="topic-metadata">

**Author:** [@yty](https://discourse.processing.org/u/yty)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 12:00am UTC](https://discourse.processing.org/t/slider-adjust-sound-cp5/15606 "2022-02-19T00:00:25Z")

</div>

How do I adjust the value of a slider in controlP5 in Processing? For example. I’ve made a slider using the cp5 library, and I would like to change the volume from low to high whenever I move the slider up and down. So …

---

## [Limitations of Processing?](https://discourse.processing.org/t/limitations-of-processing/35269)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [February 18, 2022, 8:46pm UTC](https://discourse.processing.org/t/limitations-of-processing/35269 "2022-02-18T20:46:22Z")

</div>

In the last day I tried to write a little utility library for a friends. It was supposed to include easy access to features like compiling classes or serialization in testing the features in java worked fine but when cal…

---

## ["this" argument not working correctly](https://discourse.processing.org/t/this-argument-not-working-correctly/21880)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 7:07pm UTC](https://discourse.processing.org/t/this-argument-not-working-correctly/21880 "2022-02-18T19:07:08Z")

</div>

I’m using the processing.sound library to make a synth, but when I use the “this” keyword it gives me an error: The constructor "SinOsc(Timbre)" does not exist MCVEimport processing.sound.\*; class Timbre { SinOsc fr…

---

## [Removing class from code](https://discourse.processing.org/t/removing-class-from-code/35249)

<div class="topic-metadata">

**Author:** [@gvmrk](https://discourse.processing.org/u/gvmrk)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 6:36pm UTC](https://discourse.processing.org/t/removing-class-from-code/35249 "2022-02-18T18:36:09Z")

</div>

Hello, I wrote this code a while ago. Now I need to get the methods loose and get the class out of the code, How do I do this? Thank you! int speelveldPosX, speelveldPosY; int speelveldSizeX, speelveldSizeY; int vakSi…

---

## [Teclear una letra y generar un objeto](https://discourse.processing.org/t/teclear-una-letra-y-generar-un-objeto/35271)

<div class="topic-metadata">

**Author:** [@AdriaCornell](https://discourse.processing.org/u/AdriaCornell)\
**Replies:** 2\
**Last updated:** [February 18, 2022, 6:28pm UTC](https://discourse.processing.org/t/teclear-una-letra-y-generar-un-objeto/35271 "2022-02-18T18:28:54Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Tengo una duda sobre como hacer para que una vez consigo asignar a una letra un objeto por ejemplo, al pulsar la letra C aparece un círculo dond…

---

## [Movie Freezes Upon Playback](https://discourse.processing.org/t/movie-freezes-upon-playback/35259)

<div class="topic-metadata">

**Author:** [@aminafoxdye](https://discourse.processing.org/u/aminafoxdye)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 3:55am UTC](https://discourse.processing.org/t/movie-freezes-upon-playback/35259 "2022-02-18T03:55:16Z")

</div>

Howdy all- I’ve used Processing on and off for the past couple of years but am just now joining the forum. :slight\_smile: I’m building an occupancy detector for a museum that will pipe the current number of people in th…

---

## [Fill() not working in program](https://discourse.processing.org/t/fill-not-working-in-program/35239)

<div class="topic-metadata">

**Author:** [@nbrugger](https://discourse.processing.org/u/nbrugger)\
**Replies:** 3\
**Last updated:** [February 17, 2022, 7:14pm UTC](https://discourse.processing.org/t/fill-not-working-in-program/35239 "2022-02-17T19:14:16Z")

</div>

I am doing this code for a project in school and the fill function is not working. No matter what I do the rectangle always shows up as black. Could someone tell me what I am doing wrong? void Show(){ for(int y = …

---

## [Convert a primitive type array into a Object\[\] array](https://discourse.processing.org/t/convert-a-primitive-type-array-into-a-object-array/35245)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 6:50pm UTC](https://discourse.processing.org/t/convert-a-primitive-type-array-into-a-object-array/35245 "2022-02-17T18:50:43Z")

</div>

I’m currently writing a serialization-function and have been making progress for everything that doesn’t use an array with primitive types. Here is my code: import java.lang.reflect.Field; class BClass { int value; …

---

## [ How to connect my code with the key pressed event and what should I do to make my character jump? ( Processing 3.5.4)](https://discourse.processing.org/t/how-to-connect-my-code-with-the-key-pressed-event-and-what-should-i-do-to-make-my-character-jump-processing-3-5-4/35231)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 6:31pm UTC](https://discourse.processing.org/t/how-to-connect-my-code-with-the-key-pressed-event-and-what-should-i-do-to-make-my-character-jump-processing-3-5-4/35231 "2022-02-17T18:31:26Z")

</div>

I have been coding a simple game and I’m stuck in the key pressed events and my intention is to make my character move backwards, onwards, upwards and downwards. Where should I place the keypressed code to connect it wit…

---

## [How to connect my code with the key pressed event and what should I do to make my character jump? (Duplicate thread)](https://discourse.processing.org/t/how-to-connect-my-code-with-the-key-pressed-event-and-what-should-i-do-to-make-my-character-jump-duplicate-thread/35211)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 5:50pm UTC](https://discourse.processing.org/t/how-to-connect-my-code-with-the-key-pressed-event-and-what-should-i-do-to-make-my-character-jump-duplicate-thread/35211 "2022-02-17T17:50:10Z")

</div>

I have been coding a simple game and I’m stuck in the key pressed events and my intention is to make my character move backwards, onwards, upwards and downwards. Where should I place the keypressed code to connect it wit…

---

## [Issues with accessing video in exported application](https://discourse.processing.org/t/issues-with-accessing-video-in-exported-application/35243)

<div class="topic-metadata">

**Author:** [@mrfb](https://discourse.processing.org/u/mrfb)\
**Replies:** 0\
**Last updated:** [February 17, 2022, 4:49pm UTC](https://discourse.processing.org/t/issues-with-accessing-video-in-exported-application/35243 "2022-02-17T16:49:18Z")

</div>

Hi! I’m having an issue that’s causing me some trouble. I wrote a little application to power a twitterbot that pulls up one of a few possible video files, and tweets out a random still from it. Everything works fine whe…

---

## [Flickering of shapes. Problem with perspective?](https://discourse.processing.org/t/flickering-of-shapes-problem-with-perspective/33892)

<div class="topic-metadata">

**Author:** [@WhiteSte](https://discourse.processing.org/u/WhiteSte)\
**Replies:** 12\
**Last updated:** [February 17, 2022, 3:51pm UTC](https://discourse.processing.org/t/flickering-of-shapes-problem-with-perspective/33892 "2022-02-17T15:51:51Z")

</div>

Dear all, the little start up where I work is building a software. For this reason i cannot share with you all the code, but i could share some little pieces. The problem: I’m trying to visualize a city in a 3d world, b…

---

## [Introducing randomness and asymmetry to shape](https://discourse.processing.org/t/introducing-randomness-and-asymmetry-to-shape/35073)

<div class="topic-metadata">

**Author:** [@krissnutt](https://discourse.processing.org/u/krissnutt)\
**Replies:** 40\
**Last updated:** [February 17, 2022, 3:55pm UTC](https://discourse.processing.org/t/introducing-randomness-and-asymmetry-to-shape/35073 "2022-02-17T15:55:19Z")

</div>

Good day :slight\_smile: I am trying to code a pattern of vulva shapes. So far I have managed to code the shape and make a pattern, but what I want to do is make each vulva different from the other ones, i.e., introduce …

---

## [Problem: Image (background) needs to loop in it's --background; x position](https://discourse.processing.org/t/problem-image-background-needs-to-loop-in-its-background-x-position/35224)

<div class="topic-metadata">

**Author:** [@Kimjstuff](https://discourse.processing.org/u/Kimjstuff)\
**Replies:** 3\
**Last updated:** [February 17, 2022, 3:39pm UTC](https://discourse.processing.org/t/problem-image-background-needs-to-loop-in-its-background-x-position/35224 "2022-02-17T15:39:49Z")

</div>

I’m trying to make a small game and is currently stock on a few problems I have made my background/image move from left to right, but when it meets the edge of the background/picture within my processing window I want …

---

## [Sketch doesn't run on linux](https://discourse.processing.org/t/sketch-doesnt-run-on-linux/35226)

<div class="topic-metadata">

**Author:** [@Pietari](https://discourse.processing.org/u/Pietari)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 3:02pm UTC](https://discourse.processing.org/t/sketch-doesnt-run-on-linux/35226 "2022-02-17T15:02:31Z")

</div>

Hi! I recently installed processing version 3.5.4-6 on my laptop which has a linux manjaro OS. First I couldn’t open the program at all, but I figured out that I needed to change the Java environment to java-8-openjdk/…

---

## [How to code button 2](https://discourse.processing.org/t/how-to-code-button-2/35167)

<div class="topic-metadata">

**Author:** [@ata](https://discourse.processing.org/u/ata)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 9:15am UTC](https://discourse.processing.org/t/how-to-code-button-2/35167 "2022-02-17T09:15:44Z")

</div>

i cant manage to code button 2. the 3 is done and it stamps the pshape “v” i have to code button 2 wich should basically do the same as 3 but instead of the “v” pshape should stamp phsape “u” but i dont know how to make…

---

## [Processing window not turned on on Mac](https://discourse.processing.org/t/processing-window-not-turned-on-on-mac/35221)

<div class="topic-metadata">

**Author:** [@Celsius](https://discourse.processing.org/u/Celsius)\
**Replies:** 1\
**Last updated:** [February 17, 2022, 3:32am UTC](https://discourse.processing.org/t/processing-window-not-turned-on-on-mac/35221 "2022-02-17T03:32:32Z")

</div>

I just downloaded processing on Mac, following the instructions, but when I clicked on the icon, nothing happened. I rebooted my Mac and it is still the same. The instruction says “if the program didn’t start, visit the…

---

## [Problem running Processing project in VSCode](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198)

<div class="topic-metadata">

**Author:** [@avina](https://discourse.processing.org/u/avina)\
**Replies:** 4\
**Last updated:** [February 17, 2022, 1:00am UTC](https://discourse.processing.org/t/problem-running-processing-project-in-vscode/35198 "2022-02-17T01:00:02Z")

</div>

Hello, I am trying to get set up with processing in VSCode, and I am encountering the following problem when attempting to run the processing project. I followed this tutorial to get started. I don’t believe that I miss…

---

## [Problems running processing on M1 Mac](https://discourse.processing.org/t/problems-running-processing-on-m1-mac/35218)

<div class="topic-metadata">

**Author:** [@barrysmyth](https://discourse.processing.org/u/barrysmyth)\
**Replies:** 0\
**Last updated:** [February 16, 2022, 10:42pm UTC](https://discourse.processing.org/t/problems-running-processing-on-m1-mac/35218 "2022-02-16T22:42:13Z")

</div>

Just installed processing on M1 Mac but the console shows endless “java.lang.NoSuchMethodError: accessibilityHitTest” error messages. I have Java installed but not sure what is going on and haven’t been able to locate he…

---

## [Processing and Arduino standard Firmata: switching PShape with another PShape pressing a button on Arduino](https://discourse.processing.org/t/processing-and-arduino-standard-firmata-switching-pshape-with-another-pshape-pressing-a-button-on-arduino/35162)

<div class="topic-metadata">

**Author:** [@ata](https://discourse.processing.org/u/ata)\
**Replies:** 1\
**Last updated:** [February 16, 2022, 3:33pm UTC](https://discourse.processing.org/t/processing-and-arduino-standard-firmata-switching-pshape-with-another-pshape-pressing-a-button-on-arduino/35162 "2022-02-16T15:33:41Z")

</div>

hello. i am creating an arduino machine. it is talking to processing using the library standardFirmata(arduino). in this arduino there are three elements: two buttons and a joystick. a Pshape can be moved in the sketch w…

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

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