# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=572

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

**Page:** 573

---

## [From Graphics to HTML in div](https://discourse.processing.org/t/from-graphics-to-html-in-div/4646)

<div class="topic-metadata">

**Author:** [@Charles\_Tech](https://discourse.processing.org/u/Charles_Tech)\
**Replies:** 10\
**Last updated:** [October 20, 2018, 9:02am UTC](https://discourse.processing.org/t/from-graphics-to-html-in-div/4646 "2018-10-20T09:02:58Z")

</div>

Hi all, I’m in WEBGL mode which doesn’t support image() (in 0.5.16 anyway) - how can I load a graphics into a an html div? JS Fiddle here Thanks, Charles

---

## [What are the most efficient sizes for Variables/Arrays?](https://discourse.processing.org/t/what-are-the-most-efficient-sizes-for-variables-arrays/4164)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 5\
**Last updated:** [October 20, 2018, 1:06am UTC](https://discourse.processing.org/t/what-are-the-most-efficient-sizes-for-variables-arrays/4164 "2018-10-20T01:06:34Z")

</div>

What im asking exactly is, which would be the most efficient sizes for Arrays. For numbers from 0 - 2^32 numbers it would be an int, for 0 - 2^64 it would be long, but how does that work for arrays? A perfekt answer woul…

---

## [.dat file does not exist](https://discourse.processing.org/t/dat-file-does-not-exist/4651)

<div class="topic-metadata">

**Author:** [@rva1945](https://discourse.processing.org/u/rva1945)\
**Replies:** 2\
**Last updated:** [October 19, 2018, 8:48pm UTC](https://discourse.processing.org/t/dat-file-does-not-exist/4651 "2018-10-19T20:48:40Z")

</div>

Is there anyway of checking of the file exists prior to loadBytes()? Inicially the file does not exist and the sketch stops. Thanks

---

## [Make a ball move at a speed to where the mouse is clicked](https://discourse.processing.org/t/make-a-ball-move-at-a-speed-to-where-the-mouse-is-clicked/4652)

<div class="topic-metadata">

**Author:** [@kome](https://discourse.processing.org/u/kome)\
**Replies:** 1\
**Last updated:** [October 19, 2018, 6:20pm UTC](https://discourse.processing.org/t/make-a-ball-move-at-a-speed-to-where-the-mouse-is-clicked/4652 "2018-10-19T18:20:03Z")

</div>

I’m new to processing and I’m trying to move a ball (an ellipse) to the position of where the mouse is clicked but I don’t what it to jump there . I want it to move there at a certain speed . int golfBallX = 200; int g…

---

## [Make the object move in the circle (asteroids game)](https://discourse.processing.org/t/make-the-object-move-in-the-circle-asteroids-game/4606)

<div class="topic-metadata">

**Author:** [@nhghi](https://discourse.processing.org/u/nhghi)\
**Replies:** 14\
**Last updated:** [October 19, 2018, 5:56pm UTC](https://discourse.processing.org/t/make-the-object-move-in-the-circle-asteroids-game/4606 "2018-10-19T17:56:04Z")

</div>

i have an object like an arrow and if i want to move all the arrow to move in the circle how can i do it

---

## [Apk not working](https://discourse.processing.org/t/apk-not-working/4643)

<div class="topic-metadata">

**Author:** [@Quix](https://discourse.processing.org/u/Quix)\
**Replies:** 1\
**Last updated:** [October 19, 2018, 4:17pm UTC](https://discourse.processing.org/t/apk-not-working/4643 "2018-10-19T16:17:07Z")

</div>

hi, i tried to export signed app but when i put the apk file on my phone i can’t open it

---

## [\[SOLVED\] PeasyCam raises NoSuchMethodError for PApplet::registerDraw when using Intellij](https://discourse.processing.org/t/solved-peasycam-raises-nosuchmethoderror-for-papplet-registerdraw-when-using-intellij/4535)

<div class="topic-metadata">

**Author:** [@ReflectiveOperation](https://discourse.processing.org/u/ReflectiveOperation)\
**Replies:** 3\
**Last updated:** [October 19, 2018, 3:58pm UTC](https://discourse.processing.org/t/solved-peasycam-raises-nosuchmethoderror-for-papplet-registerdraw-when-using-intellij/4535 "2018-10-19T15:58:34Z")

</div>

Hi, trying to move my project into Intelij\*, but I can’t get PeasyCam to work. I’ve added the library to the project, and it correctly recognizes the PeasyCam type, but when I run the sketch I get the following runtimeE…

---

## [Custom shape not filled correctly with WEBGL](https://discourse.processing.org/t/custom-shape-not-filled-correctly-with-webgl/4631)

<div class="topic-metadata">

**Author:** [@UnGast](https://discourse.processing.org/u/UnGast)\
**Replies:** 1\
**Last updated:** [October 19, 2018, 1:38pm UTC](https://discourse.processing.org/t/custom-shape-not-filled-correctly-with-webgl/4631 "2018-10-19T13:38:59Z")

</div>

When executing this in the default canvas mode, the “notch” in the shape is displayed correctly. But in webgl mode the whole shape is filled like a rectangle. Is it not possible to draw such shapes in webgl? https://edi…

---

## [How to access the inbuilt adb server of Processing Android?](https://discourse.processing.org/t/how-to-access-the-inbuilt-adb-server-of-processing-android/4627)

<div class="topic-metadata">

**Author:** [@rajduino](https://discourse.processing.org/u/rajduino)\
**Replies:** 0\
**Last updated:** [October 19, 2018, 9:37am UTC](https://discourse.processing.org/t/how-to-access-the-inbuilt-adb-server-of-processing-android/4627 "2018-10-19T09:37:48Z")

</div>

So I am using Processing in Android mode, everything is fine… but using USB debugging is so last generation!! So I found that you can use ADB over TCPIP and you can establish the connection using ADB from your terminal, …

---

## [How can I access object method inside other object?](https://discourse.processing.org/t/how-can-i-access-object-method-inside-other-object/4609)

<div class="topic-metadata">

**Author:** [@enonod](https://discourse.processing.org/u/enonod)\
**Replies:** 5\
**Last updated:** [October 19, 2018, 8:54am UTC](https://discourse.processing.org/t/how-can-i-access-object-method-inside-other-object/4609 "2018-10-19T08:54:41Z")

</div>

Within DPanel I have added two objects, captionBar and btnClose and have called their display() methods successfully as shown in DPanel.display(). I have attempted to bring in a third object via the DPanel method addObje…

---

## [How to make game say you won?](https://discourse.processing.org/t/how-to-make-game-say-you-won/4560)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 7\
**Last updated:** [October 19, 2018, 2:26am UTC](https://discourse.processing.org/t/how-to-make-game-say-you-won/4560 "2018-10-19T02:26:43Z")

</div>

I want to make it so when the ball hits the white finish box it says you win and restarts the code. //Varaibles for images PImage frankenstein,ghost; PImage startscreen; //variables for start screen int screensizex,scre…

---

## [Uploading recorded audio to web server (node.js, express)](https://discourse.processing.org/t/uploading-recorded-audio-to-web-server-node-js-express/4569)

<div class="topic-metadata">

**Author:** [@candyjdavis](https://discourse.processing.org/u/candyjdavis)\
**Replies:** 2\
**Last updated:** [October 19, 2018, 2:05am UTC](https://discourse.processing.org/t/uploading-recorded-audio-to-web-server-node-js-express/4569 "2018-10-19T02:05:09Z")

</div>

I have an audio file recorder, created in p5.js, similar to what has been created in the p5 Record Save Audio example page. Using node, I am trying to find a good way to save that audio file to the server as a .wav or .…

---

## [Save an image from display window coordinates](https://discourse.processing.org/t/save-an-image-from-display-window-coordinates/4610)

<div class="topic-metadata">

**Author:** [@Daniel\_Tex](https://discourse.processing.org/u/Daniel_Tex)\
**Replies:** 4\
**Last updated:** [October 19, 2018, 12:54am UTC](https://discourse.processing.org/t/save-an-image-from-display-window-coordinates/4610 "2018-10-19T00:54:25Z")

</div>

How to save an image from the display window within coordinates? (Such as x \> 0 && x \< 100 && y \> 100 && y \< 200).

---

## [Creating game using Aurdino and Processing](https://discourse.processing.org/t/creating-game-using-aurdino-and-processing/4612)

<div class="topic-metadata">

**Author:** [@japoiu](https://discourse.processing.org/u/japoiu)\
**Replies:** 0\
**Last updated:** [October 18, 2018, 6:41pm UTC](https://discourse.processing.org/t/creating-game-using-aurdino-and-processing/4612 "2018-10-18T18:41:37Z")

</div>

I have written the code for a game using Arduino and Processing where the ball hits the blocks and we get points and a paddle bounces the ball. If the ball misses the paddle and moves out the game ends. I have a button w…

---

## [Cropping shape of movie into a circle](https://discourse.processing.org/t/cropping-shape-of-movie-into-a-circle/4586)

<div class="topic-metadata">

**Author:** [@moonspacedancer](https://discourse.processing.org/u/moonspacedancer)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 10:15pm UTC](https://discourse.processing.org/t/cropping-shape-of-movie-into-a-circle/4586 "2018-10-18T22:15:26Z")

</div>

Hi, I am trying to play only a circle shape of my movie and not sure where to start… my overall basic concept right now is that when i zoom into a sphere the movie is inside playing in the center in the shape of a circle…

---

## [Need help with rotating a shape](https://discourse.processing.org/t/need-help-with-rotating-a-shape/4548)

<div class="topic-metadata">

**Author:** [@rebelcoder](https://discourse.processing.org/u/rebelcoder)\
**Replies:** 10\
**Last updated:** [October 18, 2018, 9:51pm UTC](https://discourse.processing.org/t/need-help-with-rotating-a-shape/4548 "2018-10-18T21:51:27Z")

</div>

Hi guys I am new to processing. I am trying to make a spaceship in an asteroid game. I have to make the spaceship using the 4 points using quad shape. The spaceship moves across the screen which is pretty simple by chang…

---

## [Object to object referencing](https://discourse.processing.org/t/object-to-object-referencing/4598)

<div class="topic-metadata">

**Author:** [@jakstb](https://discourse.processing.org/u/jakstb)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 7:33pm UTC](https://discourse.processing.org/t/object-to-object-referencing/4598 "2018-10-18T19:33:51Z")

</div>

Hi, I have problem referencing to a object from within another object. Here is my code that is a bit simplified to only show my problem; class Team { String team; int elements; int maxElements; Bubble\[\] b; …

---

## [Multiple shaders](https://discourse.processing.org/t/multiple-shaders/4595)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 6\
**Last updated:** [October 18, 2018, 5:36pm UTC](https://discourse.processing.org/t/multiple-shaders/4595 "2018-10-18T17:36:44Z")

</div>

is there a better solution to create a sketch using multiple shaders? PShader myShader, pixelate; PImage img; PGraphics pg, buf; void settings() { size(1000, 1000, P3D); } void setup() { myShader = loadShader("gli…

---

## [Help with void draw](https://discourse.processing.org/t/help-with-void-draw/4592)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 4:32pm UTC](https://discourse.processing.org/t/help-with-void-draw/4592 "2018-10-18T16:32:18Z")

</div>

What is a simple way to put something in void draw but only play it once (although it keeps updating?) In my code, I want to play a video but the video can be switched to a different video. The problem with this is that …

---

## [Trojan alert on downloading 3.4 AND 3.3.7!](https://discourse.processing.org/t/trojan-alert-on-downloading-3-4-and-3-3-7/4387)

<div class="topic-metadata">

**Author:** [@jb0815](https://discourse.processing.org/u/jb0815)\
**Replies:** 6\
**Last updated:** [October 18, 2018, 10:33am UTC](https://discourse.processing.org/t/trojan-alert-on-downloading-3-4-and-3-3-7/4387 "2018-10-18T10:33:52Z")

</div>

Both versions have been removed from windows 10 defender as including TrojanDownloader:JS/Jasobfus.B!ml What’s going on. Is it a serious alert or not. And if not, when will programmers fix it ?

---

## [Array object doesn't work](https://discourse.processing.org/t/array-object-doesnt-work/4584)

<div class="topic-metadata">

**Author:** [@rva1945](https://discourse.processing.org/u/rva1945)\
**Replies:** 4\
**Last updated:** [October 18, 2018, 12:17am UTC](https://discourse.processing.org/t/array-object-doesnt-work/4584 "2018-10-18T00:17:41Z")

</div>

Hi: I used this example as a guide https://processing.org/examples/arrayobjects.html but my sketch hangs the Java windows and I have to close the window. Turnout\[\] aTurnouts; void setup() { size(1024,500); aTurno…

---

## [Adb not working, looking for ant](https://discourse.processing.org/t/adb-not-working-looking-for-ant/4475)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 3\
**Last updated:** [October 17, 2018, 11:56pm UTC](https://discourse.processing.org/t/adb-not-working-looking-for-ant/4475 "2018-10-17T23:56:34Z")

</div>

I love these cryptic names for packages related to android. I use Android Studio and Processing. Android Studio started misbehaving about the same time that google started bugging me to upgrade. I finally gave in and …

---

## [Depth Sorting and PShape](https://discourse.processing.org/t/depth-sorting-and-pshape/1730)

<div class="topic-metadata">

**Author:** [@Stephcraft](https://discourse.processing.org/u/Stephcraft)\
**Replies:** 13\
**Last updated:** [October 17, 2018, 10:18pm UTC](https://discourse.processing.org/t/depth-sorting-and-pshape/1730 "2018-10-17T22:18:47Z")

</div>

Am I doing something wrong or hint(ENABLE\_DEPTH\_SORT); only works with beginShape() and endShape() and not with PShape. If I am not wrong, and this is a issue, how can I do depth sort myself on PShapes ? Screenshot, red…

---

## [Missing language/ library?](https://discourse.processing.org/t/missing-language-library/4576)

<div class="topic-metadata">

**Author:** [@ricodevs](https://discourse.processing.org/u/ricodevs)\
**Replies:** 2\
**Last updated:** [October 17, 2018, 8:56pm UTC](https://discourse.processing.org/t/missing-language-library/4576 "2018-10-17T20:56:01Z")

</div>

Hey, I tride to copy a code from p5 preferences to make a button. I got some error saying some of the codewords were missing. Im wondering if there is some library or language I’m missing. var button function setup() {…

---

## [Play field boundary for a: rect for loop](https://discourse.processing.org/t/play-field-boundary-for-a-rect-for-loop/4487)

<div class="topic-metadata">

**Author:** [@SolDrakibane](https://discourse.processing.org/u/SolDrakibane)\
**Replies:** 5\
**Last updated:** [October 17, 2018, 8:39pm UTC](https://discourse.processing.org/t/play-field-boundary-for-a-rect-for-loop/4487 "2018-10-17T20:39:12Z")

</div>

Alright, so for my assignment i need to make a Memory Card game. However, one of the first things i need to wrap my head around is the boundary. I need to be able to loop the cards inside the playField. I also need to m…

---

## [Video within a shape (or alpha mask)](https://discourse.processing.org/t/video-within-a-shape-or-alpha-mask/663)

<div class="topic-metadata">

**Author:** [@rossig7](https://discourse.processing.org/u/rossig7)\
**Replies:** 8\
**Last updated:** [October 17, 2018, 8:07pm UTC](https://discourse.processing.org/t/video-within-a-shape-or-alpha-mask/663 "2018-10-17T20:07:00Z")

</div>

Hello everyone!, I´m rather new into processing, but I have experience coding. I want to put the video streaming withing a an irregular shape (it doesn´t have to be a rectangle). My approach, I did a b&w mask image with…

---

## [Help for a code](https://discourse.processing.org/t/help-for-a-code/4561)

<div class="topic-metadata">

**Author:** [@singenya](https://discourse.processing.org/u/singenya)\
**Replies:** 1\
**Last updated:** [October 17, 2018, 5:23pm UTC](https://discourse.processing.org/t/help-for-a-code/4561 "2018-10-17T17:23:10Z")

</div>

hello I need help on a code, I’m trying to make a line that would move from the top to bottom and when it reach the bottom it get back to the top. I’ve done this and achieved making it get down but I can’t manage to ma…

---

## [\[SOLVED\] Apply a shader to a geometry](https://discourse.processing.org/t/solved-apply-a-shader-to-a-geometry/4556)

<div class="topic-metadata">

**Author:** [@fmichelini](https://discourse.processing.org/u/fmichelini)\
**Replies:** 2\
**Last updated:** [October 17, 2018, 2:44pm UTC](https://discourse.processing.org/t/solved-apply-a-shader-to-a-geometry/4556 "2018-10-17T14:44:29Z")

</div>

I’m currently trying to add a shader to a 3D geometry, but it gets applied to the canvas instead. I can’t understand what I am missing, any help would be very appreciated. Here’s my code: https://codepen.io/kekkorider/…

---

## [Increasing memory issue](https://discourse.processing.org/t/increasing-memory-issue/4557)

<div class="topic-metadata">

**Author:** [@gerome](https://discourse.processing.org/u/gerome)\
**Replies:** 2\
**Last updated:** [October 17, 2018, 2:38pm UTC](https://discourse.processing.org/t/increasing-memory-issue/4557 "2018-10-17T14:38:12Z")

</div>

Hi there, when I start my sketch it needs less than 5 GB of Ram and after one or two hours this increases up to more than 25 GB. I set the limit to 26 GB. The sketch is quite huge but there is no acculmulation of loadin…

---

## [\[SOLVED\] G4P options in second window problem](https://discourse.processing.org/t/solved-g4p-options-in-second-window-problem/4552)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 4\
**Last updated:** [October 17, 2018, 1:54pm UTC](https://discourse.processing.org/t/solved-g4p-options-in-second-window-problem/4552 "2018-10-17T13:54:26Z")

</div>

when i use basic ( reduced from example ) code all works. import g4p\_controls.\*; GOption option0, option1, option2; public void setup() { size(500,500); createGUI(); } public void draw() { background(100, 100, 2…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=571)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=573)
