# Processing

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

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

**Page:** 129

---

## [Handy library get all lines coordinates of a shape possible?](https://discourse.processing.org/t/handy-library-get-all-lines-coordinates-of-a-shape-possible/30497)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 6:55pm UTC](https://discourse.processing.org/t/handy-library-get-all-lines-coordinates-of-a-shape-possible/30497 "2021-06-04T18:55:20Z")

</div>

Hallo guys. Is there any way to get all the hatching lines coordinates from a shape? for example in the following sketch get all the hatching lines of the triangle and the ellipse. I need the coordinates to export as …

---

## [Large windows temp folder due to builds](https://discourse.processing.org/t/large-windows-temp-folder-due-to-builds/30484)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 4:35pm UTC](https://discourse.processing.org/t/large-windows-temp-folder-due-to-builds/30484 "2021-06-04T16:35:25Z")

</div>

I’ve noticed that my temp folder is ballooning in size as I build applications to android, the other day I had no space left on my hdd and had to resort to a fresh install as it was quicker than asking windows to delete …

---

## [Questions about interfaces and PApplet](https://discourse.processing.org/t/questions-about-interfaces-and-papplet/30443)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [June 4, 2021, 10:53am UTC](https://discourse.processing.org/t/questions-about-interfaces-and-papplet/30443 "2021-06-04T10:53:39Z")

</div>

I’m just contemplating using interfaces to help with themes in my library. I’ve never used one before and am unsure what the best way to achieve this. The main issue is that processing colors are implemented using the c…

---

## [Switch between floors in house layout by clicking button](https://discourse.processing.org/t/switch-between-floors-in-house-layout-by-clicking-button/30475)

<div class="topic-metadata">

