# Processing

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

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

**Page:** 37

---

## [Preciso de ajuda para um trabalho](https://discourse.processing.org/t/preciso-de-ajuda-para-um-trabalho/42401)

<div class="topic-metadata">

**Author:** [@vinicius](https://discourse.processing.org/u/vinicius)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 5:55am UTC](https://discourse.processing.org/t/preciso-de-ajuda-para-um-trabalho/42401 "2023-07-12T05:55:01Z")

</div>

// (Lei dos cossenos e senos base) void setup() { size(800, 600); Carregar\_Logo(); windowTitle("Xing Ling® Corporation"); } void draw() { int Px, Py; background(190); print("Digite a coordenada X: "); Px…

---

## [Creating a basic online service](https://discourse.processing.org/t/creating-a-basic-online-service/42360)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 5\
**Last updated:** [July 10, 2023, 3:14pm UTC](https://discourse.processing.org/t/creating-a-basic-online-service/42360 "2023-07-10T15:14:42Z")

</div>

Hi, I’m trying to make a online application. I have a hosting server, where I can put a Java file on it, but I don’t know how I could translate a processing sketch to java. I know how to create a basic Server & Client …

---

## [Android can't find data](https://discourse.processing.org/t/android-cant-find-data/42380)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 5\
**Last updated:** [July 9, 2023, 8:18pm UTC](https://discourse.processing.org/t/android-cant-find-data/42380 "2023-07-09T20:18:37Z")

</div>

I tried installing a processing sketch but the images I put there can not be found, just in the sketchbook but nowhere else. I looked in android, data, obb and media. There is no trace of “processing.sketch” or any of th…

---

## [Unable to export real-time audio reactive visuals](https://discourse.processing.org/t/unable-to-export-real-time-audio-reactive-visuals/42242)

<div class="topic-metadata">

**Author:** [@shaival](https://discourse.processing.org/u/shaival)\
**Replies:** 1\
**Last updated:** [July 9, 2023, 6:53pm UTC](https://discourse.processing.org/t/unable-to-export-real-time-audio-reactive-visuals/42242 "2023-07-09T18:53:44Z")

</div>

Hi All! I am creating a music visualizer in Processing 4.0. However when I try to export using saveFrame function, the audio is playing in real-time but the saving function delays the draw loop considerably which resul…

---

## [Problem with Spout and MadMapper in all versions, on Windows 11](https://discourse.processing.org/t/problem-with-spout-and-madmapper-in-all-versions-on-windows-11/42317)

<div class="topic-metadata">

**Author:** [@galacticovj](https://discourse.processing.org/u/galacticovj)\
**Replies:** 0\
**Last updated:** [June 30, 2023, 4:45pm UTC](https://discourse.processing.org/t/problem-with-spout-and-madmapper-in-all-versions-on-windows-11/42317 "2023-06-30T16:45:33Z")

</div>

Hello everyone, my problem is testing processing with spout library testing the example spout send, it’s recognized on madmapper but the image is black , Also I tried capturing window processing with OBS and then sending…

---

## [How I can create coral in Processing?](https://discourse.processing.org/t/how-i-can-create-coral-in-processing/42371)

<div class="topic-metadata">

**Author:** [@Yass1](https://discourse.processing.org/u/Yass1)\
**Replies:** 2\
**Last updated:** [July 8, 2023, 10:26pm UTC](https://discourse.processing.org/t/how-i-can-create-coral-in-processing/42371 "2023-07-08T22:26:38Z")

</div>

\<I want to create corals in processing, how I can do that ?\>

---

## ["Destroy" instance of a class](https://discourse.processing.org/t/destroy-instance-of-a-class/42312)

<div class="topic-metadata">

**Author:** [@sterretje](https://discourse.processing.org/u/sterretje)\
**Replies:** 6\
**Last updated:** [July 8, 2023, 2:12am UTC](https://discourse.processing.org/t/destroy-instance-of-a-class/42312 "2023-07-08T02:12:23Z")

</div>

I have a class to allow the user to select a serial port using a kind-of dropdown. It lists the available ports and the user can select using the up and down arrows. An object is instantiated when the user presses ‘P’ o…

---

## [Join segments / concatenate paths](https://discourse.processing.org/t/join-segments-concatenate-paths/42355)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 2\
**Last updated:** [July 7, 2023, 6:58pm UTC](https://discourse.processing.org/t/join-segments-concatenate-paths/42355 "2023-07-07T18:58:03Z")

</div>

hello all, I am working on a project that is like a truchet tilling, I am using versions of a tile that are distributed in a grid and are rotates randomly to generate a certain drawing. once I have the random distributi…

---

## [Am I allowed to use PGraphics in html?](https://discourse.processing.org/t/am-i-allowed-to-use-pgraphics-in-html/42375)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 1\
**Last updated:** [July 7, 2023, 6:22pm UTC](https://discourse.processing.org/t/am-i-allowed-to-use-pgraphics-in-html/42375 "2023-07-07T18:22:19Z")

</div>

so i’m trying to embed some pdes in html and i’m running into trouble using the PGraphics buffer. it seems to be compiling and running, but it doesn’t actually draw my PGraphics canvas when i try to use image(). the cons…

---

## [Using vectors to find the line between two lines](https://discourse.processing.org/t/using-vectors-to-find-the-line-between-two-lines/41856)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 12\
**Last updated:** [July 7, 2023, 8:26am UTC](https://discourse.processing.org/t/using-vectors-to-find-the-line-between-two-lines/41856 "2023-07-07T08:26:17Z")

</div>

I can do this (see sketch) with lerp(), but it cannot be the best way. Using lerp() and starting at the desired angle, one would have to use tan(), then solve two equations before knowing what value to give lerp(). Then …

---

## [Images in Processing help?](https://discourse.processing.org/t/images-in-processing-help/42357)

<div class="topic-metadata">

**Author:** [@KiaraR](https://discourse.processing.org/u/KiaraR)\
**Replies:** 2\
**Last updated:** [July 7, 2023, 7:32am UTC](https://discourse.processing.org/t/images-in-processing-help/42357 "2023-07-07T07:32:01Z")

</div>

Basic question but I’m having trouble as a beginner: I wanted to know can you add transformations to a jpeg image in Processing? If so where do I find or upload the local file path in processing?

---

## [How do I make an array larger?](https://discourse.processing.org/t/how-do-i-make-an-array-larger/42361)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 11:46pm UTC](https://discourse.processing.org/t/how-do-i-make-an-array-larger/42361 "2023-07-06T23:46:08Z")

</div>

I am trying to make a array, that if you get to the end, it gets one larger. this is my code: String\[\] text = new String\[32\]; int scroll; int visScroll; float scrollSpeed; int lineHeight = 24; void setup() { size(…

---

## [PGraphics weird transparency issue](https://discourse.processing.org/t/pgraphics-weird-transparency-issue/42015)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 10\
**Last updated:** [July 6, 2023, 9:50pm UTC](https://discourse.processing.org/t/pgraphics-weird-transparency-issue/42015 "2023-07-06T21:50:36Z")

</div>

Its weird, i cant explain it, so ill get straight to the point; this code makes the edge of the line look dark and weird. it uses a translucent background (not pixelated, thats fine); PGraphics pg; void setup() { s…

---

## [Processing IDE code not working (Arduino / Processing)](https://discourse.processing.org/t/processing-ide-code-not-working-arduino-processing/42349)

<div class="topic-metadata">

**Author:** [@kusspuss](https://discourse.processing.org/u/kusspuss)\
**Replies:** 4\
**Last updated:** [July 6, 2023, 2:23pm UTC](https://discourse.processing.org/t/processing-ide-code-not-working-arduino-processing/42349 "2023-07-06T14:23:18Z")

</div>

I make code that do not receive data from Arduino , angle should be along x-axis and h\_dot should be along y-axis import processing.serial.\*; Serial port; float Angle; float h\_dot; void setup() { size(400, 300); …

---

## [Encapsulate G4P app?](https://discourse.processing.org/t/encapsulate-g4p-app/42354)

<div class="topic-metadata">

**Author:** [@harrih](https://discourse.processing.org/u/harrih)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 3:25pm UTC](https://discourse.processing.org/t/encapsulate-g4p-app/42354 "2023-07-06T15:25:51Z")

</div>

Hi I have a small App that has been partially built using The G4P gui builder tool This is to be a helper app in the context of a much larger app . It is simply a calculator that takes a number from the main app, man…

---

## [How to use void sum](https://discourse.processing.org/t/how-to-use-void-sum/42321)

<div class="topic-metadata">

**Author:** [@Janoer](https://discourse.processing.org/u/Janoer)\
**Replies:** 4\
**Last updated:** [July 1, 2023, 11:54am UTC](https://discourse.processing.org/t/how-to-use-void-sum/42321 "2023-07-01T11:54:49Z")

</div>

Hello, I want to use sum but I don’t know where to put number. is there anything that can help? Thank You! void sum(int a, int b, int c) { in total = a + b + c; printIn(total); }

---

## [Trouble exporting video with VideoExport library - no errors but no .mp4 written to file](https://discourse.processing.org/t/trouble-exporting-video-with-videoexport-library-no-errors-but-no-mp4-written-to-file/42306)

<div class="topic-metadata">

**Author:** [@DarkLight](https://discourse.processing.org/u/DarkLight)\
**Replies:** 1\
**Last updated:** [July 1, 2023, 5:24am UTC](https://discourse.processing.org/t/trouble-exporting-video-with-videoexport-library-no-errors-but-no-mp4-written-to-file/42306 "2023-07-01T05:24:23Z")

</div>

Hello. I’m not sure what’s going on. I see that the VideoExport library is installed, I can navigate to it. The directory I am saving to does exist. I’m not getting any error, the drawing runs but no frames are saved…

---

## [G4P Mouseover Event, mainly for tooltips](https://discourse.processing.org/t/g4p-mouseover-event-mainly-for-tooltips/34742)

<div class="topic-metadata">

**Author:** [@myupctoys](https://discourse.processing.org/u/myupctoys)\
**Replies:** 19\
**Last updated:** [June 30, 2023, 5:59pm UTC](https://discourse.processing.org/t/g4p-mouseover-event-mainly-for-tooltips/34742 "2023-06-30T17:59:40Z")

</div>

Hi, I’m wanting to add tool tips to assorted text, labels and possibly buttons. Not apparent in processing and G4P specifically. Main requirement would be for a “mouseover” events generated for these objects. Then imagi…

---

## [JPen doesn't work anymore :(](https://discourse.processing.org/t/jpen-doesnt-work-anymore/42298)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [June 29, 2023, 6:26pm UTC](https://discourse.processing.org/t/jpen-doesnt-work-anymore/42298 "2023-06-29T18:26:31Z")

</div>

The jpen tablet library doesnt work anymore, even the examples dont work! Tablet 2.0-alpha3 by Andres Colubri http://andrescolubri.net/ Jun 27, 2023 9:47:14 PM jpen.provider.NativeLibraryLoader$4 run INFO: loading JPen …

---

## [Can't see display window on screen unless I have it in fullScreen()](https://discourse.processing.org/t/cant-see-display-window-on-screen-unless-i-have-it-in-fullscreen/42311)

<div class="topic-metadata">

**Author:** [@scottreinhard](https://discourse.processing.org/u/scottreinhard)\
**Replies:** 1\
**Last updated:** [June 29, 2023, 2:58pm UTC](https://discourse.processing.org/t/cant-see-display-window-on-screen-unless-i-have-it-in-fullscreen/42311 "2023-06-29T14:58:23Z")

</div>

I’ve come back to some code after awhile away from it. It had been working up until now. But now when I run it, it shows that it is running but I cannot see it on my screen, I have a println(frameCount) to confirm that i…

---

## [P3D make something display on top!](https://discourse.processing.org/t/p3d-make-something-display-on-top/42302)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 9:36pm UTC](https://discourse.processing.org/t/p3d-make-something-display-on-top/42302 "2023-06-28T21:36:39Z")

</div>

How do i display gui in p3d always in front of everthing? if i try to do it like this: box(256); popMatrix(); camera(); //resets viewport to 2D equivalent noLights(); fill(60); rect(0,0,100,100); fill(2…

---

## [Rendering Error / Glitch - How to Fix / Reproduce](https://discourse.processing.org/t/rendering-error-glitch-how-to-fix-reproduce/42297)

<div class="topic-metadata">

**Author:** [@andrewcooke](https://discourse.processing.org/u/andrewcooke)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 6:32pm UTC](https://discourse.processing.org/t/rendering-error-glitch-how-to-fix-reproduce/42297 "2023-06-28T18:32:35Z")

</div>

Sorry, wasn’t sure what section to post this under. The image fragment below shows bezier curves rendered via P2D with alpha non-unity and blendMode either BLEND or ADD, using processing 4 on Linux w a low spec Radeon c…

---

## [Processing + Bluetooth Baudrate](https://discourse.processing.org/t/processing-bluetooth-baudrate/42293)

<div class="topic-metadata">

**Author:** [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 2:51pm UTC](https://discourse.processing.org/t/processing-bluetooth-baudrate/42293 "2023-06-27T14:51:09Z")

</div>

I’ve been successful in making PC Bluetooth communicate with HC-05, using processing in creating the graphic user interface making it communicate via Bluetooth pairing it. Though I am not sure what is causing the respons…

---

## [Call Python script](https://discourse.processing.org/t/call-python-script/42159)

<div class="topic-metadata">

**Author:** [@doni](https://discourse.processing.org/u/doni)\
**Replies:** 2\
**Last updated:** [June 12, 2023, 7:46pm UTC](https://discourse.processing.org/t/call-python-script/42159 "2023-06-12T19:46:19Z")

</div>

hi forum. is it possible to call python script from processing sketch. thank you

---

## [Can I use Processing in VS Code?](https://discourse.processing.org/t/can-i-use-processing-in-vs-code/42282)

<div class="topic-metadata">

**Author:** [@nuhuhwy](https://discourse.processing.org/u/nuhuhwy)\
**Replies:** 3\
**Last updated:** [June 27, 2023, 6:01am UTC](https://discourse.processing.org/t/can-i-use-processing-in-vs-code/42282 "2023-06-27T06:01:55Z")

</div>

I dont know how to start it! i installed “Processing VSCode v2.5.1” and it knows what i type but i cant start it! it says no extension for file! It gives me this error if i try to klick the triangle that runs it: PS C:…

---

## [Processing in Java: canvas size + image cleanup](https://discourse.processing.org/t/processing-in-java-canvas-size-image-cleanup/38272)

<div class="topic-metadata">

**Author:** [@xXx\_jesushchrist\_xXx](https://discourse.processing.org/u/xXx_jesushchrist_xXx)\
**Replies:** 8\
**Last updated:** [June 26, 2023, 10:36pm UTC](https://discourse.processing.org/t/processing-in-java-canvas-size-image-cleanup/38272 "2023-06-26T22:36:37Z")

</div>

How can I make my processing canvas in a Java project run/look exactly like it does when I use the processing IDE for this project? I’m using P4 beta (I also get this issue with P3) as graphics library for a java projec…

---

## [PDF saving: how to open a window to choose path and specify a name](https://discourse.processing.org/t/pdf-saving-how-to-open-a-window-to-choose-path-and-specify-a-name/42289)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 22\
**Last updated:** [June 26, 2023, 8:36am UTC](https://discourse.processing.org/t/pdf-saving-how-to-open-a-window-to-choose-path-and-specify-a-name/42289 "2023-06-26T08:36:59Z")

</div>

hello All, I would like to know if there is a way/command to choose a path and a name every time I choose to save a PDF while my sketch is running (Processing desktop on a Mac). like It is done in every known software …

---

## [What does "Error on int" mean?](https://discourse.processing.org/t/what-does-error-on-int-mean/42264)

<div class="topic-metadata">

**Author:** [@Random\_Ghost](https://discourse.processing.org/u/Random_Ghost)\
**Replies:** 11\
**Last updated:** [June 24, 2023, 6:11pm UTC](https://discourse.processing.org/t/what-does-error-on-int-mean/42264 "2023-06-24T18:11:43Z")

</div>

''Syntax error on token “int”, invalid ClassType ‘’ I have a static class C3 and I’m trying to create a color method in it. Here’s the code, static class C3 { int r, g, b; /\* public C3(color c){ r = c; g…

---

## [Need help with printing (paper, to an actual printer)](https://discourse.processing.org/t/need-help-with-printing-paper-to-an-actual-printer/42288)

<div class="topic-metadata">

**Author:** [@Illuminaria](https://discourse.processing.org/u/Illuminaria)\
**Replies:** 4\
**Last updated:** [June 25, 2023, 7:05pm UTC](https://discourse.processing.org/t/need-help-with-printing-paper-to-an-actual-printer/42288 "2023-06-25T19:05:04Z")

</div>

\<I’m an art student that got a Processing project in three stages for my Digital Art Class. No a programmer by myself. I ended up making a humble but nice autogerenating art code. What i need for the instalation is Proc…

---

## [How do I write class methods in other tabs?](https://discourse.processing.org/t/how-do-i-write-class-methods-in-other-tabs/42292)

<div class="topic-metadata">

**Author:** [@Random\_Ghost](https://discourse.processing.org/u/Random_Ghost)\
**Replies:** 2\
**Last updated:** [June 25, 2023, 5:45pm UTC](https://discourse.processing.org/t/how-do-i-write-class-methods-in-other-tabs/42292 "2023-06-25T17:45:45Z")

</div>

I am creating an image processing methid but it’s becoming too long for me to keep track of everything. Is it possible for me to write the class methods in other tabs?

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

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