# Latest

**URL:** https://discourse.processing.org/latest.md?page=166

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

**Page:** 167

---

## [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, …

---

## [Places online where documentation of amazing projects exist](https://discourse.processing.org/t/places-online-where-documentation-of-amazing-projects-exist/3601)

<div class="topic-metadata">

**Author:** [@bmoren](https://discourse.processing.org/u/bmoren)\
**Replies:** 29\
**Last updated:** [January 2, 2022, 11:51pm UTC](https://discourse.processing.org/t/places-online-where-documentation-of-amazing-projects-exist/3601 "2022-01-02T23:51:58Z")

</div>

I’ve been hoping to compile a list of places / resources to look at amazing and successful projects of folks working in creative coding & code based art projects. It’s the nature of the web, but these resources feel supe…

---

## [Image with a Rain and Wind Effect](https://discourse.processing.org/t/image-with-a-rain-and-wind-effect/34437)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 0\
**Last updated:** [January 2, 2022, 10:42pm UTC](https://discourse.processing.org/t/image-with-a-rain-and-wind-effect/34437 "2022-01-02T22:42:40Z")

</div>

Below is an image of the Brooklyn Bridge created by adding a rain and wind effect to the original photograph: The original Flickr photograph is from here (click for Flickr photo page): …

---

## [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…

---

## [Creating chalk-like lines](https://discourse.processing.org/t/creating-chalk-like-lines/34411)

<div class="topic-metadata">

**Author:** [@cconsta1](https://discourse.processing.org/u/cconsta1)\
**Replies:** 0\
**Last updated:** [January 1, 2022, 4:39pm UTC](https://discourse.processing.org/t/creating-chalk-like-lines/34411 "2022-01-01T16:39:07Z")

</div>

Hi all! I’m so excited to find out there is a forum for p5.js :slightly\_smiling\_face: So, I’m trying to create something that will look like chalky, sort of vertical lines similar to the attached picture. Using the…

---

## [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…

---

## [Permission issue in reading file from external storage](https://discourse.processing.org/t/permission-issue-in-reading-file-from-external-storage/34184)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 44\
**Last updated:** [January 2, 2022, 7:37am UTC](https://discourse.processing.org/t/permission-issue-in-reading-file-from-external-storage/34184 "2022-01-02T07:37:39Z")

</div>

I can read files from data directory. I want to allow user to copy files to the directory and the app reads them. My problem, when I build the app on Android phone I’ve no idea where the data directory is. Alternatively…

---

## [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…

---

## [Using Geany IDE for PY5 on RaspberryPI](https://discourse.processing.org/t/using-geany-ide-for-py5-on-raspberrypi/32236)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 1\
**Last updated:** [January 1, 2022, 8:04pm UTC](https://discourse.processing.org/t/using-geany-ide-for-py5-on-raspberrypi/32236 "2022-01-01T20:04:21Z")

</div>

Here’s a py5 sketch running from Geany on my RaspberryPI4 (Manjaro Arm distro)

---

## [How to save a GIF in p5.js web editor](https://discourse.processing.org/t/how-to-save-a-gif-in-p5-js-web-editor/34415)

<div class="topic-metadata">

**Author:** [@mrgrassoxen](https://discourse.processing.org/u/mrgrassoxen)\
**Replies:** 0\
**Last updated:** [January 1, 2022, 6:48pm UTC](https://discourse.processing.org/t/how-to-save-a-gif-in-p5-js-web-editor/34415 "2022-01-01T18:48:53Z")

</div>

How do you save a GIF from the web editor? I attempted following instructions using ccapture but was not able to get it to work… Thanks

---

## [How to load my canvas so I can do pixel manipulation](https://discourse.processing.org/t/how-to-load-my-canvas-so-i-can-do-pixel-manipulation/34406)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 2\
**Last updated:** [January 1, 2022, 5:10pm UTC](https://discourse.processing.org/t/how-to-load-my-canvas-so-i-can-do-pixel-manipulation/34406 "2022-01-01T17:10:55Z")

</div>

Hi, I’d like to play around with an existing sketch which uses: function preload() { img = loadImage(url + str(windowWidth) + random(keywords)); } Excepted that I don’t want to use an external image, I would like …

---

## [How to dynamically change API search parameters?](https://discourse.processing.org/t/how-to-dynamically-change-api-search-parameters/26321)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 7\
**Last updated:** [December 31, 2021, 6:26pm UTC](https://discourse.processing.org/t/how-to-dynamically-change-api-search-parameters/26321 "2021-12-31T18:26:50Z")

</div>

This is the first complex bit of code I’ve written on my own! :partying\_face: I access the API, search for any image with “hand” in the title, download the data, and then display an image and it’s title from an array. A…

---

## [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) ??

---

## [Method from class does not work](https://discourse.processing.org/t/method-from-class-does-not-work/34354)

<div class="topic-metadata">

**Author:** [@marina\_kdot](https://discourse.processing.org/u/marina_kdot)\
**Replies:** 2\
**Last updated:** [December 29, 2021, 10:45pm UTC](https://discourse.processing.org/t/method-from-class-does-not-work/34354 "2021-12-29T22:45:23Z")

</div>

I try to set up a short array and display four squares with random position and size. But I always get a syntax error. I spend lots of time comparing my code to other examples and they are all running, but mine is not. …

---

## [String contraining HEX color to Color value](https://discourse.processing.org/t/string-contraining-hex-color-to-color-value/34380)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [December 30, 2021, 6:00pm UTC](https://discourse.processing.org/t/string-contraining-hex-color-to-color-value/34380 "2021-12-30T18:00:07Z")

</div>

I have a txt file that contains colors in the form of #01abEf and I want to load them and turn into processing color variable type. How can I do this? How can I turn “#FF00FF” to color(255,0,255) ?

---

## [Make two characters change color after colliding](https://discourse.processing.org/t/make-two-characters-change-color-after-colliding/34230)

<div class="topic-metadata">

**Author:** [@mpsch](https://discourse.processing.org/u/mpsch)\
**Replies:** 8\
**Last updated:** [December 30, 2021, 2:51pm UTC](https://discourse.processing.org/t/make-two-characters-change-color-after-colliding/34230 "2021-12-30T14:51:46Z")

</div>

I want to make an animation to persuade people to get vaccinated for a school project. I want when a “person” that has red head which indicates that he is not vaccinated, gets in touch with the vaccine change his color t…

---

## [Multi Core Processing](https://discourse.processing.org/t/multi-core-processing/34366)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 1\
**Last updated:** [December 30, 2021, 11:16am UTC](https://discourse.processing.org/t/multi-core-processing/34366 "2021-12-30T11:16:41Z")

</div>

Hi. Does Processing support Multi Core ? Like if I had a 16 Core CPU, would my code run super fast ? Thanks in advance.

---

## [Creating a community of Science, Math teachers and Programmers who are interested in visualizations](https://discourse.processing.org/t/creating-a-community-of-science-math-teachers-and-programmers-who-are-interested-in-visualizations/24574)

<div class="topic-metadata">

**Author:** [@Jithin](https://discourse.processing.org/u/Jithin)\
**Replies:** 21\
**Last updated:** [December 30, 2021, 2:59am UTC](https://discourse.processing.org/t/creating-a-community-of-science-math-teachers-and-programmers-who-are-interested-in-visualizations/24574 "2021-12-30T02:59:24Z")

</div>

Hello everyone This is Jithin. I’ve been the Google Summer of Code fellow for Processing Foundation in 2018. I’ve developed a project called Dynamic Learning which is a platform where teachers and programmers can collab…

---

## [Resize canvas in the DOM](https://discourse.processing.org/t/resize-canvas-in-the-dom/34365)

<div class="topic-metadata">

**Author:** [@yonmaor](https://discourse.processing.org/u/yonmaor)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 9:40pm UTC](https://discourse.processing.org/t/resize-canvas-in-the-dom/34365 "2021-12-29T21:40:53Z")

</div>

Hey! I’m trying to embed a p5.js program into a website via the DOM. I want to place it in a CSS grid element that’s width is proportional to the window size. Is there a method similar to .position(x, y) that will allow …

---

## [Announcing Browser-Based GUI Controls (buttons, etc.) for Sketches](https://discourse.processing.org/t/announcing-browser-based-gui-controls-buttons-etc-for-sketches/34363)

<div class="topic-metadata">

**Author:** [@pbrooks](https://discourse.processing.org/u/pbrooks)\
**Replies:** 0\
**Last updated:** [December 29, 2021, 9:00pm UTC](https://discourse.processing.org/t/announcing-browser-based-gui-controls-buttons-etc-for-sketches/34363 "2021-12-29T21:00:06Z")

</div>

For Processing (Java version): Very easy creation of GUI controls (buttons, sliders, dropdowns, textboxes and checkboxes) inside a browser window to control Processing sketch animations. Also can create “monitors” whic…

---

## [Issues exporting sketch to PDF: sketch gets cropped!](https://discourse.processing.org/t/issues-exporting-sketch-to-pdf-sketch-gets-cropped/34344)

<div class="topic-metadata">

**Author:** [@tommsmoro](https://discourse.processing.org/u/tommsmoro)\
**Replies:** 15\
**Last updated:** [December 29, 2021, 5:54pm UTC](https://discourse.processing.org/t/issues-exporting-sketch-to-pdf-sketch-gets-cropped/34344 "2021-12-29T17:54:40Z")

</div>

UPDATE: PROBLEM SOLVED The issue is that I was using pixelDensity(2). See full solution to the problem here: java - Issues exporting Processing sketch to PDF: sketch gets cropped - Stack Overflow ######## ORIGINAL POS…

---

## [Rect() function not working when used inside of a function inside of a class](https://discourse.processing.org/t/rect-function-not-working-when-used-inside-of-a-function-inside-of-a-class/34347)

<div class="topic-metadata">

**Author:** [@A\_game\_programmer](https://discourse.processing.org/u/A_game_programmer)\
**Replies:** 1\
**Last updated:** [December 29, 2021, 8:04am UTC](https://discourse.processing.org/t/rect-function-not-working-when-used-inside-of-a-function-inside-of-a-class/34347 "2021-12-29T08:04:15Z")

</div>

Can someone please clarify why the rect() function is not being called? I have checked it and code in the if function is being executed as normal, just functions to do with drawing are not working. public class FadeCu…

---

## [G4P GSpinner number update order](https://discourse.processing.org/t/g4p-gspinner-number-update-order/34329)

<div class="topic-metadata">

**Author:** [@myupctoys](https://discourse.processing.org/u/myupctoys)\
**Replies:** 5\
**Last updated:** [December 28, 2021, 11:33pm UTC](https://discourse.processing.org/t/g4p-gspinner-number-update-order/34329 "2021-12-28T23:33:06Z")

</div>

Hi, I’ve been trying implement GSpinner but having an issue. Easily replicated in the G4P Example Numerical Input unmodified. Load and run the G4P\_NumericalInput example. Click on the up down spinner object. Number get…

---

## [Interaction between objects and 2D detector?](https://discourse.processing.org/t/interaction-between-objects-and-2d-detector/33374)

<div class="topic-metadata">

**Author:** [@Timo](https://discourse.processing.org/u/Timo)\
**Replies:** 5\
**Last updated:** [December 28, 2021, 10:30pm UTC](https://discourse.processing.org/t/interaction-between-objects-and-2d-detector/33374 "2021-12-28T22:30:09Z")

</div>

Hi community, I am currently exploring P5js with posenet 2D pose detector. I have currently fiddled around sketched by following objects in the canvas and doing a similar action. I was wondering how can one make some sim…

---

## [Trying to generate a sphere using an array of circles](https://discourse.processing.org/t/trying-to-generate-a-sphere-using-an-array-of-circles/34321)

<div class="topic-metadata">

**Author:** [@lucienfradet](https://discourse.processing.org/u/lucienfradet)\
**Replies:** 6\
**Last updated:** [December 28, 2021, 8:36pm UTC](https://discourse.processing.org/t/trying-to-generate-a-sphere-using-an-array-of-circles/34321 "2021-12-28T20:36:57Z")

</div>

Hello! I’m trying to generate a sphere using circles of different sizes. I want it to be adapt if I change the NUM\_RING variable. Right now, the my code creates overlapping circles, and I don’t get why. Maybe it’s somthi…

---

## [Creating a floor plan! urgent! final assignment due](https://discourse.processing.org/t/creating-a-floor-plan-urgent-final-assignment-due/34132)

<div class="topic-metadata">

**Author:** [@ineedtosleep](https://discourse.processing.org/u/ineedtosleep)\
**Replies:** 11\
**Last updated:** [December 28, 2021, 1:22pm UTC](https://discourse.processing.org/t/creating-a-floor-plan-urgent-final-assignment-due/34132 "2021-12-28T13:22:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Please can someone help me create a floor plan!!! this is an elective course im no longer going to take it later on, however i have this final a…

[Previous page](https://discourse.processing.org/latest.md?page=165)

[Next page](https://discourse.processing.org/latest.md?page=167)