**Author:** [@lightbombs](https://discourse.processing.org/u/lightbombs)\
**Replies:** 9\
**Last updated:** [June 4, 2021, 9:00am UTC](https://discourse.processing.org/t/switch-between-floors-in-house-layout-by-clicking-button/30475 "2021-06-04T09:00:18Z")

</div>

This is the house layout of ground floor and first floor, the lights, radiators and windows turn on and off by clicking on them. What i want to do is, when i click top left the OG button it will show the first floor and…

---

## [Custom contains method for shapes](https://discourse.processing.org/t/custom-contains-method-for-shapes/30424)

<div class="topic-metadata">

**Author:** [@Frinkel](https://discourse.processing.org/u/Frinkel)\
**Replies:** 1\
**Last updated:** [June 4, 2021, 8:03am UTC](https://discourse.processing.org/t/custom-contains-method-for-shapes/30424 "2021-06-04T08:03:22Z")

</div>

Hi, I’m currently trying to create a “custom” version of the contains method, that is implemented for shapes of the type path. The main reason I’m not using the path shape is, that I would like to map a texture onto my …

---

## [Maze little problem](https://discourse.processing.org/t/maze-little-problem/30463)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 3\
**Last updated:** [June 4, 2021, 5:18am UTC](https://discourse.processing.org/t/maze-little-problem/30463 "2021-06-04T05:18:49Z")

</div>

int cols, rows; int w = 20; ArrayList\<Cell\> grid = new ArrayList\<Cell\>(); ArrayList\<Cell\> stack = new ArrayList\<Cell\>(); Cell current; void setup() { size(820, 820); cols = floor(width/w); rows = floor(heigh…

---

## [Processing + Arduino Force Sensor Visualizing](https://discourse.processing.org/t/processing-arduino-force-sensor-visualizing/30459)

<div class="topic-metadata">

**Author:** [@frzsl](https://discourse.processing.org/u/frzsl)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 2:29am UTC](https://discourse.processing.org/t/processing-arduino-force-sensor-visualizing/30459 "2021-06-04T02:29:16Z")

</div>

Hi everyone! I’m working with a FSR Matrix Array from Sensitronics. I’m trying to make a basic visualizer that displays a black 16x16 grid. When force is detected on the MatrixArray, we’ll shade the corresponding grid ce…

---

## [Save String to .txt file when the program is a standalone application](https://discourse.processing.org/t/save-string-to-txt-file-when-the-program-is-a-standalone-application/26898)

<div class="topic-metadata">

**Author:** [@THWU0412](https://discourse.processing.org/u/THWU0412)\
**Replies:** 5\
**Last updated:** [June 3, 2021, 11:15pm UTC](https://discourse.processing.org/t/save-string-to-txt-file-when-the-program-is-a-standalone-application/26898 "2021-06-03T23:15:08Z")

</div>

My program loads a .txt file via the loadStrings() command. Then it creates a new String and saves it to the .txt file via the saveStrings() command. My problem is that when i create a standalone application it creates…

---

## [Processing4 : Exported apps on Mac fail to launch because of Java errors](https://discourse.processing.org/t/processing4-exported-apps-on-mac-fail-to-launch-because-of-java-errors/30476)

<div class="topic-metadata">

**Author:** [@schmittmachine](https://discourse.processing.org/u/schmittmachine)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 4:17pm UTC](https://discourse.processing.org/t/processing4-exported-apps-on-mac-fail-to-launch-because-of-java-errors/30476 "2021-06-03T16:17:46Z")

</div>

Using Processing4 (v4.0a3), I have trouble running exported applications on Mac (Catalina). It worked fine with Processing3. When I launch the exported app, it just exits right away. When I try to launch the app using…

---

## [A little problem with my code](https://discourse.processing.org/t/a-little-problem-with-my-code/30467)

<div class="topic-metadata">

**Author:** [@ilob](https://discourse.processing.org/u/ilob)\
**Replies:** 2\
**Last updated:** [June 3, 2021, 10:36am UTC](https://discourse.processing.org/t/a-little-problem-with-my-code/30467 "2021-06-03T10:36:17Z")

</div>

I have a little problem with my code, I am trying to make a project of a scara that makes figures, the code seems to be finished, but when starting the program I get the only and simple errors that are these: The file “…

---

## [Override function from lib](https://discourse.processing.org/t/override-function-from-lib/30465)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [June 3, 2021, 5:48am UTC](https://discourse.processing.org/t/override-function-from-lib/30465 "2021-06-03T05:48:26Z")

</div>

Just finalising some code for the android filewriter/reader. I have implemented a textbox class which registers mouseEvent and keyEvent, to allow functionality by extending the keyboard class. Currently I have hardcode…

---

## [Squares and circles (grid) (recursion vs. nested for-loops)](https://discourse.processing.org/t/squares-and-circles-grid-recursion-vs-nested-for-loops/30433)

<div class="topic-metadata">

**Author:** [@goner88](https://discourse.processing.org/u/goner88)\
**Replies:** 15\
**Last updated:** [June 2, 2021, 10:43pm UTC](https://discourse.processing.org/t/squares-and-circles-grid-recursion-vs-nested-for-loops/30433 "2021-06-02T22:43:52Z")

</div>

Hey I want to create a window with squares that have circles inside of them on the whole window. anyone has done this before ? Should I use a recursive function here? Appreciate the help and thank you

---

## [Processing to Blender to Inkscape to Axidraw: How To Remove Hidden 2D Lines](https://discourse.processing.org/t/processing-to-blender-to-inkscape-to-axidraw-how-to-remove-hidden-2d-lines/30450)

<div class="topic-metadata">

**Author:** [@eclipse](https://discourse.processing.org/u/eclipse)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 8:20pm UTC](https://discourse.processing.org/t/processing-to-blender-to-inkscape-to-axidraw-how-to-remove-hidden-2d-lines/30450 "2021-06-02T20:20:39Z")

</div>

I want to draw in 2D using Processing, export the image as an SVG, and then plot with an Axidraw. The issue I keep running into is that SVGs retain all lines, and therefore any lines that are covered by another shape’s…

---

## [Breaking a string into separate variables](https://discourse.processing.org/t/breaking-a-string-into-separate-variables/30445)

<div class="topic-metadata">

**Author:** [@xysogram](https://discourse.processing.org/u/xysogram)\
**Replies:** 3\
**Last updated:** [June 2, 2021, 5:31pm UTC](https://discourse.processing.org/t/breaking-a-string-into-separate-variables/30445 "2021-06-02T17:31:13Z")

</div>

Hi. Noob question—what is the best way to break a text string (sourced from an imported .csv) into individual variables (new char variable or similar for each character in the string)? The goal is to input text and conv…

---

## [See if two Strings are the same using recursivity (recursion)](https://discourse.processing.org/t/see-if-two-strings-are-the-same-using-recursivity-recursion/30419)

<div class="topic-metadata">

**Author:** [@oussama10](https://discourse.processing.org/u/oussama10)\
**Replies:** 8\
**Last updated:** [June 2, 2021, 8:02am UTC](https://discourse.processing.org/t/see-if-two-strings-are-the-same-using-recursivity-recursion/30419 "2021-06-02T08:02:41Z")

</div>

For a given character string, called, write a recursive function Boolean check(String s, String pattern) Which determines whether the given pattern matches the string. The pattern consists of letters and the special ch…

---

## [Processing second PApplet window does not update when method is invoked](https://discourse.processing.org/t/processing-second-papplet-window-does-not-update-when-method-is-invoked/30392)

<div class="topic-metadata">

**Author:** [@gohag](https://discourse.processing.org/u/gohag)\
**Replies:** 1\
**Last updated:** [June 1, 2021, 8:27pm UTC](https://discourse.processing.org/t/processing-second-papplet-window-does-not-update-when-method-is-invoked/30392 "2021-06-01T20:27:16Z")

</div>

Hi! I have the following code which allows to have two windows, in the main window when the ‘k’ key is pressed, must call the function disegna() of Graph and add the text. But it seems not to work properly, no draw upd…

---

## [Making lines converge to a point](https://discourse.processing.org/t/making-lines-converge-to-a-point/30425)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 2\
**Last updated:** [June 1, 2021, 8:13pm UTC](https://discourse.processing.org/t/making-lines-converge-to-a-point/30425 "2021-06-01T20:13:39Z")

</div>

Hi, I’m working on my n-th mini project. I would like to have multiple parallel lines pointing to mouse position on a click. Here’s the code I wrote: //introducing vectors PVector vMouse, u, w; //introducing arrays //…

---

## [How to play a sound when ( colorFromGet == pas )?](https://discourse.processing.org/t/how-to-play-a-sound-when-colorfromget-pas/30426)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 12\
**Last updated:** [June 1, 2021, 7:58pm UTC](https://discourse.processing.org/t/how-to-play-a-sound-when-colorfromget-pas/30426 "2021-06-01T19:58:37Z")

</div>

int x=1; int y=1; import java.awt.Robot; import java.awt.image.BufferedImage; import java.awt.Rectangle; color pas = color(11, 96, 133); Robot robot; void setup() { size(1500, 3000); try { robot = new Robot(); …

---

## [How to check if the response from get is the same as color?](https://discourse.processing.org/t/how-to-check-if-the-response-from-get-is-the-same-as-color/30417)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 7\
**Last updated:** [June 1, 2021, 6:28pm UTC](https://discourse.processing.org/t/how-to-check-if-the-response-from-get-is-the-same-as-color/30417 "2021-06-01T18:28:11Z")

</div>

int x=1; int y=1; import java.awt.Robot; import java.awt.image.BufferedImage; import java.awt.Rectangle; color pas = color(11, 96, 133); //this is the color Robot robot; void setup() { size(1500, 3000); try { ro…

---

## [Export large scale print file + web file](https://discourse.processing.org/t/export-large-scale-print-file-web-file/30380)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 11\
**Last updated:** [June 1, 2021, 4:05pm UTC](https://discourse.processing.org/t/export-large-scale-print-file-web-file/30380 "2021-06-01T16:05:01Z")

</div>

Hey processing community, is it possible to export 2 files at the same time for web and print? Thanks a lot in advance,

---

## [Help with error in Robot class and createScreenCapture() method](https://discourse.processing.org/t/help-with-error-in-robot-class-and-createscreencapture-method/30396)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 5\
**Last updated:** [June 1, 2021, 11:22am UTC](https://discourse.processing.org/t/help-with-error-in-robot-class-and-createscreencapture-method/30396 "2021-06-01T11:22:25Z")

</div>

PImage screenshot; import java.awt.Robot; void setup() { size(400,300); } void draw() { try { Robot robot = new Robot(); screenshot = new PImage(robot.createScreenCapture(new Rectangle(0,0,screen.width,screen.hei…

---

## [Blending two images using movement sensor and arduino](https://discourse.processing.org/t/blending-two-images-using-movement-sensor-and-arduino/30404)

<div class="topic-metadata">

**Author:** [@szymon\_gl](https://discourse.processing.org/u/szymon_gl)\
**Replies:** 1\
**Last updated:** [May 31, 2021, 11:10pm UTC](https://discourse.processing.org/t/blending-two-images-using-movement-sensor-and-arduino/30404 "2021-05-31T23:10:04Z")

</div>

Hi, I need help with an art project I am trying to finish. I want to smoothly blend two images together (the backgroung image it’s a photo of a person and the second image is the same person but wearing a mask). I want …

---

## [FFT of 1D array of 1024 measurements](https://discourse.processing.org/t/fft-of-1d-array-of-1024-measurements/7901)

<div class="topic-metadata">

**Author:** [@jlodewey](https://discourse.processing.org/u/jlodewey)\
**Replies:** 19\
**Last updated:** [May 31, 2021, 7:21pm UTC](https://discourse.processing.org/t/fft-of-1d-array-of-1024-measurements/7901 "2021-05-31T19:21:05Z")

</div>

Hello Is there a function such as fft(array)? The array input comes from an Arduino. The sound library contains an FFT possibility but the input comes from an audio input. Thank you. Jozef lodeweyckx

---

## [How can i make a movie array? :S](https://discourse.processing.org/t/how-can-i-make-a-movie-array-s/29827)

<div class="topic-metadata">

**Author:** [@softailu](https://discourse.processing.org/u/softailu)\
**Replies:** 8\
**Last updated:** [May 31, 2021, 5:43pm UTC](https://discourse.processing.org/t/how-can-i-make-a-movie-array-s/29827 "2021-05-31T17:43:20Z")

</div>

Hi! I need help with a problem that I cannot solve. I want to make an array of several .mov recordings and I can’t get it to work. My main idea is to be able to load more than 10 videos in an array and then from mouse …

---

## [AI reinforcement learning](https://discourse.processing.org/t/ai-reinforcement-learning/30369)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 8\
**Last updated:** [May 31, 2021, 3:31pm UTC](https://discourse.processing.org/t/ai-reinforcement-learning/30369 "2021-05-31T15:31:42Z")

</div>

I’m trying to learn reinforcement learning for AI so far i been told the way to program it is make a table with the actions I want the player to do, but when looking at youtube reinforcement learning ai they are getting …

---

## [Please guys help me, I am trying to complete this morphing between obj](https://discourse.processing.org/t/please-guys-help-me-i-am-trying-to-complete-this-morphing-between-obj/30383)

<div class="topic-metadata">

**Author:** [@bello](https://discourse.processing.org/u/bello)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 3:30pm UTC](https://discourse.processing.org/t/please-guys-help-me-i-am-trying-to-complete-this-morphing-between-obj/30383 "2021-05-31T15:30:34Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \< PShape obj; PShape objB; PShape objC; PShape objD; int children = obj.getChildCount(); //onj=teapot objB=pianta objC=teschio objD=mano Ar…

---

## [A condition expression should not be reduced to an assignment](https://discourse.processing.org/t/a-condition-expression-should-not-be-reduced-to-an-assignment/30395)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 2\
**Last updated:** [May 31, 2021, 2:50pm UTC](https://discourse.processing.org/t/a-condition-expression-should-not-be-reduced-to-an-assignment/30395 "2021-05-31T14:50:02Z")

</div>

boolean check(){ for (int j = 0; j \< grid.size(); j++) { if (grid.get(j-1).visited = true ) { return true; } } } i want run some fuction after the class in a arraylist all been visited. …

---

## [Why does my program return the error, Cannot find a class or type named “Robot”?](https://discourse.processing.org/t/why-does-my-program-return-the-error-cannot-find-a-class-or-type-named-robot/30394)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [May 31, 2021, 2:40pm UTC](https://discourse.processing.org/t/why-does-my-program-return-the-error-cannot-find-a-class-or-type-named-robot/30394 "2021-05-31T14:40:44Z")

</div>

why does my program return the error, Cannot find a class or type named “Robot”?

---

## [Ufdw\_j4k2\_64bit.dll not loaded](https://discourse.processing.org/t/ufdw-j4k2-64bit-dll-not-loaded/30374)

<div class="topic-metadata">

**Author:** [@sergio\_dm](https://discourse.processing.org/u/sergio_dm)\
**Replies:** 0\
**Last updated:** [May 30, 2021, 5:25pm UTC](https://discourse.processing.org/t/ufdw-j4k2-64bit-dll-not-loaded/30374 "2021-05-30T17:25:33Z")

</div>

hi i have installed the j4d library for Kinect on processing, when i try run an example code i get this message, ufdw\_j4k2\_64bit.dll not loaded. how can solve it ? Thanks for your answers.

---

## [Trouble receiving different data through serial from Arduino to Processing](https://discourse.processing.org/t/trouble-receiving-different-data-through-serial-from-arduino-to-processing/30317)

<div class="topic-metadata">

**Author:** [@Valakas](https://discourse.processing.org/u/Valakas)\
**Replies:** 5\
**Last updated:** [May 30, 2021, 3:23pm UTC](https://discourse.processing.org/t/trouble-receiving-different-data-through-serial-from-arduino-to-processing/30317 "2021-05-30T15:23:06Z")

</div>

Hello everyone, this is my first time using both processing and arduino and I’m having a bit of trouble with receiving data in processing. I have a DHT11 temperature and humidity sensor I’m using with my Arduino and I’m…

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

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