# Processing

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

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

**Page:** 24

---

## [How to rotate Pacman's animation face](https://discourse.processing.org/t/how-to-rotate-pacmans-animation-face/44129)

<div class="topic-metadata">

**Author:** [@Challenger](https://discourse.processing.org/u/Challenger)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 8:30am UTC](https://discourse.processing.org/t/how-to-rotate-pacmans-animation-face/44129 "2024-03-21T08:30:32Z")

</div>

hi guys, I am having trouble reversing the pacmans face when moving pacman backwards, any ideas? heres the code i’ve been working on for my homework: boolean pacopen = true; float pacwidth = 0; float mouthclose = TWO\_P…

---

## [Toggling fullscreen](https://discourse.processing.org/t/toggling-fullscreen/44121)

<div class="topic-metadata">

**Author:** [@ripolas](https://discourse.processing.org/u/ripolas)\
**Replies:** 7\
**Last updated:** [March 20, 2024, 7:40pm UTC](https://discourse.processing.org/t/toggling-fullscreen/44121 "2024-03-20T19:40:03Z")

</div>

Hello, i couldn’t find anything useful on the topic about toggling fullscreen (like F11 in browsers for example). Also how do i run a windowed sketch at the size of the screen? Because if I try this: void setup(){ siz…

---

## [Issue with Intel RealSense Camera and Processing "Failed to Set Power State"](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 12:18pm UTC](https://discourse.processing.org/t/issue-with-intel-realsense-camera-and-processing-failed-to-set-power-state/39663 "2024-03-20T12:18:52Z")

</div>

IMHO the Intel RealSense D400 series cameras are the new Kinect. However, today, after unboxing the camera from last year, it no longer works… See screenshot. I see an error message after trying out the examples sketch…

---

## [Help with HTTP requests - POST](https://discourse.processing.org/t/help-with-http-requests-post/44119)

<div class="topic-metadata">

**Author:** [@chatNoir](https://discourse.processing.org/u/chatNoir)\
**Replies:** 3\
**Last updated:** [March 19, 2024, 1:25pm UTC](https://discourse.processing.org/t/help-with-http-requests-post/44119 "2024-03-19T13:25:40Z")

</div>

I need some help with rest api from Processing. I’m using HTTP Request for Processing library, but I can’t get addFile() to locate my image file. Image file is saved in data folder. Error message received: “I/O exceptio…

---

## [How do I export an image to a transparent background](https://discourse.processing.org/t/how-do-i-export-an-image-to-a-transparent-background/44111)

<div class="topic-metadata">

**Author:** [@W24](https://discourse.processing.org/u/W24)\
**Replies:** 2\
**Last updated:** [March 17, 2024, 2:02pm UTC](https://discourse.processing.org/t/how-do-i-export-an-image-to-a-transparent-background/44111 "2024-03-17T14:02:28Z")

</div>

Hi there - I have made a simple design . I would like to modify this code to save this image as a PNG with a transparent background. Can anyone help me? Thanks! \< PImage pic; void setup(){ size(600,1000); backgro…

---

## [Where can you download Processing 1?](https://discourse.processing.org/t/where-can-you-download-processing-1/44109)

<div class="topic-metadata">

**Author:** [@ScottButCoding](https://discourse.processing.org/u/ScottButCoding)\
**Replies:** 1\
**Last updated:** [March 17, 2024, 4:19am UTC](https://discourse.processing.org/t/where-can-you-download-processing-1/44109 "2024-03-17T04:19:42Z")

</div>

Hey Processing community! So I am trying to run an old code from 2013 that ran on Processing 1 so is there still any place to download Processing 1 or am I screwed?

---

## [How to make 1 rectangle on mouse click and not make a million, but still change colour depending on mouse position](https://discourse.processing.org/t/how-to-make-1-rectangle-on-mouse-click-and-not-make-a-million-but-still-change-colour-depending-on-mouse-position/44107)

<div class="topic-metadata">

**Author:** [@celestia](https://discourse.processing.org/u/celestia)\
**Replies:** 6\
**Last updated:** [March 16, 2024, 10:05pm UTC](https://discourse.processing.org/t/how-to-make-1-rectangle-on-mouse-click-and-not-make-a-million-but-still-change-colour-depending-on-mouse-position/44107 "2024-03-16T22:05:32Z")

</div>

Help needed. We need to make an algorithm where: if you click somewhere with left mouse button, a rectangle appears (so if you click again with left mouse button, another one will appear and the old one will remain) if…

---

## [Line Loop bouncing](https://discourse.processing.org/t/line-loop-bouncing/44090)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 23\
**Last updated:** [March 15, 2024, 10:38pm UTC](https://discourse.processing.org/t/line-loop-bouncing/44090 "2024-03-15T22:38:20Z")

</div>

Hello! how could I reduce speed of these lines in this sketch? I tried frameRate but it did not work. Thanks! float x; float xDirection; void setup() { size(800,1000); colorMode(HSB,360,100,100); background(360)…

---

## [Code source of famous David Szakaly art works?](https://discourse.processing.org/t/code-source-of-famous-david-szakaly-art-works/44097)

<div class="topic-metadata">

**Author:** [@KDorohov](https://discourse.processing.org/u/KDorohov)\
**Replies:** 9\
**Last updated:** [March 15, 2024, 5:15pm UTC](https://discourse.processing.org/t/code-source-of-famous-david-szakaly-art-works/44097 "2024-03-15T17:15:15Z")

</div>

I am fascinated by these outstanding animations by Hungarian artist: I so much want to developed something in this style - does anybody know what would be a possible approach for creating that sort of images?

---

## [Understanding coordinates in Processing. Help! Thank you](https://discourse.processing.org/t/understanding-coordinates-in-processing-help-thank-you/44084)

<div class="topic-metadata">

**Author:** [@BBG](https://discourse.processing.org/u/BBG)\
**Replies:** 6\
**Last updated:** [March 15, 2024, 3:34pm UTC](https://discourse.processing.org/t/understanding-coordinates-in-processing-help-thank-you/44084 "2024-03-15T15:34:05Z")

</div>

//This is a lesson to understand coordinates with lines in processing. void setup(){ size(600, 600); } void draw(){ background (255); //white //DRAW SQUARE WITH LINES stroke(0); line(100, 200, 100, 400); line(10…

---

## [RegEx Expression for matchAll() for Bible References?](https://discourse.processing.org/t/regex-expression-for-matchall-for-bible-references/43937)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 7\
**Last updated:** [March 13, 2024, 3:56pm UTC](https://discourse.processing.org/t/regex-expression-for-matchall-for-bible-references/43937 "2024-03-13T15:56:45Z")

</div>

Hello all! I am looking for a RegEx Expression for matchAll() for Bible References. I found a version for JavaScript but it doesn’t work in Processing. Full code below. Because in Processing I get an error, Syntax er…

---

## [Shameful plug: I printed my course on paper ... feedback please](https://discourse.processing.org/t/shameful-plug-i-printed-my-course-on-paper-feedback-please/44091)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 1:42am UTC](https://discourse.processing.org/t/shameful-plug-i-printed-my-course-on-paper-feedback-please/44091 "2024-03-13T01:42:04Z")

</div>

Hello all, I made a dry run and printed my coding course on paper. It has almost 700 pages of illustrated JavaScript content. https://www.youtube.com/shorts/745fht2RL7g What’s your opinion about this?

---

## [I've created a multilinear noise generator (and need help)](https://discourse.processing.org/t/ive-created-a-multilinear-noise-generator-and-need-help/44083)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 3\
**Last updated:** [March 12, 2024, 7:22pm UTC](https://discourse.processing.org/t/ive-created-a-multilinear-noise-generator-and-need-help/44083 "2024-03-12T19:22:37Z")

</div>

I wanted to challenge myself and create my own noise generator which would work with arbitrary many dimensions, have no symmetry artifacts around the origin, etc. I also wanted it to be linear, because I wanted to know h…

---

## [G4P elements missing mouse actions?](https://discourse.processing.org/t/g4p-elements-missing-mouse-actions/44028)

<div class="topic-metadata">

**Author:** [@matwolf](https://discourse.processing.org/u/matwolf)\
**Replies:** 10\
**Last updated:** [March 12, 2024, 10:49am UTC](https://discourse.processing.org/t/g4p-elements-missing-mouse-actions/44028 "2024-03-12T10:49:41Z")

</div>

Hi! It seems, mouse clicks are being missed quite often. In this trivial test 4 out of 10 clicks showed the yellow flash of the button when clicked, but the counter didn’t change. I can’t tell anything about other elem…

---

## [Processing export files to PDF or SVG](https://discourse.processing.org/t/processing-export-files-to-pdf-or-svg/44064)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 1\
**Last updated:** [March 11, 2024, 3:44am UTC](https://discourse.processing.org/t/processing-export-files-to-pdf-or-svg/44064 "2024-03-11T03:44:25Z")

</div>

I have a question for the community, some of whom I’m hoping are using Processing for use with plotters as I am. My question is about working with exported files, either PDF or SVG. When I create intricate line work, I’m…

---

## [How to converting ShaderToy shader color channel to Processing correctly](https://discourse.processing.org/t/how-to-converting-shadertoy-shader-color-channel-to-processing-correctly/43965)

<div class="topic-metadata">

**Author:** [@psamead](https://discourse.processing.org/u/psamead)\
**Replies:** 2\
**Last updated:** [March 9, 2024, 8:17pm UTC](https://discourse.processing.org/t/how-to-converting-shadertoy-shader-color-channel-to-processing-correctly/43965 "2024-03-09T20:17:25Z")

</div>

Hi my friends, I am trying to convert this ShaderToy shader (link to Shadertoy shader) to the Processing, but the processing seems to have different color channel, as shown below: In Shadertoy shader by using this sect…

---

## [Using Minim to Deconstruct Waveform for Machine Troubleshooting](https://discourse.processing.org/t/using-minim-to-deconstruct-waveform-for-machine-troubleshooting/44041)

<div class="topic-metadata">

**Author:** [@soundzgud](https://discourse.processing.org/u/soundzgud)\
**Replies:** 2\
**Last updated:** [March 8, 2024, 8:07pm UTC](https://discourse.processing.org/t/using-minim-to-deconstruct-waveform-for-machine-troubleshooting/44041 "2024-03-08T20:07:27Z")

</div>

Hi, I’m new to this forum. Currently trying to characterize different sounds in a mechanical process for troubleshooting purposes. My current approach utilizes a combination of the example script offlineAnalysis in the …

---

## [Weird randomSeed() behaviour](https://discourse.processing.org/t/weird-randomseed-behaviour/44052)

<div class="topic-metadata">

**Author:** [@ripolas](https://discourse.processing.org/u/ripolas)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 5:46pm UTC](https://discourse.processing.org/t/weird-randomseed-behaviour/44052 "2024-03-08T17:46:36Z")

</div>

Hey, so I found this weird thing while experimenting with randomSeed(); void setup(){ for(int i = -100;i\<100;i++){ randomSeed(i); println(i,int(random(100))); } } this code prints the i, then the first rand…

---

## [Millis() rolls over after 24 days](https://discourse.processing.org/t/millis-rolls-over-after-24-days/44039)

<div class="topic-metadata">

**Author:** [@schmittmachine](https://discourse.processing.org/u/schmittmachine)\
**Replies:** 5\
**Last updated:** [March 8, 2024, 12:47pm UTC](https://discourse.processing.org/t/millis-rolls-over-after-24-days/44039 "2024-03-08T12:47:05Z")

</div>

Hello, as the return value of millis() is an int, it rolls over after 2147483647 ms, that is 24.8 days. long t0 = System.currentTimeMillis(); long t1 = t0 + 2147483647 + 10; int dt = (int)(t1 - t0); println(“dt=”+dt…

---

## [G4P gui-builder caused trouble](https://discourse.processing.org/t/g4p-gui-builder-caused-trouble/44030)

<div class="topic-metadata">

**Author:** [@matwolf](https://discourse.processing.org/u/matwolf)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 5:35pm UTC](https://discourse.processing.org/t/g4p-gui-builder-caused-trouble/44030 "2024-03-05T17:35:23Z")

</div>

Hi! This one might be serious: Right in the middle of the development of a project, the gui-builder “broke down”, meaning, it all of a sudden wasn’t any longer able to open the gui for design. The project itself continu…

---

## [G4P and perspective()](https://discourse.processing.org/t/g4p-and-perspective/44027)

<div class="topic-metadata">

**Author:** [@matwolf](https://discourse.processing.org/u/matwolf)\
**Replies:** 6\
**Last updated:** [March 5, 2024, 2:32pm UTC](https://discourse.processing.org/t/g4p-and-perspective/44027 "2024-03-05T14:32:25Z")

</div>

Hi! Recently I stumbled over G4P and I love it! Ta so much, Peter, for this fine library! Especially the gui-builder is a knock-out (and in my case it knocked out ControlP5, which, to the best of my knowledge, lacks a g…

---

## [Improving the accuracy of a neural network for digit recognition](https://discourse.processing.org/t/improving-the-accuracy-of-a-neural-network-for-digit-recognition/22139)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [March 4, 2024, 4:02pm UTC](https://discourse.processing.org/t/improving-the-accuracy-of-a-neural-network-for-digit-recognition/22139 "2024-03-04T16:02:32Z")

</div>

I’m attempting to code a neural network to recognise handwritten characters currently using the mnist digit database. I’m specifically using a lower 14x14 resolution. I created a new neural network which is initialised …

---

## [Add files/folders during export](https://discourse.processing.org/t/add-files-folders-during-export/44022)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 1:34pm UTC](https://discourse.processing.org/t/add-files-folders-during-export/44022 "2024-03-04T13:34:00Z")

</div>

I maintain a Processing library that requires some specific .dll/.dylib/.so files that I include with the library when it is downloaded. When a sketch that includes my library, how can have these folders copied into the…

---

## [Flip (flop?) texture in a 3d .obj loaded. (java)](https://discourse.processing.org/t/flip-flop-texture-in-a-3d-obj-loaded-java/44023)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 12:33am UTC](https://discourse.processing.org/t/flip-flop-texture-in-a-3d-obj-loaded-java/44023 "2024-03-04T00:33:04Z")

</div>

Hello everyone. long time no see… : ) I.m loading an file.obj but the texture is flipped or flopped, not sure. Can I flip it? I’m using the example code for loading shapes so far. The model has this files: so the…

---

## [SD Plotter DB® version 2.31 — Program for automation and data recorder via Arduino and developed in Processing 4](https://discourse.processing.org/t/sd-plotter-db-version-2-31-program-for-automation-and-data-recorder-via-arduino-and-developed-in-processing-4/44020)

<div class="topic-metadata">

**Author:** [@Spidoug](https://discourse.processing.org/u/Spidoug)\
**Replies:** 0\
**Last updated:** [March 3, 2024, 4:24am UTC](https://discourse.processing.org/t/sd-plotter-db-version-2-31-program-for-automation-and-data-recorder-via-arduino-and-developed-in-processing-4/44020 "2024-03-03T04:24:56Z")

</div>

The software was developed for industrial automation, focusing on the management of a pilot plant for the chemical industry, but as the probe inputs are renameable and the parameters can be changed, there are countless p…

---

## [How do you make or do overlaps?](https://discourse.processing.org/t/how-do-you-make-or-do-overlaps/44010)

<div class="topic-metadata">

**Author:** [@QuWack-fan-Duck](https://discourse.processing.org/u/QuWack-fan-Duck)\
**Replies:** 2\
**Last updated:** [March 1, 2024, 3:52pm UTC](https://discourse.processing.org/t/how-do-you-make-or-do-overlaps/44010 "2024-03-01T15:52:00Z")

</div>

how can you create or do overlaps to make something happen

---

## [Timestretching sound clips](https://discourse.processing.org/t/timestretching-sound-clips/44008)

<div class="topic-metadata">

**Author:** [@larsh](https://discourse.processing.org/u/larsh)\
**Replies:** 3\
**Last updated:** [March 1, 2024, 12:36pm UTC](https://discourse.processing.org/t/timestretching-sound-clips/44008 "2024-03-01T12:36:12Z")

</div>

Hi all, I’m quite new to Processing and coding in general. I am developing a sketch where I want the user to be able to play the same sound clip at various speeds without altering the pitch - I believe this is called “ti…

---

## [How to import processing4-video into a java project?](https://discourse.processing.org/t/how-to-import-processing4-video-into-a-java-project/44004)

<div class="topic-metadata">

**Author:** [@kflak](https://discourse.processing.org/u/kflak)\
**Replies:** 6\
**Last updated:** [February 29, 2024, 1:31pm UTC](https://discourse.processing.org/t/how-to-import-processing4-video-into-a-java-project/44004 "2024-02-29T13:31:19Z")

</div>

Hi, I’m trying to get processing working within the context of a java project. So far I’ve succesfully managed to pull in processing-core using maven, but I’m struggling with processing-video. I am a total noob when it …

---

## [Maintaining same visual angle of stacked layers](https://discourse.processing.org/t/maintaining-same-visual-angle-of-stacked-layers/43995)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 7\
**Last updated:** [February 29, 2024, 5:35am UTC](https://discourse.processing.org/t/maintaining-same-visual-angle-of-stacked-layers/43995 "2024-02-29T05:35:20Z")

</div>

What I’m trying to achieve is cross-sections of a 3D noise cube. The look I’m going for is like this: But what I’m getting is more like this given the default perspective of the environment giving the conical perspec…

---

## [Wrong line numbers in error messages when using .java files](https://discourse.processing.org/t/wrong-line-numbers-in-error-messages-when-using-java-files/43983)

<div class="topic-metadata">

**Author:** [@quirin](https://discourse.processing.org/u/quirin)\
**Replies:** 10\
**Last updated:** [February 26, 2024, 5:08pm UTC](https://discourse.processing.org/t/wrong-line-numbers-in-error-messages-when-using-java-files/43983 "2024-02-26T17:08:39Z")

</div>

My sketch contains two files: BrokenErrorMessage.pde, whose content is irrelevant, and SomeJavaCodeWithErrors.java:public class SomeJavaCodeWithErrors // line 1 { // line 2 public st…

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

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