# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=80

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

**Page:** 81

---

## [Beziers with noise](https://discourse.processing.org/t/beziers-with-noise/36949)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 7\
**Last updated:** [May 19, 2022, 12:19am UTC](https://discourse.processing.org/t/beziers-with-noise/36949 "2022-05-19T00:19:08Z")

</div>

Hi there, I am doing a loop with bezier curves and I am trying to make small variations between them, as you can see on the picture. I have read that noise function is the best way to make these kind of variations but I…

---

## [Rotate() a Texture in a PShape don't work anymore in P4](https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 0\
**Last updated:** [May 18, 2022, 12:45pm UTC](https://discourse.processing.org/t/rotate-a-texture-in-a-pshape-dont-work-anymore-in-p4/36941 "2022-05-18T12:45:07Z")

</div>

Hi, I’m trying to use this code in P4 to rotate a Texture in a PShape void adaptTexture() { uvtr.reset(); uvtr.translate(0.5, 0.5); uvtr.rotate(rotText); uvtr.translate(-0.5, -0.5); …

---

## [Loop inside loop - find latest loop value](https://discourse.processing.org/t/loop-inside-loop-find-latest-loop-value/36945)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 2\
**Last updated:** [May 18, 2022, 8:40pm UTC](https://discourse.processing.org/t/loop-inside-loop-find-latest-loop-value/36945 "2022-05-18T20:40:47Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi there, I still have some issues with nested loops conceptually. Is there a way to know what would be the last value of ‘angle’ before the lo…

---

## [How to read ProcessBuilder's output stream in controlP5's console in the sketch?](https://discourse.processing.org/t/how-to-read-processbuilders-output-stream-in-controlp5s-console-in-the-sketch/36909)

<div class="topic-metadata">

**Author:** [@dattasaurabh82](https://discourse.processing.org/u/dattasaurabh82)\
**Replies:** 5\
**Last updated:** [May 18, 2022, 1:43am UTC](https://discourse.processing.org/t/how-to-read-processbuilders-output-stream-in-controlp5s-console-in-the-sketch/36909 "2022-05-18T01:43:12Z")

</div>

Intent: Run a shell command from sketch on a keyPress event and show the command’s output in Sketch window. Idea: Use controlp5 GUI library to draw a console in sketch and use println() to print output. Sketch: import…

---

## [How to move an object across a game board. Multiple Objects](https://discourse.processing.org/t/how-to-move-an-object-across-a-game-board-multiple-objects/36926)

<div class="topic-metadata">

**Author:** [@Gray](https://discourse.processing.org/u/Gray)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 4:57pm UTC](https://discourse.processing.org/t/how-to-move-an-object-across-a-game-board-multiple-objects/36926 "2022-05-17T16:57:30Z")

</div>

Hello! I am an extreme beginner in the field of P5.JS. I am way more knowledgeable in Java which will be apparent in my broken code. I have attempted a multitude of Java approaches to cycling through objects of the same …

---

## [The output is missing when button is pressed](https://discourse.processing.org/t/the-output-is-missing-when-button-is-pressed/36917)

<div class="topic-metadata">

**Author:** [@jjjjjjj](https://discourse.processing.org/u/jjjjjjj)\
**Replies:** 2\
**Last updated:** [May 17, 2022, 4:23pm UTC](https://discourse.processing.org/t/the-output-is-missing-when-button-is-pressed/36917 "2022-05-17T16:23:36Z")

</div>

Hi, I’m doing an assignment which I have to create a game and I’ve attempted to create a functioning menu. I coded buttons that navigate to different modes(?) when clicked using class (to create button) and switch (to go…

---

## [Capture of smartphone camera fails](https://discourse.processing.org/t/capture-of-smartphone-camera-fails/36920)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 2:00pm UTC](https://discourse.processing.org/t/capture-of-smartphone-camera-fails/36920 "2022-05-17T14:00:07Z")

</div>

import processing.video.\*; Capture cam; Capture cam1; PGraphics pg1; PGraphics pg2; PImage img; PImage img1; void setup() { size(950, 650, JAVA2D); // JAVA2D by default pg1 = createGraphics(width/2, height/2, JAVA2D…

---

## [Processing sketch loaded by html but does not run](https://discourse.processing.org/t/processing-sketch-loaded-by-html-but-does-not-run/36907)

<div class="topic-metadata">

**Author:** [@anrui71](https://discourse.processing.org/u/anrui71)\
**Replies:** 1\
**Last updated:** [May 16, 2022, 6:40pm UTC](https://discourse.processing.org/t/processing-sketch-loaded-by-html-but-does-not-run/36907 "2022-05-16T18:40:52Z")

</div>

Hello everyone! Luckily I finally managed to integrate a pde-file into an html file with… in head: in body: This worked fine only after having uploaded .html and .pde to my online-server, while it didn’t run locall…

---

## [Is there an easy way to get an image from a section of an image?](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 3\
**Last updated:** [May 15, 2022, 9:27pm UTC](https://discourse.processing.org/t/is-there-an-easy-way-to-get-an-image-from-a-section-of-an-image/36902 "2022-05-15T21:27:43Z")

</div>

I would like to be able to do this quickly and not have to go through each pixel to transfer them.

---

## [How to pause part of a draw loop](https://discourse.processing.org/t/how-to-pause-part-of-a-draw-loop/36891)

<div class="topic-metadata">

**Author:** [@Blushdow7](https://discourse.processing.org/u/Blushdow7)\
**Replies:** 3\
**Last updated:** [May 15, 2022, 9:09pm UTC](https://discourse.processing.org/t/how-to-pause-part-of-a-draw-loop/36891 "2022-05-15T21:09:14Z")

</div>

I’m trying to make my character be able to crouch so i have void draw () background(0) imageMode(CENTER); image(box.image1,0,0); void keyPressed() { if (key == ‘s’) { image(box.image3, box.position.x, box.positio…

---

## [Create 500 PGraphics at the same time](https://discourse.processing.org/t/create-500-pgraphics-at-the-same-time/36900)

<div class="topic-metadata">

**Author:** [@Rag](https://discourse.processing.org/u/Rag)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 6:55pm UTC](https://discourse.processing.org/t/create-500-pgraphics-at-the-same-time/36900 "2022-05-15T18:55:11Z")

</div>

I am trying to optimize a part of my code that creates 500 PGraphics. Is there a way to creates them all at the same time ? final int child\_count = 5; final int min\_size = 5; final int max\_size = 300; final int position…

---

## [HELP: How to make slider button](https://discourse.processing.org/t/help-how-to-make-slider-button/36889)

<div class="topic-metadata">

**Author:** [@xie](https://discourse.processing.org/u/xie)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 11:23am UTC](https://discourse.processing.org/t/help-how-to-make-slider-button/36889 "2022-05-15T11:23:57Z")

</div>

hi! How do you make a slider with buttons on each side that control the movement of the pointer? Thanks! @TfGuy44 @CodeMasterX

---

## [Can't create 2D array](https://discourse.processing.org/t/cant-create-2d-array/36894)

<div class="topic-metadata">

**Author:** [@tensor](https://discourse.processing.org/u/tensor)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 10:50am UTC](https://discourse.processing.org/t/cant-create-2d-array/36894 "2022-05-15T10:50:24Z")

</div>

PVector pos; float yaw; float pitch; float roll; float\[\]\[\] rmx; PVector posinit; void setup() { size(640, 360, P3D); pos = new PVector(width/2, height/2, 0); posinit = new PVector(width/2, height/2, 0); yaw = P…

---

## [Read feedback data from gauge](https://discourse.processing.org/t/read-feedback-data-from-gauge/36879)

<div class="topic-metadata">

**Author:** [@Ardan](https://discourse.processing.org/u/Ardan)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 12:40am UTC](https://discourse.processing.org/t/read-feedback-data-from-gauge/36879 "2022-05-15T00:40:53Z")

</div>

Hi guys, I want to use processing to read from my gauge, here is my code: import processing.serial.\*; ////varibles setting Serial myPort; String inString; Table table; String Force; String trigger; void setup() { …

---

## [Origin of PVector](https://discourse.processing.org/t/origin-of-pvector/36881)

<div class="topic-metadata">

**Author:** [@tensor](https://discourse.processing.org/u/tensor)\
**Replies:** 1\
**Last updated:** [May 14, 2022, 6:51am UTC](https://discourse.processing.org/t/origin-of-pvector/36881 "2022-05-14T06:51:52Z")

</div>

How do i set the origin of a PVector to point other than the pre-defined top-left corner of screen?

---

## [G4P Version text](https://discourse.processing.org/t/g4p-version-text/36791)

<div class="topic-metadata">

**Author:** [@myupctoys](https://discourse.processing.org/u/myupctoys)\
**Replies:** 1\
**Last updated:** [May 13, 2022, 5:06pm UTC](https://discourse.processing.org/t/g4p-version-text/36791 "2022-05-13T17:06:19Z")

</div>

Hi, Probably a question/comment for Quarks. I noticed a change in the version details on launching G4P library, looks a bit messy. I’m using V4.3.2 G4P in intellj for one project and I get a launch message such as this…

---

## ["if" doesn't work while "switch" does](https://discourse.processing.org/t/if-doesnt-work-while-switch-does/36826)

<div class="topic-metadata">

**Author:** [@sadPG](https://discourse.processing.org/u/sadPG)\
**Replies:** 4\
**Last updated:** [May 13, 2022, 11:27am UTC](https://discourse.processing.org/t/if-doesnt-work-while-switch-does/36826 "2022-05-13T11:27:08Z")

</div>

void setup(){ String a = new String(); //a = "f\*"; //a += "\*\*"; a+='f'; a+='\*'; a+='\*'; a+='\*'; if(a == "f\*\*\*"){ println("hooray!"); }else{ println("f\*\*\*"); } switch(a){ case "f\*\*\*…

---

## [Restricted rotation next to a wall](https://discourse.processing.org/t/restricted-rotation-next-to-a-wall/36687)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 6\
**Last updated:** [May 12, 2022, 8:30pm UTC](https://discourse.processing.org/t/restricted-rotation-next-to-a-wall/36687 "2022-05-12T20:30:24Z")

</div>

Currently I am trying to find a way to calculate restricted random rotation close to a wall/two walls/three walls. What I do, and it works, is to find the sector of the rotation circle, which is excluded, by trigonometr…

---

## [Trying to check if a font can display certain glyphs](https://discourse.processing.org/t/trying-to-check-if-a-font-can-display-certain-glyphs/36795)

<div class="topic-metadata">

**Author:** [@disuye](https://discourse.processing.org/u/disuye)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 7:58pm UTC](https://discourse.processing.org/t/trying-to-check-if-a-font-can-display-certain-glyphs/36795 "2022-05-12T19:58:30Z")

</div>

Regarding the code below, I’m having difficulties using font.canDisplayUpTo() – I think it’s an issue with the URL being passed to Font font =… ? The fonts are all fine, so it’s something to do with how Font is being fed…

---

## ['NSWindow' ERROR](https://discourse.processing.org/t/nswindow-error/36848)

<div class="topic-metadata">

**Author:** [@mar](https://discourse.processing.org/u/mar)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 3:01pm UTC](https://discourse.processing.org/t/nswindow-error/36848 "2022-05-12T15:01:30Z")

</div>

Hello! I have export my sketch as app for MacOS from P3.5.4 java in macOS 13.6, where it runs well. When I I try to run the app on macOS 12 doesn’t works, it comes the follow ERROR: Application Specific Information: …

---

## [Can i send someone my code and they can explain why i have an error and how to fix it](https://discourse.processing.org/t/can-i-send-someone-my-code-and-they-can-explain-why-i-have-an-error-and-how-to-fix-it/36845)

<div class="topic-metadata">

**Author:** [@anonymous-54](https://discourse.processing.org/u/anonymous-54)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 1:31pm UTC](https://discourse.processing.org/t/can-i-send-someone-my-code-and-they-can-explain-why-i-have-an-error-and-how-to-fix-it/36845 "2022-05-12T13:31:10Z")

</div>

can i send someone my code and they can explain why i have an error and how to fix it

---

## [Dino chrome game](https://discourse.processing.org/t/dino-chrome-game/36836)

<div class="topic-metadata">

**Author:** [@rmznam02](https://discourse.processing.org/u/rmznam02)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 11:21am UTC](https://discourse.processing.org/t/dino-chrome-game/36836 "2022-05-12T11:21:44Z")

</div>

Hey, everyone. I have a school project and I got this code, I need help to comment, I have to deliver it today before midnight, thanks for your help. rmznam@outlook.com

---

## [How to have lines infront of moving object](https://discourse.processing.org/t/how-to-have-lines-infront-of-moving-object/36839)

<div class="topic-metadata">

**Author:** [@anonymous-54](https://discourse.processing.org/u/anonymous-54)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 8:22am UTC](https://discourse.processing.org/t/how-to-have-lines-infront-of-moving-object/36839 "2022-05-12T08:22:24Z")

</div>

i made the object stop/get stuck at a line top right of the screen how do i make the lines appear above my moving object which is controlled by mousex and mousey

---

## [OpenJDK goes to backgroundtask after closing the application window](https://discourse.processing.org/t/openjdk-goes-to-backgroundtask-after-closing-the-application-window/36841)

<div class="topic-metadata">

**Author:** [@axel223](https://discourse.processing.org/u/axel223)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 7:35am UTC](https://discourse.processing.org/t/openjdk-goes-to-backgroundtask-after-closing-the-application-window/36841 "2022-05-12T07:35:45Z")

</div>

When i open my exported processing application it all works fine. The OpenJDK Platform binary is shown in my tasks. After closing, the OpenJDK Platform binary is not terminated but moved to the backgroundtasks and is st…

---

## [How to use data from accelerometer to control camera and perspective in Processing](https://discourse.processing.org/t/how-to-use-data-from-accelerometer-to-control-camera-and-perspective-in-processing/36799)

<div class="topic-metadata">

**Author:** [@EllenYang](https://discourse.processing.org/u/EllenYang)\
**Replies:** 42\
**Last updated:** [May 12, 2022, 2:21am UTC](https://discourse.processing.org/t/how-to-use-data-from-accelerometer-to-control-camera-and-perspective-in-processing/36799 "2022-05-12T02:21:37Z")

</div>

I’m new to the forum, I wonder if anyone can help me to use data from accelerometer to control camera and perspective in processing? I’m making a 3D model of a galaxy and wish to use accelerometer to control the perspect…

---

## [SerialEvent not called (after the first 100-300 times)](https://discourse.processing.org/t/serialevent-not-called-after-the-first-100-300-times/36832)

<div class="topic-metadata">

**Author:** [@jango\_fx](https://discourse.processing.org/u/jango_fx)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 11:09pm UTC](https://discourse.processing.org/t/serialevent-not-called-after-the-first-100-300-times/36832 "2022-05-11T23:09:02Z")

</div>

is it me? or Processing 4? or macOS 12? i’m trying to read serial data not in draw() but in serialEvent() – which worked fine in the past. but serialEvent() is only called about 100-300 times in the very first seconds …

---

## [Is it possible to use GStreamer v 1.20.2 instead of GStreamer 1.16.2 the P4 video library (4.2.1)? How could one do this?](https://discourse.processing.org/t/is-it-possible-to-use-gstreamer-v-1-20-2-instead-of-gstreamer-1-16-2-the-p4-video-library-4-2-1-how-could-one-do-this/36829)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 6:07pm UTC](https://discourse.processing.org/t/is-it-possible-to-use-gstreamer-v-1-20-2-instead-of-gstreamer-1-16-2-the-p4-video-library-4-2-1-how-could-one-do-this/36829 "2022-05-11T18:07:53Z")

</div>

Does anyone know if one can use GStreamer v 1.20.2 instead of GStreamer 1.16.2 for Processing 4.08b? (video library 4.2.1). https://gstreamer.freedesktop.org/releases/1.20/#1.20.2 bugfixes include: \*\*\* nvh264dec, nvh26…

---

## [Why is the program ignoring my second for- loop?](https://discourse.processing.org/t/why-is-the-program-ignoring-my-second-for-loop/36819)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 2:42pm UTC](https://discourse.processing.org/t/why-is-the-program-ignoring-my-second-for-loop/36819 "2022-05-11T14:42:23Z")

</div>

Please help me, im a beginner in Processing. Before I’ll tell my problem I’ll twll you about the programm so u wont get confused. I want to create 2 arrows (left and right) they need to be next to eachother. I need 4 r…

---

## [Why Serial is not printing data from Arduino accelerometer in Processing](https://discourse.processing.org/t/why-serial-is-not-printing-data-from-arduino-accelerometer-in-processing/36809)

<div class="topic-metadata">

**Author:** [@EllenYang00](https://discourse.processing.org/u/EllenYang00)\
**Replies:** 3\
**Last updated:** [May 11, 2022, 11:03am UTC](https://discourse.processing.org/t/why-serial-is-not-printing-data-from-arduino-accelerometer-in-processing/36809 "2022-05-11T11:03:17Z")

</div>

I imported Serial library in my Processing and connect it to the Arduino accelerometer. Now the console is only printing my port’s name. I wish it to print out the acceleration on xyz as well. Can someone help me? I will…

---

## [All datas on my mac book pro where deleted by closing the Processing app](https://discourse.processing.org/t/all-datas-on-my-mac-book-pro-where-deleted-by-closing-the-processing-app/36801)

<div class="topic-metadata">

**Author:** [@bebmo](https://discourse.processing.org/u/bebmo)\
**Replies:** 0\
**Last updated:** [May 10, 2022, 3:53pm UTC](https://discourse.processing.org/t/all-datas-on-my-mac-book-pro-where-deleted-by-closing-the-processing-app/36801 "2022-05-10T15:53:07Z")

</div>

I work with an mac book pro M1, 12.3.1 Monterey After using the processing app, I close the app and in this moment all my datas are deleted. also the back ups in the i cloud is deleted. Also on the mac book memory ther…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=79)

[Next page](https://discourse.processing.org/c/processing/6.md?page=81)
