# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=230

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

**Page:** 231

---

## [What is the difference between createGraphics() and createDiv()](https://discourse.processing.org/t/what-is-the-difference-between-creategraphics-and-creatediv/29484)

<div class="topic-metadata">

**Author:** [@turtle](https://discourse.processing.org/u/turtle)\
**Replies:** 15\
**Last updated:** [April 22, 2021, 11:55am UTC](https://discourse.processing.org/t/what-is-the-difference-between-creategraphics-and-creatediv/29484 "2021-04-22T11:55:47Z")

</div>

the code as following let pg, div; function setup() { createCanvas(400,400); pg = createGraphics(400,400); div = createDiv(); } function draw() { pg.rect(50,50,50,50); pg.fill("red"); pg.noStroke(); imag…

---

## [Overlayed Transparent Shapes Never Become Fully Opaque](https://discourse.processing.org/t/overlayed-transparent-shapes-never-become-fully-opaque/29518)

<div class="topic-metadata">

**Author:** [@kweso](https://discourse.processing.org/u/kweso)\
**Replies:** 7\
**Last updated:** [April 22, 2021, 12:12am UTC](https://discourse.processing.org/t/overlayed-transparent-shapes-never-become-fully-opaque/29518 "2021-04-22T00:12:13Z")

</div>

Why do the overlaying circles in the bg never become the full color of the circle in the middle? Very low alpha values (\<5) even change the saturation of my color… Is there anything for me to fix this? Tyvm!

---

## [Processing crashes when trying to open a file](https://discourse.processing.org/t/processing-crashes-when-trying-to-open-a-file/16697)

<div class="topic-metadata">

**Author:** [@Flo](https://discourse.processing.org/u/Flo)\
**Replies:** 1\
**Last updated:** [April 22, 2021, 6:23am UTC](https://discourse.processing.org/t/processing-crashes-when-trying-to-open-a-file/16697 "2021-04-22T06:23:52Z")

</div>

Processing works fine in an empty sketch, but the moment I use ctrl-o or any other way to open a file, the gui doesn’t show any of the textfiles, and when you then press cancel processing crashes with the following messa…

---

## [Move Vertex from SVG](https://discourse.processing.org/t/move-vertex-from-svg/29542)

<div class="topic-metadata">

**Author:** [@p\_a](https://discourse.processing.org/u/p_a)\
**Replies:** 1\
**Last updated:** [April 21, 2021, 5:32pm UTC](https://discourse.processing.org/t/move-vertex-from-svg/29542 "2021-04-21T17:32:55Z")

</div>

Hello! Currently I am working on moving backgrounds for music, don’t bother the sound analysis stuff, my only problem is that I want to move the Vertex points from one SVG Child to my created frequency bands. It works i…

---

## [How do I find the rotateX,rotateY, and rotateZ values to make any vector vertical?](https://discourse.processing.org/t/how-do-i-find-the-rotatex-rotatey-and-rotatez-values-to-make-any-vector-vertical/29220)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 4\
**Last updated:** [April 21, 2021, 5:04pm UTC](https://discourse.processing.org/t/how-do-i-find-the-rotatex-rotatey-and-rotatez-values-to-make-any-vector-vertical/29220 "2021-04-21T17:04:47Z")

</div>

I’ve got two points in 3d space, and I want to draw a box between them that acts like a line. If I can translate to get to the first point, how would I find the rotation values that could make my box aligned so that one …

---

## [Problem on If-else statement](https://discourse.processing.org/t/problem-on-if-else-statement/29546)

<div class="topic-metadata">

**Author:** [@JustinChan613](https://discourse.processing.org/u/JustinChan613)\
**Replies:** 4\
**Last updated:** [April 21, 2021, 5:03pm UTC](https://discourse.processing.org/t/problem-on-if-else-statement/29546 "2021-04-21T17:03:31Z")

</div>

Hi All I am now doing a project on p5.js gaming. As I want to do random picking on CPU/Player playing first, I am using the concept of random( ) and if-else statement. However, it does not work. Would like to ask what is…

---

## [Exception in Toxiclibs voronoi.addPoint() when image is large (5k x 5k or larger)](https://discourse.processing.org/t/exception-in-toxiclibs-voronoi-addpoint-when-image-is-large-5k-x-5k-or-larger/29541)

<div class="topic-metadata">

**Author:** [@mocelet](https://discourse.processing.org/u/mocelet)\
**Replies:** 2\
**Last updated:** [April 21, 2021, 1:02pm UTC](https://discourse.processing.org/t/exception-in-toxiclibs-voronoi-addpoint-when-image-is-large-5k-x-5k-or-larger/29541 "2021-04-21T13:02:08Z")

</div>

I am using the Toxiclibs voronoi mesh to generate a set of non-overlapping lines in a circle, and have based my sketch on the example code I found at https://forum.processing.org/one/topic/toxiclib-voronoi-example-sketch…

---

## [Problems with creating soft body in processing](https://discourse.processing.org/t/problems-with-creating-soft-body-in-processing/29535)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 1\
**Last updated:** [April 21, 2021, 10:09am UTC](https://discourse.processing.org/t/problems-with-creating-soft-body-in-processing/29535 "2021-04-21T10:09:05Z")

</div>

I am having trouble forming a soft body where each side is a spring. When they are created, they do not merge into one object, but create as many springs as there are vertices in the figure. This code is responsible for …

---

## [Presentation in processing? Is my idea doable?](https://discourse.processing.org/t/presentation-in-processing-is-my-idea-doable/28489)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 10\
**Last updated:** [April 21, 2021, 9:47am UTC](https://discourse.processing.org/t/presentation-in-processing-is-my-idea-doable/28489 "2021-04-21T09:47:26Z")

</div>

Hi, Me and a co-worker are about to make a presentation of a project that’s almost completed. Its a change in layout in production flow in a factory. Since we cant have a “grand opening” cause of the pandemic we are do…

---

## [Question with duplication words](https://discourse.processing.org/t/question-with-duplication-words/29511)

<div class="topic-metadata">

**Author:** [@Pokeyace](https://discourse.processing.org/u/Pokeyace)\
**Replies:** 6\
**Last updated:** [April 21, 2021, 4:48am UTC](https://discourse.processing.org/t/question-with-duplication-words/29511 "2021-04-21T04:48:34Z")

</div>

String S; int L, i, j; String W\[\]; boolean build; void setup(){ // Initializations S = “We are the world We are the children”; L = S.length(); j = 0; W = new String\[100\]; W\[0\] = “”; // Main loop for(i = 0; i \<…

---

## [Files won't run on another system](https://discourse.processing.org/t/files-wont-run-on-another-system/28859)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 18\
**Last updated:** [April 21, 2021, 1:08am UTC](https://discourse.processing.org/t/files-wont-run-on-another-system/28859 "2021-04-21T01:08:33Z")

</div>

I recently got a new computer and copied the Processing folder to the new system in order to continue development of these projects (most in Android mode). Unfortunately the source code will not run on the new system an…

---

## [Help Any one give me info where i find one digital timer for Android mode](https://discourse.processing.org/t/help-any-one-give-me-info-where-i-find-one-digital-timer-for-android-mode/29293)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 8\
**Last updated:** [April 20, 2021, 8:26pm UTC](https://discourse.processing.org/t/help-any-one-give-me-info-where-i-find-one-digital-timer-for-android-mode/29293 "2021-04-20T20:26:53Z")

</div>

Read topic Any info Tankyou

---

## [Creating and deleting files](https://discourse.processing.org/t/creating-and-deleting-files/29466)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 12\
**Last updated:** [April 20, 2021, 6:42pm UTC](https://discourse.processing.org/t/creating-and-deleting-files/29466 "2021-04-20T18:42:32Z")

</div>

I’m trying to make a little app for personal use intended to get weather data from a website. To make this, I have to make some workaround to bypass a 403 error and I’m able to create three files (one for every day for w…

---

## [Help with Scale and Mouse Coordinates Mismatch](https://discourse.processing.org/t/help-with-scale-and-mouse-coordinates-mismatch/29512)

<div class="topic-metadata">

**Author:** [@Mattyjak](https://discourse.processing.org/u/Mattyjak)\
**Replies:** 3\
**Last updated:** [April 20, 2021, 6:02pm UTC](https://discourse.processing.org/t/help-with-scale-and-mouse-coordinates-mismatch/29512 "2021-04-20T18:02:41Z")

</div>

Hello fellow programmers! I’ve been working on a small space game, and have run into an issue with the ‘solar system map’ system. I’m using translations and scale effects to give the illusion of a full, traversable map…

---

## [Security & Privacy Considerations in Processing](https://discourse.processing.org/t/security-privacy-considerations-in-processing/29527)

<div class="topic-metadata">

**Author:** [@claoidek](https://discourse.processing.org/u/claoidek)\
**Replies:** 2\
**Last updated:** [April 20, 2021, 4:40pm UTC](https://discourse.processing.org/t/security-privacy-considerations-in-processing/29527 "2021-04-20T16:40:34Z")

</div>

Hi I’m writing an assignment on the security and privacy considerations of a Processing sketch (using a control p5 library). Does anyone know of any vulnerabilities I should consider?

---

## [Algorithm of an arc based on the midpoint algorithm](https://discourse.processing.org/t/algorithm-of-an-arc-based-on-the-midpoint-algorithm/29502)

<div class="topic-metadata">

**Author:** [@S1993](https://discourse.processing.org/u/S1993)\
**Replies:** 2\
**Last updated:** [April 20, 2021, 10:24am UTC](https://discourse.processing.org/t/algorithm-of-an-arc-based-on-the-midpoint-algorithm/29502 "2021-04-20T10:24:54Z")

</div>

I have to create an algorithm to produce a circular segment, so I have to give the radius, the center, and the initial and final angle. I have been working on the midpoint circle algorithm but I don know how to change i…

---

## [How does one detect ENTER/BACKSPACE keys in Android?](https://discourse.processing.org/t/how-does-one-detect-enter-backspace-keys-in-android/17504)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 9\
**Last updated:** [April 20, 2021, 9:31am UTC](https://discourse.processing.org/t/how-does-one-detect-enter-backspace-keys-in-android/17504 "2021-04-20T09:31:14Z")

</div>

Before I begin, here is a link to my current code: My Code Okay so: I am porting my Processing Java project to my Android phone (S7 Edge). Normally, I’d use if (key == ENTER) in void keyPressed to detect the Enter key b…

---

## [Responsive grid](https://discourse.processing.org/t/responsive-grid/29507)

<div class="topic-metadata">

**Author:** [@henryM](https://discourse.processing.org/u/henryM)\
**Replies:** 1\
**Last updated:** [April 20, 2021, 8:04am UTC](https://discourse.processing.org/t/responsive-grid/29507 "2021-04-20T08:04:33Z")

</div>

I am making a small little testing thing I am trying to make it so when the mouse is over it turns a different color here is the code. https://editor.p5js.org/Henhog1234/sketches/ehfcx4O9f I am probably doing everythi…

---

## [Need help adding two player to our snake project](https://discourse.processing.org/t/need-help-adding-two-player-to-our-snake-project/29492)

<div class="topic-metadata">

**Author:** [@Sentaun](https://discourse.processing.org/u/Sentaun)\
**Replies:** 5\
**Last updated:** [April 20, 2021, 7:40am UTC](https://discourse.processing.org/t/need-help-adding-two-player-to-our-snake-project/29492 "2021-04-20T07:40:44Z")

</div>

me and my friend have a assignment to edit a code to make it different in our own way. we decided to edit a code made by the coding train to add two player. the idea is that two snakes fight it out by trying to get the …

---

## [OpenCV update, Heaviside Step Function, deriving parametric functions of shapes, Sobel filter](https://discourse.processing.org/t/opencv-update-heaviside-step-function-deriving-parametric-functions-of-shapes-sobel-filter/21931)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 54\
**Last updated:** [April 20, 2021, 5:46am UTC](https://discourse.processing.org/t/opencv-update-heaviside-step-function-deriving-parametric-functions-of-shapes-sobel-filter/21931 "2021-04-20T05:46:17Z")

</div>

Hi. I would like to plot this function but I’m not sure how to implement it. It is a Heaviside step function, and I assume that the theta sign means that the sinusoid applies only to 27π \< t \< 31π , and otherwise the…

---

## [FFT.forward equivalent for AudioSample](https://discourse.processing.org/t/fft-forward-equivalent-for-audiosample/29464)

<div class="topic-metadata">

**Author:** [@indicator\_red](https://discourse.processing.org/u/indicator_red)\
**Replies:** 8\
**Last updated:** [April 20, 2021, 2:55am UTC](https://discourse.processing.org/t/fft-forward-equivalent-for-audiosample/29464 "2021-04-20T02:55:17Z")

</div>

Hello, I am attempting to get audio/video sync working for exporting a music visualization. I’m working with this demo script from VideoExport:withAudioViz.pde. I am able to generate the analysis .txt file and get the s…

---

## [Voxel raytracer realtime opencl](https://discourse.processing.org/t/voxel-raytracer-realtime-opencl/29506)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [April 19, 2021, 10:20pm UTC](https://discourse.processing.org/t/voxel-raytracer-realtime-opencl/29506 "2021-04-19T22:20:19Z")

</div>

---

## [Help a poor noob - arrays](https://discourse.processing.org/t/help-a-poor-noob-arrays/29505)

<div class="topic-metadata">

**Author:** [@luizF](https://discourse.processing.org/u/luizF)\
**Replies:** 3\
**Last updated:** [April 19, 2021, 9:37pm UTC](https://discourse.processing.org/t/help-a-poor-noob-arrays/29505 "2021-04-19T21:37:29Z")

</div>

Hello there. I’m realy starting learning. I’m trying change the array I’m using but don’t work put the name in variable… How do i do? var fase = stage1; var stage1 = \[ \[‘0’, ‘1’, ‘0’, ‘1’\], \[‘0’, ‘1’, ‘1’, ‘0’\], \]; …

---

## [Need help: Grid with increasing number of columns + incremental greyscale gradient](https://discourse.processing.org/t/need-help-grid-with-increasing-number-of-columns-incremental-greyscale-gradient/29438)

<div class="topic-metadata">

**Author:** [@abk](https://discourse.processing.org/u/abk)\
**Replies:** 10\
**Last updated:** [April 19, 2021, 9:36pm UTC](https://discourse.processing.org/t/need-help-grid-with-increasing-number-of-columns-incremental-greyscale-gradient/29438 "2021-04-19T21:36:50Z")

</div>

Hi I’m trying to do something like this in p5: I’m a total beginner, so I think this should be pretty basic stuff for most :slight\_smile: So far I’ve got this snippet of code: function setup() { createCanvas(w…

---

## [Multiple shapes](https://discourse.processing.org/t/multiple-shapes/29472)

<div class="topic-metadata">

**Author:** [@PARINAZ129](https://discourse.processing.org/u/PARINAZ129)\
**Replies:** 3\
**Last updated:** [April 19, 2021, 9:25pm UTC](https://discourse.processing.org/t/multiple-shapes/29472 "2021-04-19T21:25:20Z")

</div>

Dear As a beginner, I have rendered a car via rectangles and circles. Actually, I want to move this car via mouse but I cant movie multiple shapes which created the car at the same time. I would be grateful If you che…

---

## [Function Return Error](https://discourse.processing.org/t/function-return-error/29501)

<div class="topic-metadata">

**Author:** [@Bromo](https://discourse.processing.org/u/Bromo)\
**Replies:** 11\
**Last updated:** [April 19, 2021, 8:06pm UTC](https://discourse.processing.org/t/function-return-error/29501 "2021-04-19T20:06:40Z")

</div>

Hi, I’m pretty new with functions and was wondering what I could do differently here. Ideally I’d like the function to sort the two numbers given and give me the number that’s closest to 100 (without going over). Current…

---

## [G4P giving me an error on TextField settext()](https://discourse.processing.org/t/g4p-giving-me-an-error-on-textfield-settext/29483)

<div class="topic-metadata">

**Author:** [@FedeKrum](https://discourse.processing.org/u/FedeKrum)\
**Replies:** 4\
**Last updated:** [April 19, 2021, 7:37pm UTC](https://discourse.processing.org/t/g4p-giving-me-an-error-on-textfield-settext/29483 "2021-04-19T19:37:19Z")

</div>

Hi, I did a form with G4P GUI. I added only one line at the event of a text field. It looks that the event can’t handle the typing of one character at the field and crashes. I am getting this error while executing the…

---

## [Wiimote + Processing 3](https://discourse.processing.org/t/wiimote-processing-3/27668)

<div class="topic-metadata">

**Author:** [@Litotitus](https://discourse.processing.org/u/Litotitus)\
**Replies:** 2\
**Last updated:** [April 19, 2021, 7:33pm UTC](https://discourse.processing.org/t/wiimote-processing-3/27668 "2021-04-19T19:33:10Z")

</div>

Hello, I rediscovered my old Wiimote controller and I am trying to make it work with Processing 3.5.4. I am using a MacbookPro with macOS Catalina. I already tried out several things but mainly my problem is that the u…

---

## [3d serpinski triangle](https://discourse.processing.org/t/3d-serpinski-triangle/29499)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [April 19, 2021, 6:53pm UTC](https://discourse.processing.org/t/3d-serpinski-triangle/29499 "2021-04-19T18:53:58Z")

</div>

---

## [Ellipse collisions](https://discourse.processing.org/t/ellipse-collisions/29498)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 0\
**Last updated:** [April 19, 2021, 6:49pm UTC](https://discourse.processing.org/t/ellipse-collisions/29498 "2021-04-19T18:49:53Z")

</div>

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=229)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=231)
