# Processing

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

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

**Page:** 82

---

## [Aspect ratio screen resizing](https://discourse.processing.org/t/aspect-ratio-screen-resizing/19538)

<div class="topic-metadata">

**Author:** [@s6277](https://discourse.processing.org/u/s6277)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 7:09pm UTC](https://discourse.processing.org/t/aspect-ratio-screen-resizing/19538 "2022-05-09T19:09:48Z")

</div>

Hey, I’m really struggling aspect ratio on processing, i want to be able to resize the screen and when i resize it the object inside is also resized according to the screen. I have currently used: surface.setResizable(t…

---

## [Trying to convert this example into an OOP](https://discourse.processing.org/t/trying-to-convert-this-example-into-an-oop/36776)

<div class="topic-metadata">

**Author:** [@Whell](https://discourse.processing.org/u/Whell)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 12:26pm UTC](https://discourse.processing.org/t/trying-to-convert-this-example-into-an-oop/36776 "2022-05-09T12:26:53Z")

</div>

Hi, i’m trying to remake this example of Nature of Code (code 1) but instead of drawing in the draw loop, i’m trying to make it as an Object Oriented Program (code 2), however, the behavior of the object is way off. I ki…

---

## [Tweak mode not working with OpenSimplexNoise.java](https://discourse.processing.org/t/tweak-mode-not-working-with-opensimplexnoise-java/36494)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 3\
**Last updated:** [May 9, 2022, 8:30am UTC](https://discourse.processing.org/t/tweak-mode-not-working-with-opensimplexnoise-java/36494 "2022-05-09T08:30:18Z")

</div>

Hello, For me Processing’s Tweak Mode doesn’t seem to work together with Kurt Spencer’s OpenSimplex noise class. Whenever I use the Shift+Command+T key-combination to enter Tweak Mode I get the following error: java.la…

---

## [Cannot Export DXF from PWindow?](https://discourse.processing.org/t/cannot-export-dxf-from-pwindow/36767)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 3\
**Last updated:** [May 8, 2022, 12:43pm UTC](https://discourse.processing.org/t/cannot-export-dxf-from-pwindow/36767 "2022-05-08T12:43:53Z")

</div>

Hallo. I have the following problem. In a second window of my sketch that i use for previewing in 3d, i have a set of pshapes drawn in 3d space, but i cannot get them to be exported as dxf. Actually, nothing is exporte…

---

## [How to manipulate and save data in shaderbuffers](https://discourse.processing.org/t/how-to-manipulate-and-save-data-in-shaderbuffers/36766)

<div class="topic-metadata">

**Author:** [@Amirk](https://discourse.processing.org/u/Amirk)\
**Replies:** 0\
**Last updated:** [May 8, 2022, 5:42am UTC](https://discourse.processing.org/t/how-to-manipulate-and-save-data-in-shaderbuffers/36766 "2022-05-08T05:42:04Z")

</div>

I can access bufferdata with a shader, and use it within the shader code, but how could I save updated data into back the same buffer with the shader? Im trying to buld some Lattice Boltzmann simulations in this manner: …

---

## [Can Processing Objects/Classes be used in pure Java Graphics2D environment? (with/without extending the Applet)](https://discourse.processing.org/t/can-processing-objects-classes-be-used-in-pure-java-graphics2d-environment-with-without-extending-the-applet/36730)

<div class="topic-metadata">

**Author:** [@istinn](https://discourse.processing.org/u/istinn)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 5:39pm UTC](https://discourse.processing.org/t/can-processing-objects-classes-be-used-in-pure-java-graphics2d-environment-with-without-extending-the-applet/36730 "2022-05-07T17:39:51Z")

</div>

Hi, are there any examples that use (import) processing classes in combination with the classic pure Graphics2D environment outside Processing? I mean not just extending the Processing Applet (the new window), but exten…

---

## [Feedback for utility-library](https://discourse.processing.org/t/feedback-for-utility-library/36762)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 5:02pm UTC](https://discourse.processing.org/t/feedback-for-utility-library/36762 "2022-05-07T17:02:17Z")

</div>

I have written a utility library and uploaded it on GitHub. Before I’m making any steps towards publishing it I would try to get some feedback. The library can be downloaded with the link: Just put the folder inside t…

---

## [FSR pressure matrix](https://discourse.processing.org/t/fsr-pressure-matrix/36582)

<div class="topic-metadata">

**Author:** [@GalA](https://discourse.processing.org/u/GalA)\
**Replies:** 8\
**Last updated:** [May 7, 2022, 11:52am UTC](https://discourse.processing.org/t/fsr-pressure-matrix/36582 "2022-05-07T11:52:24Z")

</div>

Hi all, I have a project that I need to manufacture a chair that prevent pressure sores using fsr sensors The seat will have 9 fsr sensors and the backrest will have 4 more sensors. The sensors are connected to Arduin…

---

## ["the function substring(int) does not exist"](https://discourse.processing.org/t/the-function-substring-int-does-not-exist/36757)

<div class="topic-metadata">

**Author:** [@AmberGoop](https://discourse.processing.org/u/AmberGoop)\
**Replies:** 3\
**Last updated:** [May 7, 2022, 10:50am UTC](https://discourse.processing.org/t/the-function-substring-int-does-not-exist/36757 "2022-05-07T10:50:41Z")

</div>

i’m having a peculiar issue here - and it’s in the title. i’m trying to use substring() to cut the first chunk of a long string off, but processing (4.0b2) is telling me that “The function substring(int) does not exist.…

---

## [Object-oriented theory doubt. sin() function, oscillation](https://discourse.processing.org/t/object-oriented-theory-doubt-sin-function-oscillation/36751)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 8:06pm UTC](https://discourse.processing.org/t/object-oriented-theory-doubt-sin-function-oscillation/36751 "2022-05-06T20:06:14Z")

</div>

Hi all, My understanding of OOP is that in order to create a Class, you need to define 1) variables, 2) constructor and 3) methods. In the example below though, variables x and theta are 1) defined, their values assigne…

---

## [Processing 3.5.4 not opening](https://discourse.processing.org/t/processing-3-5-4-not-opening/28742)

<div class="topic-metadata">

**Author:** [@somenumber](https://discourse.processing.org/u/somenumber)\
**Replies:** 9\
**Last updated:** [May 6, 2022, 11:27am UTC](https://discourse.processing.org/t/processing-3-5-4-not-opening/28742 "2022-05-06T11:27:49Z")

</div>

I just downloaded Processing again and wanted to launch some of my old programs I coded together with CodingTrain. Whenever I try to open Processing ,or any file related to it, nothing happens (“processing.exe” shows up …

---

## [Please tell me how to save the Processing file as PNG](https://discourse.processing.org/t/please-tell-me-how-to-save-the-processing-file-as-png/36741)

<div class="topic-metadata">

**Author:** [@alalal](https://discourse.processing.org/u/alalal)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 5:04am UTC](https://discourse.processing.org/t/please-tell-me-how-to-save-the-processing-file-as-png/36741 "2022-05-06T05:04:56Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Sorry, this problem may be a little stupid. I can’t find very detailed steps on the Internet. I tried a code, but I don’t know why it doesn’t wo…

---

## [Drawing many image thumbnails in expanding circle](https://discourse.processing.org/t/drawing-many-image-thumbnails-in-expanding-circle/36718)

<div class="topic-metadata">

**Author:** [@sleepythief](https://discourse.processing.org/u/sleepythief)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 7:03pm UTC](https://discourse.processing.org/t/drawing-many-image-thumbnails-in-expanding-circle/36718 "2022-05-05T19:03:57Z")

</div>

I have loaded array of PImages (2,000 20x20 jpgs) PImage\[\] images; That I wish to arrange in a circle manner from the center of the display. I can do this easily in a grid with a column, row nested for loop, however m…

---

## [Files in data folder not found by IDE](https://discourse.processing.org/t/files-in-data-folder-not-found-by-ide/36736)

<div class="topic-metadata">

**Author:** [@mv511](https://discourse.processing.org/u/mv511)\
**Replies:** 4\
**Last updated:** [May 5, 2022, 3:45pm UTC](https://discourse.processing.org/t/files-in-data-folder-not-found-by-ide/36736 "2022-05-05T15:45:55Z")

</div>

Guys, I currently have three files in my data folder inside the sketch’s own folder. One file, test.db, a file I use with BezierSQL, shows “true” when I run System.out.println(new java.io.File(“test.db”).exists()); Wi…

---

## [How do I slowly layer photos to appear on top of eachother?](https://discourse.processing.org/t/how-do-i-slowly-layer-photos-to-appear-on-top-of-eachother/36698)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 6\
**Last updated:** [May 4, 2022, 4:41pm UTC](https://discourse.processing.org/t/how-do-i-slowly-layer-photos-to-appear-on-top-of-eachother/36698 "2022-05-04T16:41:23Z")

</div>

Hello! I am trying to work out if there is a simple way to gradually fade photos on top of eachother? Basically, to show one image, which slowly fades in to the next, which slowly fades in to the next, etc. I’ve been p…

---

## [Processing 4 crash issue](https://discourse.processing.org/t/processing-4-crash-issue/36706)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 3\
**Last updated:** [May 4, 2022, 12:09pm UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706 "2022-05-04T12:09:29Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I used Processing 4 in android mode to develop application. I stopped for some time, as at last before I stopped. I application compiling and lo…

---

## [Cannot load .dylib in Processing 4?](https://discourse.processing.org/t/cannot-load-dylib-in-processing-4/36692)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 1\
**Last updated:** [May 4, 2022, 7:01am UTC](https://discourse.processing.org/t/cannot-load-dylib-in-processing-4/36692 "2022-05-04T07:01:00Z")

</div>

I made a library that loads a .dylib file and calls some functions from it. Since the upgrade to Processing 4, the library can’t find the dylib and throws an error when trying to load it: UnsatisfiedLinkError: Unable to…

---

## [Export Application video not working](https://discourse.processing.org/t/export-application-video-not-working/30363)

<div class="topic-metadata">

**Author:** [@abatllei](https://discourse.processing.org/u/abatllei)\
**Replies:** 17\
**Last updated:** [May 3, 2022, 8:49pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363 "2022-05-03T20:49:34Z")

</div>

So I have to play two videos on my sketch and when I run it on Processing it works well, but when I export the application, it doesn’t work at all. Even the program seems not to be running. Grey screen. I’m on OSX 10.14…

---

## [Box just going off screen and then disappears. Please help](https://discourse.processing.org/t/box-just-going-off-screen-and-then-disappears-please-help/36697)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 6:46pm UTC](https://discourse.processing.org/t/box-just-going-off-screen-and-then-disappears-please-help/36697 "2022-05-03T18:46:47Z")

</div>

So i have a box that goes across the screen and is is supposed to loop but it just does it once Broken Partif (boxX+10 ==(width)) { boxX=width-width+1; } boxX = boxX+10; rect(boxX, boxY, 50, 50); } Full Codeint car…

---

## [Issues with Game Control Plus/Processing & Arduino](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691)

<div class="topic-metadata">

**Author:** [@Dewski](https://discourse.processing.org/u/Dewski)\
**Replies:** 3\
**Last updated:** [May 3, 2022, 5:16pm UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691 "2022-05-03T17:16:44Z")

</div>

Hello, Newbie to Processing, and coding in general here. I am working on a project to control a 12v motor from a button on a sim racing steering wheel. The motor will be powered off most of the time, but I want it to …

---

## [Modify elements in a for loop separately using PGraphics](https://discourse.processing.org/t/modify-elements-in-a-for-loop-separately-using-pgraphics/36636)

<div class="topic-metadata">

**Author:** [@belen.s](https://discourse.processing.org/u/belen.s)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 10:57am UTC](https://discourse.processing.org/t/modify-elements-in-a-for-loop-separately-using-pgraphics/36636 "2022-05-03T10:57:15Z")

</div>

Hello!! I have made a figure with a for loop inside a class, and I want to make each element made in the loop have different colors. Here is my code. Any help would be great… float x; float y; Madre c; //MadreLider d; …

---

## [LoadShape() not working correctly](https://discourse.processing.org/t/loadshape-not-working-correctly/36681)

<div class="topic-metadata">

**Author:** [@Alpaib](https://discourse.processing.org/u/Alpaib)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 5:17pm UTC](https://discourse.processing.org/t/loadshape-not-working-correctly/36681 "2022-05-02T17:17:15Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello everyone, First of all, I am new using processing. I am just trying to see a 3D model in the screen using loadShape(); I used blender to…

---

## [The library "Test" cannot be used because it contains the processing.core libraries](https://discourse.processing.org/t/the-library-test-cannot-be-used-because-it-contains-the-processing-core-libraries/36669)

<div class="topic-metadata">

**Author:** [@Misha.studio](https://discourse.processing.org/u/Misha.studio)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 5:33am UTC](https://discourse.processing.org/t/the-library-test-cannot-be-used-because-it-contains-the-processing-core-libraries/36669 "2022-05-02T05:33:35Z")

</div>

Hi there! Over the years I’ve created a lot of helper functions that I constantly copy between projects. This doesn’t feel very bullet proof of course so I wanted to merge all those functions inside a java library. Pro…

---

## [Working with 48bit image formats. How to load, process, save?](https://discourse.processing.org/t/working-with-48bit-image-formats-how-to-load-process-save/36652)

<div class="topic-metadata">

**Author:** [@phillipstearns](https://discourse.processing.org/u/phillipstearns)\
**Replies:** 2\
**Last updated:** [April 30, 2022, 2:21am UTC](https://discourse.processing.org/t/working-with-48bit-image-formats-how-to-load-process-save/36652 "2022-04-30T02:21:46Z")

</div>

I’m working on a project where I’ve been asked to work with 48bit (16bits per channel RGB) .PNG files. I’ll need to open, read and manipulate pixel data, and save to 48bit .PNG. Is this possible with Processing 4?

---

## [I have several issues with my else if and if structures](https://discourse.processing.org/t/i-have-several-issues-with-my-else-if-and-if-structures/36650)

<div class="topic-metadata">

**Author:** [@nalk](https://discourse.processing.org/u/nalk)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 11:06pm UTC](https://discourse.processing.org/t/i-have-several-issues-with-my-else-if-and-if-structures/36650 "2022-04-29T23:06:17Z")

</div>

My mousePressed if else structure seems to be skipping some “estado” and not working at all int estado = 0; // Establezco las imagenes que van a usarse. PImage img0, img1, img2, img3, img4, img5, img6; // Establezco …

---

## [Use Mouse-funktions in classes](https://discourse.processing.org/t/use-mouse-funktions-in-classes/29673)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 7\
**Last updated:** [April 29, 2022, 5:09pm UTC](https://discourse.processing.org/t/use-mouse-funktions-in-classes/29673 "2022-04-29T17:09:11Z")

</div>

I want to write a class that is able to use Mouse-funktions like mousePressed() but the funktion is not triggered in a class: myClass c; void setup() { size(500, 500); c = new myClass(); } void draw() { c.upd…

---

## [Creating a static variable from a non-static method (like color())](https://discourse.processing.org/t/creating-a-static-variable-from-a-non-static-method-like-color/36641)

<div class="topic-metadata">

**Author:** [@GuyInFridge](https://discourse.processing.org/u/GuyInFridge)\
**Replies:** 6\
**Last updated:** [April 29, 2022, 4:02pm UTC](https://discourse.processing.org/t/creating-a-static-variable-from-a-non-static-method-like-color/36641 "2022-04-29T16:02:15Z")

</div>

I would like to create a class which has a static field “c\_DEFAULT” that stores a default color for all objects of that class. The problem is that I can’t do the following: static final color c\_DEFAULT = color(175); //…

---

## [Arduino Firmata wont register Arduino](https://discourse.processing.org/t/arduino-firmata-wont-register-arduino/31358)

<div class="topic-metadata">

**Author:** [@TitanNikola](https://discourse.processing.org/u/TitanNikola)\
**Replies:** 24\
**Last updated:** [April 29, 2022, 3:06pm UTC](https://discourse.processing.org/t/arduino-firmata-wont-register-arduino/31358 "2022-04-29T15:06:21Z")

</div>

Hello, I’m actually not very experienced with coding but my friend who wrote this is out of town and i was hoping i could find a solution soon. So the basic part of the issue is that this code has always been problemati…

---

## [Cannot find a class or type named "Box"](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-box/36587)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 4\
**Last updated:** [April 29, 2022, 2:20pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-box/36587 "2022-04-29T14:20:49Z")

</div>

import shiffman.box2d.\*; ArrayList\<Box\>boxes; PBox2D box2d; void setup(){ size(400,300); boxes = new ArrayList\<Box\>(); box2d = new PBox2D(this); box2d.createWorld(); } void draw(){ box2d.step(); background…

---

## [Is it possible to 'offset' an object, e.g concentric circles?](https://discourse.processing.org/t/is-it-possible-to-offset-an-object-e-g-concentric-circles/36586)

<div class="topic-metadata">

**Author:** [@GoodJuJu](https://discourse.processing.org/u/GoodJuJu)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 1:18pm UTC](https://discourse.processing.org/t/is-it-possible-to-offset-an-object-e-g-concentric-circles/36586 "2022-04-29T13:18:49Z")

</div>

In AutoCAD, there is a command to ‘offset’ an object. You select the object (line, circle, rectangle, arc etc.), specify either a positive or a negative value and the object will be ‘offset’ according to the entered val…

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

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