# Processing

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

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

**Page:** 97

---

## [I have a bit of a problem with a collision check loop](https://discourse.processing.org/t/i-have-a-bit-of-a-problem-with-a-collision-check-loop/34390)

<div class="topic-metadata">

**Author:** [@NigelWoollard](https://discourse.processing.org/u/NigelWoollard)\
**Replies:** 24\
**Last updated:** [January 8, 2022, 6:46pm UTC](https://discourse.processing.org/t/i-have-a-bit-of-a-problem-with-a-collision-check-loop/34390 "2022-01-08T18:46:04Z")

</div>

Hi there , I have been working (playworking), on this this P3D program and am confused as to why the collision check loop does not detect any of the posts other than the last in the array (which I have coloured red.) ! …

---

## [Unusual computer question (CMOS) battery](https://discourse.processing.org/t/unusual-computer-question-cmos-battery/34496)

<div class="topic-metadata">

**Author:** [@deion123](https://discourse.processing.org/u/deion123)\
**Replies:** 2\
**Last updated:** [January 8, 2022, 2:32am UTC](https://discourse.processing.org/t/unusual-computer-question-cmos-battery/34496 "2022-01-08T02:32:53Z")

</div>

Hello all I have an unusual question about the computer’s CMOS battery location on the E39… I plan to DIY a circuit design of my computer with (CMOS) battery. I am looking to replace it, thinking it could be the cause…

---

## [Processing - ControlP5 error . pls help!](https://discourse.processing.org/t/processing-controlp5-error-pls-help/34514)

<div class="topic-metadata">

**Author:** [@R4R31](https://discourse.processing.org/u/R4R31)\
**Replies:** 0\
**Last updated:** [January 7, 2022, 10:02pm UTC](https://discourse.processing.org/t/processing-controlp5-error-pls-help/34514 "2022-01-07T22:02:10Z")

</div>

I don’t know why I get this error. The guy who wrote it has no problem with it. can u help me? The ERROR appears when you press the “Move to position” button THIS IS THE ERROR: Jan 07, 2022 10:47:12 PM controlP5.Contr…

---

## [Method of custom type not returning?](https://discourse.processing.org/t/method-of-custom-type-not-returning/34495)

<div class="topic-metadata">

**Author:** [@millibyte](https://discourse.processing.org/u/millibyte)\
**Replies:** 4\
**Last updated:** [January 7, 2022, 7:25pm UTC](https://discourse.processing.org/t/method-of-custom-type-not-returning/34495 "2022-01-07T19:25:48Z")

</div>

I’m creating a simple football video game with object oriented programming. One problem I’m having is a method with a return type of a custom object is not returning with said object. More specifically: I wrote the Play…

---

## [Seperating a function from mousePressed function?](https://discourse.processing.org/t/seperating-a-function-from-mousepressed-function/34503)

<div class="topic-metadata">

**Author:** [@aejstr20](https://discourse.processing.org/u/aejstr20)\
**Replies:** 0\
**Last updated:** [January 7, 2022, 2:36pm UTC](https://discourse.processing.org/t/seperating-a-function-from-mousepressed-function/34503 "2022-01-07T14:36:21Z")

</div>

Hi! So, I’m at uni trying to figure out this code and how to get it to work how I want it. The project consists of an Arduino, which measures voltage going through a plant and also has a potentiometer. These inputs will…

---

## [Get mouseX and mouseY position with current transformation](https://discourse.processing.org/t/get-mousex-and-mousey-position-with-current-transformation/34489)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [January 7, 2022, 11:49am UTC](https://discourse.processing.org/t/get-mousex-and-mousey-position-with-current-transformation/34489 "2022-01-07T11:49:01Z")

</div>

How can I get the mouse position (and where z hits the camera plane), inside the transformation. So I need this before the popMatrix(). void setup() { size(600, 600, P3D); } public void draw() { background(0); …

---

## [How to process Java runs on the web](https://discourse.processing.org/t/how-to-process-java-runs-on-the-web/34485)

<div class="topic-metadata">

**Author:** [@peter100u](https://discourse.processing.org/u/peter100u)\
**Replies:** 6\
**Last updated:** [January 7, 2022, 5:40am UTC](https://discourse.processing.org/t/how-to-process-java-runs-on-the-web/34485 "2022-01-07T05:40:46Z")

</div>

As we all know, processing JS project has stopped maintenance, so what is the latest method? I think there is still processing in openprocessing Java projects can run. Why, except for processing JS, is there any other pl…

---

## [Adjusting cursor in Processing Editor for Dark Mode](https://discourse.processing.org/t/adjusting-cursor-in-processing-editor-for-dark-mode/34475)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 2\
**Last updated:** [January 7, 2022, 5:28am UTC](https://discourse.processing.org/t/adjusting-cursor-in-processing-editor-for-dark-mode/34475 "2022-01-07T05:28:30Z")

</div>

Loving life with the Dark Mode as enabled by changing some of the fields in the “theme.txt” file within the Processing app. Found this forum post to be very handy in achieving the look. However, I cannot see the cursor …

---

## [Processing to Arduino serial](https://discourse.processing.org/t/processing-to-arduino-serial/34382)

<div class="topic-metadata">

**Author:** [@danjy](https://discourse.processing.org/u/danjy)\
**Replies:** 2\
**Last updated:** [January 6, 2022, 10:21pm UTC](https://discourse.processing.org/t/processing-to-arduino-serial/34382 "2022-01-06T22:21:26Z")

</div>

I am trying to send arduino serial commands. I have set up port4 after following some documentation in the sample files. the below code is not working as expected, textfield11 has a float value inside and the arduino c…

---

## [Three parallel beziers](https://discourse.processing.org/t/three-parallel-beziers/34471)

<div class="topic-metadata">

**Author:** [@jaspervb](https://discourse.processing.org/u/jaspervb)\
**Replies:** 14\
**Last updated:** [January 6, 2022, 7:10pm UTC](https://discourse.processing.org/t/three-parallel-beziers/34471 "2022-01-06T19:10:53Z")

</div>

Hi there. I was wondering if there is a method to make three beziers parallel to each other with the same spacing between them. I have already made in example with three beziers.

---

## [Lerp in a Object Class](https://discourse.processing.org/t/lerp-in-a-object-class/34491)

<div class="topic-metadata">

**Author:** [@Noxus010](https://discourse.processing.org/u/Noxus010)\
**Replies:** 0\
**Last updated:** [January 6, 2022, 6:27pm UTC](https://discourse.processing.org/t/lerp-in-a-object-class/34491 "2022-01-06T18:27:10Z")

</div>

Hi people! I just started with processing and I would like to have a class that is loaded before I start the draw function… In this class I wanted to use the lerp function but I get a error “lerp function does not exist”…

---

## [How to create Minimum bounding shapes such as ellipse, triangle, quadrilateral from a given 2d shape](https://discourse.processing.org/t/how-to-create-minimum-bounding-shapes-such-as-ellipse-triangle-quadrilateral-from-a-given-2d-shape/29460)

<div class="topic-metadata">

**Author:** [@Goodman](https://discourse.processing.org/u/Goodman)\
**Replies:** 8\
**Last updated:** [January 6, 2022, 5:20pm UTC](https://discourse.processing.org/t/how-to-create-minimum-bounding-shapes-such-as-ellipse-triangle-quadrilateral-from-a-given-2d-shape/29460 "2022-01-06T17:20:00Z")

</div>

I have a 2d shape(boundary) and generated the convex hull. Now, I want to create a minimum bounding quadrilateral, minimum bounding triangle, and minimum bounding ellipse for that boundary. I have generated these minimum…

---

## [Swing works until](https://discourse.processing.org/t/swing-works-until/33322)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 13\
**Last updated:** [January 6, 2022, 1:36pm UTC](https://discourse.processing.org/t/swing-works-until/33322 "2022-01-06T13:36:22Z")

</div>

I’m using a swing gui to control some variables and if I just insert that into a sketch with nothing except a setup() and the code to get swing gui to launch, I can edit text and use that to update a slider. I can also …

---

## [Help changing square colours after time](https://discourse.processing.org/t/help-changing-square-colours-after-time/34467)

<div class="topic-metadata">

**Author:** [@teeny13](https://discourse.processing.org/u/teeny13)\
**Replies:** 15\
**Last updated:** [January 6, 2022, 9:52am UTC](https://discourse.processing.org/t/help-changing-square-colours-after-time/34467 "2022-01-06T09:52:23Z")

</div>

Hey everyone, I’m trying to make the squares I’ve created change their colour randomly. Instead my code is only working on click. The reason I am doing this is so that when a square changes the colour, the person play…

---

## [If the program does not work well after deployment](https://discourse.processing.org/t/if-the-program-does-not-work-well-after-deployment/34484)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [January 6, 2022, 8:44am UTC](https://discourse.processing.org/t/if-the-program-does-not-work-well-after-deployment/34484 "2022-01-06T08:44:58Z")

</div>

If the program does not work well after deployment// Creating a new window for ‘G4P Library’. Implemented in ‘JAVA Mode’. Works well for debugging ‘through processing’. If it works after ‘distributing the .ex…

---

## [Where are the examples and media for "Processing: A Programming Handbook for Visual Designers and Artists"](https://discourse.processing.org/t/where-are-the-examples-and-media-for-processing-a-programming-handbook-for-visual-designers-and-artists/34122)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 5\
**Last updated:** [January 5, 2022, 3:07am UTC](https://discourse.processing.org/t/where-are-the-examples-and-media-for-processing-a-programming-handbook-for-visual-designers-and-artists/34122 "2022-01-05T03:07:26Z")

</div>

I am working through the excellent book “Processing: A Programming Handbook for Visual Designers and Artists” by Casey Reas and Ben Fry. Upon entering the 13th Chapter, Images, I am finding that I cannot locate the sket…

---

## [Composite shape collision detection](https://discourse.processing.org/t/composite-shape-collision-detection/34473)

<div class="topic-metadata">

**Author:** [@myhatzulu](https://discourse.processing.org/u/myhatzulu)\
**Replies:** 1\
**Last updated:** [January 4, 2022, 11:45pm UTC](https://discourse.processing.org/t/composite-shape-collision-detection/34473 "2022-01-04T23:45:20Z")

</div>

I really need some help, I’m trying to make a composite shape of 2 ellipses, shaped like a snow man’s body with no arms, move (using arrows) towards 3 randomly positioned small circles that were created with an array, up…

---

## [Blinking random objects in arrays](https://discourse.processing.org/t/blinking-random-objects-in-arrays/34470)

<div class="topic-metadata">

**Author:** [@myhatzulu](https://discourse.processing.org/u/myhatzulu)\
**Replies:** 3\
**Last updated:** [January 4, 2022, 11:42pm UTC](https://discourse.processing.org/t/blinking-random-objects-in-arrays/34470 "2022-01-04T23:42:39Z")

</div>

hi I really need some tips, I’m trying to make my object array “blink” once it’s executed, the 10 ellipses in the array appear in random positions, and then they flash in and out while staying in that initial random posi…

---

## [Processing with VSCode, working with a codebase?](https://discourse.processing.org/t/processing-with-vscode-working-with-a-codebase/34459)

<div class="topic-metadata">

**Author:** [@sentoplene](https://discourse.processing.org/u/sentoplene)\
**Replies:** 0\
**Last updated:** [January 4, 2022, 10:54am UTC](https://discourse.processing.org/t/processing-with-vscode-working-with-a-codebase/34459 "2022-01-04T10:54:34Z")

</div>

Hi, I love using Processing. But I don’t like it that in order to share code among sketches I either have to copy paste files, or update and create a library. So my question is: When I code in Visual Studio Code (I k…

---

## [CPU usage seemingly capped (different from the 2019 question on this topic)](https://discourse.processing.org/t/cpu-usage-seemingly-capped-different-from-the-2019-question-on-this-topic/34440)

<div class="topic-metadata">

**Author:** [@AlDickins](https://discourse.processing.org/u/AlDickins)\
**Replies:** 1\
**Last updated:** [January 3, 2022, 4:30pm UTC](https://discourse.processing.org/t/cpu-usage-seemingly-capped-different-from-the-2019-question-on-this-topic/34440 "2022-01-03T16:30:48Z")

</div>

I want my Processing sketch to run with the CPU close to 100% utilisation, compared with the current 14%. My Processing sketch trains a neural network for a puzzle where a mouse learns to evade a cat which is pursuing i…

---

## [Drag and drop file and obtain path](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 3\
**Last updated:** [January 3, 2022, 3:37pm UTC](https://discourse.processing.org/t/drag-and-drop-file-and-obtain-path/16737 "2022-01-03T15:37:51Z")

</div>

How drag and drop file inside screen sketch and obtain path of file. do not use the sDrop library

---

## [Automatic git commits on run with shell commands in Processing](https://discourse.processing.org/t/automatic-git-commits-on-run-with-shell-commands-in-processing/34423)

<div class="topic-metadata">

**Author:** [@Misha.studio](https://discourse.processing.org/u/Misha.studio)\
**Replies:** 11\
**Last updated:** [January 3, 2022, 7:37am UTC](https://discourse.processing.org/t/automatic-git-commits-on-run-with-shell-commands-in-processing/34423 "2022-01-03T07:37:24Z")

</div>

A couple of weeks ago I came across a great talk of Matt Deslauriers where he talks about his generative workflow. He created his own command line interface called canvas-sketch and one of the things I really liked was t…

---

## [External webcam not working with video library](https://discourse.processing.org/t/external-webcam-not-working-with-video-library/34438)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 0\
**Last updated:** [January 3, 2022, 5:09am UTC](https://discourse.processing.org/t/external-webcam-not-working-with-video-library/34438 "2022-01-03T05:09:02Z")

</div>

Hello, I’m having trouble getting Processing to use an external webcam (that is from the Sony ImagingEdge extension) which does work in other apps, like Zoom. It works here: Does the Processing Video library use a si…

---

## [Sound Library: What values to use in sample?](https://discourse.processing.org/t/sound-library-what-values-to-use-in-sample/34418)

<div class="topic-metadata">

**Author:** [@LDB477](https://discourse.processing.org/u/LDB477)\
**Replies:** 3\
**Last updated:** [January 3, 2022, 2:19am UTC](https://discourse.processing.org/t/sound-library-what-values-to-use-in-sample/34418 "2022-01-03T02:19:06Z")

</div>

Just started using the Sound Library and have a quick question. I wasn’t able to find any reference to whether or not the value in each frame in a sample should be a float -1.0 to 1.0, a float 0.0 to 1.0, or if it can b…

---

## [Points on the surface of a Sphere using beginShape(POINTS or QUADS)](https://discourse.processing.org/t/points-on-the-surface-of-a-sphere-using-beginshape-points-or-quads/34425)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 8\
**Last updated:** [January 2, 2022, 7:52pm UTC](https://discourse.processing.org/t/points-on-the-surface-of-a-sphere-using-beginshape-points-or-quads/34425 "2022-01-02T19:52:16Z")

</div>

Hi everyone, I’m looking for a way to draw a couple of thousands of points on the surface of a sphere. beginShape/endShape feels like an efficient way to draw them. For example as POINTS with strokeWeight(10). However, …

---

## [Processing sketches quit if no keyboard or mouse is attached to the USB ports. What is Processing doing?](https://discourse.processing.org/t/processing-sketches-quit-if-no-keyboard-or-mouse-is-attached-to-the-usb-ports-what-is-processing-doing/34434)

<div class="topic-metadata">

**Author:** [@GeorgeRoland](https://discourse.processing.org/u/GeorgeRoland)\
**Replies:** 0\
**Last updated:** [January 2, 2022, 4:27pm UTC](https://discourse.processing.org/t/processing-sketches-quit-if-no-keyboard-or-mouse-is-attached-to-the-usb-ports-what-is-processing-doing/34434 "2022-01-02T16:27:33Z")

</div>

I am running Processing 3.54 on a MacMini with Big Sur 11.6.1, connected to a Samsung LCD via HDMI. I have several sketches I want to install in an art exhibition with imagery (no sound or interactivity). They work fine…

---

## [My RUN window has gone part off the pc screen!](https://discourse.processing.org/t/my-run-window-has-gone-part-off-the-pc-screen/34408)

<div class="topic-metadata">

**Author:** [@NigelWoollard](https://discourse.processing.org/u/NigelWoollard)\
**Replies:** 1\
**Last updated:** [January 2, 2022, 9:03am UTC](https://discourse.processing.org/t/my-run-window-has-gone-part-off-the-pc-screen/34408 "2022-01-02T09:03:03Z")

</div>

Some programs that I have written are running the active window off my screen (there is about a third of the height sticking down from the top off the screen . I have tried copy and pasting into a new file but this has n…

---

## [showMessageDialog() function gives an error](https://discourse.processing.org/t/showmessagedialog-function-gives-an-error/34332)

<div class="topic-metadata">

**Author:** [@BernieLomaxxx](https://discourse.processing.org/u/BernieLomaxxx)\
**Replies:** 3\
**Last updated:** [January 2, 2022, 4:12am UTC](https://discourse.processing.org/t/showmessagedialog-function-gives-an-error/34332 "2022-01-02T04:12:27Z")

</div>

hello very new to processing, this code is from the book Processing: An Introduction to Programming when I use showMessageDialog after using JOptionPane i get an error saying "frame cannot be resolved to a variable" im…

---

## [PGS shape union](https://discourse.processing.org/t/pgs-shape-union/34342)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 9\
**Last updated:** [December 31, 2021, 8:22pm UTC](https://discourse.processing.org/t/pgs-shape-union/34342 "2021-12-31T20:22:41Z")

</div>

Hi, I’m trying to create a new Shape from 2 more simple. I use the PGS\_library with the function union : output = PGS\_ShapeBoolean.union(shape\[0\].getShape(), shape\[1\].getShape()); The new shape is created but still ke…

---

## [Rotation Pivot?](https://discourse.processing.org/t/rotation-pivot/34384)

<div class="topic-metadata">

**Author:** [@Tibiscenas](https://discourse.processing.org/u/Tibiscenas)\
**Replies:** 3\
**Last updated:** [December 31, 2021, 8:21am UTC](https://discourse.processing.org/t/rotation-pivot/34384 "2021-12-31T08:21:02Z")

</div>

hi there ! , Any Comment, Suggestion or Idea on how to Change the Rotation Pivot of an Image or Basic Shape (img, primitive or vertex) ??

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

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