# Latest

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

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

**Page:** 320

---

## [ADAPTING ELEMENTS to DEVICES ORIENTATION CHANGE](https://discourse.processing.org/t/adapting-elements-to-devices-orientation-change/22877)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 3:25pm UTC](https://discourse.processing.org/t/adapting-elements-to-devices-orientation-change/22877 "2020-07-28T15:25:46Z")

</div>

in my sketch i create some elements (buttons) and give to them a position according to the windowWidth && windowHeight. As for desktop not any problems. As for phones or tablets it s more difficult but it is possible, kn…

---

## [About Google Maps](https://discourse.processing.org/t/about-google-maps/22925)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 3\
**Last updated:** [July 30, 2020, 11:13am UTC](https://discourse.processing.org/t/about-google-maps/22925 "2020-07-30T11:13:18Z")

</div>

Is there a way to display values on a map or on google maps

---

## [Draw a number on each side of a box](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916)

<div class="topic-metadata">

**Author:** [@hugoromo](https://discourse.processing.org/u/hugoromo)\
**Replies:** 1\
**Last updated:** [July 30, 2020, 2:13am UTC](https://discourse.processing.org/t/draw-a-number-on-each-side-of-a-box/22916 "2020-07-30T02:13:10Z")

</div>

Hello, I think a possible solution would be using the shapes3d library and drawing a PImage on each side of the box. But I’m new with all this and I wasn’t able to come up with a solution using this library, so I was wo…

---

## [Lost keyPressed events](https://discourse.processing.org/t/lost-keypressed-events/22903)

<div class="topic-metadata">

**Author:** [@marek](https://discourse.processing.org/u/marek)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 8:52pm UTC](https://discourse.processing.org/t/lost-keypressed-events/22903 "2020-07-29T20:52:15Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m using the SHIFT and ALT keys as modifiers on mouse operations, but seem to be losing keyPressed events on the ALT key. Simple code example b…

---

## [Adding texture to 2D circle](https://discourse.processing.org/t/adding-texture-to-2d-circle/22914)

<div class="topic-metadata">

**Author:** [@Chafari](https://discourse.processing.org/u/Chafari)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 8:13pm UTC](https://discourse.processing.org/t/adding-texture-to-2d-circle/22914 "2020-07-29T20:13:39Z")

</div>

Hi there . Is it possible to asign an image to a 2D circle or it must be a p3D shape? Edit. Stupid me !! I should have read references first.

---

## [Memory leak with size() and setResizable()](https://discourse.processing.org/t/memory-leak-with-size-and-setresizable/22887)

<div class="topic-metadata">

**Author:** [@processor1](https://discourse.processing.org/u/processor1)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 7:33pm UTC](https://discourse.processing.org/t/memory-leak-with-size-and-setresizable/22887 "2020-07-29T19:33:02Z")

</div>

Hi everyone, I have exported a processing application (version 3.5.3) to Eclipse using the proclipsing plugin in order to identify a memory leak. The leak points to PGraphics and after playing around with the code a lit…

---

## [Processing does not run code, Java related issues for Arch-Linux based operating system](https://discourse.processing.org/t/processing-does-not-run-code-java-related-issues-for-arch-linux-based-operating-system/22860)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 16\
**Last updated:** [July 29, 2020, 5:27pm UTC](https://discourse.processing.org/t/processing-does-not-run-code-java-related-issues-for-arch-linux-based-operating-system/22860 "2020-07-29T17:27:27Z")

</div>

// Declaring the sound Library import ddf.minim.\*; // Declearing global class variables Minim minim; AudioPlayer audio; void setup() { minim = new Minim(this); audio = minim.loadFile("audio.mp3"); size(800, 80…

---

## [Geomerative: controlling caps and joins appearances](https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910)

<div class="topic-metadata">

**Author:** [@Eamoex](https://discourse.processing.org/u/Eamoex)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 5:08pm UTC](https://discourse.processing.org/t/geomerative-controlling-caps-and-joins-appearances/22910 "2020-07-29T17:08:54Z")

</div>

Hello Everyone, I am trying to learn how to use Geomerative to achieve a specific effect. I want to map/grow an SVG path according to a unit value (0.0 - 1.0). This code works well, but I can’t change the style of the c…

---

## [My .obj failing to work with loadModel() - " Cannot read property 'vertices' of undefined"](https://discourse.processing.org/t/my-obj-failing-to-work-with-loadmodel-cannot-read-property-vertices-of-undefined/22909)

<div class="topic-metadata">

**Author:** [@TinkererDuty](https://discourse.processing.org/u/TinkererDuty)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 3:07pm UTC](https://discourse.processing.org/t/my-obj-failing-to-work-with-loadmodel-cannot-read-property-vertices-of-undefined/22909 "2020-07-29T15:07:06Z")

</div>

Hi all, Apologies if this makes no sense as I’m fairly new to p5. I’m having trouble trying to get my .obj to work with loadModel() in my code. What I’m hoping is to allow the user to select an .obj of their choice an…

---

## [Editing Processing IDE shortcuts / hotkeys?](https://discourse.processing.org/t/editing-processing-ide-shortcuts-hotkeys/22894)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 3:10pm UTC](https://discourse.processing.org/t/editing-processing-ide-shortcuts-hotkeys/22894 "2020-07-29T15:10:28Z")

</div>

Is there a way to edit the default shortcuts used in the Processing IDE? In particular, I want to change Redo’s shortcut away from the default Ctrl+Y to Ctrl+Shift+Z. Is there a custom line I can add to preferences.txt…

---

## [Multiple object intersection and removal](https://discourse.processing.org/t/multiple-object-intersection-and-removal/22900)

<div class="topic-metadata">

**Author:** [@AbrarShahriar](https://discourse.processing.org/u/AbrarShahriar)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 2:38pm UTC](https://discourse.processing.org/t/multiple-object-intersection-and-removal/22900 "2020-07-29T14:38:40Z")

</div>

I am new to the discourse and not quite sure how to use it. But here I am. I am working on a ecosystem project, and I have an animal class with 2 different genders(0 for female, 1 for male). When 2 different genders int…

---

## [Challenges with static methods](https://discourse.processing.org/t/challenges-with-static-methods/22904)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 2:12pm UTC](https://discourse.processing.org/t/challenges-with-static-methods/22904 "2020-07-29T14:12:31Z")

</div>

There have been a few questions about static methods with processing IDE. Because everything in Processing IDE is nested code static methods can be used only with static classes (https://discourse.processing.org/t/questi…

---

## [How can i get value from optical flow? (PixelFlow libary)](https://discourse.processing.org/t/how-can-i-get-value-from-optical-flow-pixelflow-libary/22896)

<div class="topic-metadata">

**Author:** [@NodKeras](https://discourse.processing.org/u/NodKeras)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 6:06am UTC](https://discourse.processing.org/t/how-can-i-get-value-from-optical-flow-pixelflow-libary/22896 "2020-07-29T06:06:13Z")

</div>

Hello, I’m trying to get direction and length values of those line in screanshot but i’m stucked in long time. Is there any way to get these value in to processing? If so, how can i do it? This is the OpticalFlow\_Basi…

---

## [Get most recent online file?](https://discourse.processing.org/t/get-most-recent-online-file/22879)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 3:20am UTC](https://discourse.processing.org/t/get-most-recent-online-file/22879 "2020-07-29T03:20:28Z")

</div>

Imagine a public directory online, like this one: https://neo.sci.gsfc.nasa.gov/archive/rgb/MOD\_LSTD\_E/ This directory has a file put into it usually every 8 days. I would like to get the newest file whenever the sketch…

---

## [Surround video with opaque circle efficiently](https://discourse.processing.org/t/surround-video-with-opaque-circle-efficiently/22884)

<div class="topic-metadata">

**Author:** [@alphydan](https://discourse.processing.org/u/alphydan)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 11:39pm UTC](https://discourse.processing.org/t/surround-video-with-opaque-circle-efficiently/22884 "2020-07-28T23:39:04Z")

</div>

I am trying to have the person in a video appear in the middle of a circle. Like so: Here’s my naive approach. Find the height of the person and the middle of the person with posenet: hPerson = dist(pose.nose.x, po…

---

## [saveFrame to byte array](https://discourse.processing.org/t/saveframe-to-byte-array/22840)

<div class="topic-metadata">

**Author:** [@alexis.lacasse.1](https://discourse.processing.org/u/alexis.lacasse.1)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 11:25pm UTC](https://discourse.processing.org/t/saveframe-to-byte-array/22840 "2020-07-28T23:25:07Z")

</div>

Hi, I’m making an HTTP server using processing. This server will host an HTML file and an image. The HTML file will tell the clients browser to request and display the image periodically. The image is the last frame dre…

---

## [How to Change Image Transparency Using Ultrasonic Sensor](https://discourse.processing.org/t/how-to-change-image-transparency-using-ultrasonic-sensor/22578)

<div class="topic-metadata">

**Author:** [@nad1999](https://discourse.processing.org/u/nad1999)\
**Replies:** 9\
**Last updated:** [July 28, 2020, 7:25pm UTC](https://discourse.processing.org/t/how-to-change-image-transparency-using-ultrasonic-sensor/22578 "2020-07-28T19:25:56Z")

</div>

Hi everyone I’m trying to make a digital poster that changes when you get closer and farther away from it using an ultrasonic sensor and arduino. My distance measuring code works, but I can’t seem to get the two images …

---

## [Need help while creating new picture](https://discourse.processing.org/t/need-help-while-creating-new-picture/22741)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 5\
**Last updated:** [July 28, 2020, 5:51pm UTC](https://discourse.processing.org/t/need-help-while-creating-new-picture/22741 "2020-07-28T17:51:08Z")

</div>

Hello I want to do thing like this tap here to see. But i can’t create an image which i am selecting… How to do this ? Can anyone help ? int x = 0; int y = 0; int x2 = 1; int y2 = 1; int q, w, e, r; boolean basyldymy; …

---

## [Disabling Auto-Message to Users of a Sketch on OpenProcessing? Full Screen Issues](https://discourse.processing.org/t/disabling-auto-message-to-users-of-a-sketch-on-openprocessing-full-screen-issues/22740)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 8\
**Last updated:** [July 28, 2020, 3:47pm UTC](https://discourse.processing.org/t/disabling-auto-message-to-users-of-a-sketch-on-openprocessing-full-screen-issues/22740 "2020-07-28T15:47:34Z")

</div>

Hello Forum, I am working on a simple project with sounds and images for mobile devices on Open Processing. I love to present in their full screen mode. But, when I import sounds/media to my sketch and generate a url fo…

---

## [A much easier way to have multiple canvas on the same web page](https://discourse.processing.org/t/a-much-easier-way-to-have-multiple-canvas-on-the-same-web-page/22415)

<div class="topic-metadata">

**Author:** [@jimbrink](https://discourse.processing.org/u/jimbrink)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 3:13pm UTC](https://discourse.processing.org/t/a-much-easier-way-to-have-multiple-canvas-on-the-same-web-page/22415 "2020-07-28T15:13:09Z")

</div>

CanvasClass is my second and more successful effort at trying to make easy to have multiple canvases on the same web page without having be concerned with instance mode. Over 110 functions and events have been implement…

---

## [Trying to work with image arrays to store images for temporary use](https://discourse.processing.org/t/trying-to-work-with-image-arrays-to-store-images-for-temporary-use/22088)

<div class="topic-metadata">

**Author:** [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Replies:** 4\
**Last updated:** [July 28, 2020, 11:34am UTC](https://discourse.processing.org/t/trying-to-work-with-image-arrays-to-store-images-for-temporary-use/22088 "2020-07-28T11:34:13Z")

</div>

So I have been trying to work a lot with playing animations in Processing and I am currently working on a program that has a starting screen which the player can see after loading but will probably click away fairly quik…

---

## [Changing strokeWeight when mousePressed](https://discourse.processing.org/t/changing-strokeweight-when-mousepressed/22869)

<div class="topic-metadata">

**Author:** [@karate29](https://discourse.processing.org/u/karate29)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 11:03am UTC](https://discourse.processing.org/t/changing-strokeweight-when-mousepressed/22869 "2020-07-28T11:03:12Z")

</div>

I am brand new to Processing and was trying to create a free hand drawing program. I already made the colors and when you press them it changes the color and you can draw with the selected color. The problem I am coming …

---

## [Processing IDE - Javascript?](https://discourse.processing.org/t/processing-ide-javascript/22672)

<div class="topic-metadata">

**Author:** [@VegasBob](https://discourse.processing.org/u/VegasBob)\
**Replies:** 4\
**Last updated:** [July 28, 2020, 10:28am UTC](https://discourse.processing.org/t/processing-ide-javascript/22672 "2020-07-28T10:28:49Z")

</div>

Been enjoying the Processing IDE, but I have to admit a bit of a gaffe… I originally intended to learn JavaScript, but I’ve been coding in Java Mode. Now, since the project I’m using to learn is already 800 lines, I’m …

---

## [Need a little Help](https://discourse.processing.org/t/need-a-little-help/22874)

<div class="topic-metadata">

**Author:** [@the\_ahnafpiash](https://discourse.processing.org/u/the_ahnafpiash)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 8:41am UTC](https://discourse.processing.org/t/need-a-little-help/22874 "2020-07-28T08:41:37Z")

</div>

/\* I am trying for so long to solve my assignment but I am stuck… need a little help please! here is my assignment question: Create a ball of predefined size that bounces around the canvas, reversing directions when i…

---

## [Coding magazine for kids](https://discourse.processing.org/t/coding-magazine-for-kids/22649)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 2\
**Last updated:** [July 27, 2020, 9:42pm UTC](https://discourse.processing.org/t/coding-magazine-for-kids/22649 "2020-07-27T21:42:10Z")

</div>

Hi, Did you notice that we don’t have any good coding magazine for kids in US? In my opinion UK is leading in this field. The Raspberry Pi foundation has an excellent magazine that is also free. What about having a co…

---

## [New version of p5.j5 (johnny-five robotics) supports just about any old arduino now with webSerial](https://discourse.processing.org/t/new-version-of-p5-j5-johnny-five-robotics-supports-just-about-any-old-arduino-now-with-webserial/22636)

<div class="topic-metadata">

**Author:** [@monteslu](https://discourse.processing.org/u/monteslu)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 8:55pm UTC](https://discourse.processing.org/t/new-version-of-p5-j5-johnny-five-robotics-supports-just-about-any-old-arduino-now-with-webserial/22636 "2020-07-27T20:55:54Z")

</div>

No server needed. Robotics (nodebots) completely in browser with WebSerial or WebUSB Demo of using a small oled screen and arduino UNO: https://twitter.com/monteslu/status/1283439166408155136 Here’s the repo: https:…

---

## [Keep the strokeWeight() constant using scale](https://discourse.processing.org/t/keep-the-strokeweight-constant-using-scale/22611)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [July 27, 2020, 8:48pm UTC](https://discourse.processing.org/t/keep-the-strokeweight-constant-using-scale/22611 "2020-07-27T20:48:21Z")

</div>

Hi people; When I use scale, the function scales the strokeWeight(); too, how can avoid it? void setup() { size(640,480); rectMode(CENTER); } void draw() { rect(50,50,50,50); scale(2,2); rect(50,50,50,50); …

---

## [First Person View Cam (FPVCam)](https://discourse.processing.org/t/first-person-view-cam-fpvcam/22816)

<div class="topic-metadata">

**Author:** [@LuisFerreira](https://discourse.processing.org/u/LuisFerreira)\
**Replies:** 10\
**Last updated:** [July 27, 2020, 8:06pm UTC](https://discourse.processing.org/t/first-person-view-cam-fpvcam/22816 "2020-07-27T20:06:00Z")

</div>

Hello everyone, I spent some time searching for ways or libraries to move a camera with the WASD keys but i could never find something, until now… I didn’t want to reinvent the wheel, and since Peasycam is one of the mo…

---

## [Alpha mask between objects](https://discourse.processing.org/t/alpha-mask-between-objects/22403)

<div class="topic-metadata">

**Author:** [@orgcaos](https://discourse.processing.org/u/orgcaos)\
**Replies:** 6\
**Last updated:** [July 27, 2020, 6:25pm UTC](https://discourse.processing.org/t/alpha-mask-between-objects/22403 "2020-07-27T18:25:49Z")

</div>

Hello guys! I hope you are safe :slight\_smile: I’m trying to hide a part of a shape I did using alpha mask but I have no idea how to achieve it. My current result looks like that: I want the black shape to act l…

---

## [A random pouch system (infinite)](https://discourse.processing.org/t/a-random-pouch-system-infinite/22865)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [July 27, 2020, 2:00pm UTC](https://discourse.processing.org/t/a-random-pouch-system-infinite/22865 "2020-07-27T14:00:16Z")

</div>

Hi! I recently got obsessed with tetris and I just started making it on processing (full graphical version with hold and next-in-line feature. If you ever played a game of original tetris (or an accurate remake) you wil…

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

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