# Latest

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

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

**Page:** 413

---

## [Which jar should I be using?](https://discourse.processing.org/t/which-jar-should-i-be-using/16412)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 4\
**Last updated:** [December 15, 2019, 8:50pm UTC](https://discourse.processing.org/t/which-jar-should-i-be-using/16412 "2019-12-15T20:50:02Z")

</div>

I keep running into errors that involve Processing functions when I try to port to Android. I use Android Studio and use the Processing IDE to export an Android project, then take the sketch code and insert it into a fr…

---

## [Resize Processing canvas in JavaFX window](https://discourse.processing.org/t/resize-processing-canvas-in-javafx-window/16353)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 6:03pm UTC](https://discourse.processing.org/t/resize-processing-canvas-in-javafx-window/16353 "2019-12-15T18:03:23Z")

</div>

I am wondering how I can resize the processing canvas that’s contained in my JavaFX app. Processing.java: @Override public void settings() { size(0,0,FX2D); fullScreen(); } @Override …

---

## [Changing the colour of an SVG file?](https://discourse.processing.org/t/changing-the-colour-of-an-svg-file/16338)

<div class="topic-metadata">

**Author:** [@B\_s](https://discourse.processing.org/u/B_s)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 5:47pm UTC](https://discourse.processing.org/t/changing-the-colour-of-an-svg-file/16338 "2019-12-15T17:47:34Z")

</div>

Hi, I am trying to the change the colour of an svg file. I have been able to do this however it also changes the colour of some rectangle which I’m not sure why it is there. Here is a screenshot of what it looks like. Ba…

---

## [@Chrisir Clipboard functionality](https://discourse.processing.org/t/chrisir-clipboard-functionality/16421)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 5:12pm UTC](https://discourse.processing.org/t/chrisir-clipboard-functionality/16421 "2019-12-15T17:12:29Z")

</div>

Struggling a bit with some code you posted original post: // https: // forum.processing.org/two/discussion/27473/paste-and-copy-text#latest // https: // forum.processing.org/two/discussion/17270/why-this-getx-method-…

---

## [What do you think about this program I did?](https://discourse.processing.org/t/what-do-you-think-about-this-program-i-did/16383)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 2\
**Last updated:** [December 15, 2019, 1:15pm UTC](https://discourse.processing.org/t/what-do-you-think-about-this-program-i-did/16383 "2019-12-15T13:15:06Z")

</div>

Activate the camera and have fun! hahaha! Click in the image of video :X Greetings from Brazil! https://editor.p5js.org/willianxz/full/Ac8W2BgRW

---

## [Problem in coding can't understand it](https://discourse.processing.org/t/problem-in-coding-cant-understand-it/16363)

<div class="topic-metadata">

**Author:** [@NourAdel205](https://discourse.processing.org/u/NourAdel205)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 8:54am UTC](https://discourse.processing.org/t/problem-in-coding-cant-understand-it/16363 "2019-12-15T08:54:47Z")

</div>

so i coded this to allow me to make planets around the sun but it gives me error THE CODE:- planet sun; planet earth; void setup(){ size (1000,1000); sun= new planet(width/2,height/2,40,#FFBC13); earth=new planet…

---

## [Cannot make a static reference to the non-static field Bee.pos](https://discourse.processing.org/t/cannot-make-a-static-reference-to-the-non-static-field-bee-pos/16414)

<div class="topic-metadata">

**Author:** [@Wattscanaan10](https://discourse.processing.org/u/Wattscanaan10)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 8:49am UTC](https://discourse.processing.org/t/cannot-make-a-static-reference-to-the-non-static-field-bee-pos/16414 "2019-12-15T08:49:11Z")

</div>

Hello, i am trying to code a program that simulates nature. I am trying to use the variable Bee.pos inside of the class Food, but when i do, it gives me “Cannot make a static reference to the non-static field Bee.pos”. A…

---

## [Any suggestions for an MFA program](https://discourse.processing.org/t/any-suggestions-for-an-mfa-program/16382)

<div class="topic-metadata">

**Author:** [@wsnicol](https://discourse.processing.org/u/wsnicol)\
**Replies:** 2\
**Last updated:** [December 15, 2019, 4:26am UTC](https://discourse.processing.org/t/any-suggestions-for-an-mfa-program/16382 "2019-12-15T04:26:29Z")

</div>

Not sure if this is an appropriate post and I apologize if it isn’t. I am considering going back to school for an M.F.A. I have a B.S. degree in Mathematics and a B.F.A. with a concentration on Drawing and Painting and …

---

## [Vehicle-Like Movement](https://discourse.processing.org/t/vehicle-like-movement/16308)

<div class="topic-metadata">

**Author:** [@hamp](https://discourse.processing.org/u/hamp)\
**Replies:** 6\
**Last updated:** [December 15, 2019, 1:48am UTC](https://discourse.processing.org/t/vehicle-like-movement/16308 "2019-12-15T01:48:30Z")

</div>

I have a rectangle, which I want to move like a car. I can get it to move in cardinal directions, and can get it to rotate. However, I can’t seem to get it to work for me when I try and make it move in the direction it i…

---

## [3D objects render as flat, no depth/shading at all](https://discourse.processing.org/t/3d-objects-render-as-flat-no-depth-shading-at-all/16408)

<div class="topic-metadata">

**Author:** [@thejoelpatrol](https://discourse.processing.org/u/thejoelpatrol)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 1:49am UTC](https://discourse.processing.org/t/3d-objects-render-as-flat-no-depth-shading-at-all/16408 "2019-12-15T01:49:34Z")

</div>

I’m having trouble figuring out why some models appear with 3D shading, as expected, and some are flat with no depth. Here’s a minimal example with two models that don’t/do work: PShape bunny; PShape ladybug; void setu…

---

## [Thread issue with while (true)](https://discourse.processing.org/t/thread-issue-with-while-true/16410)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 1:27am UTC](https://discourse.processing.org/t/thread-issue-with-while-true/16410 "2019-12-15T01:27:02Z")

</div>

when I run a while (true) inside a thread It only works if the condition play = 1 is met in the beginning. but if play = 0 in the beginning, in the future of the program when play == 1 what is inside while is not runni…

---

## [How can we create mechanical relationships between 3D objects?](https://discourse.processing.org/t/how-can-we-create-mechanical-relationships-between-3d-objects/16285)

<div class="topic-metadata">

**Author:** [@optiq](https://discourse.processing.org/u/optiq)\
**Replies:** 4\
**Last updated:** [December 15, 2019, 12:55am UTC](https://discourse.processing.org/t/how-can-we-create-mechanical-relationships-between-3d-objects/16285 "2019-12-15T00:55:35Z")

</div>

I do all my engineering design in Solidworks and would like to feature models with moving parts. For example say I designed a pair of scissors, how can I add a hinge relationship between the two parts? Can I do this by…

---

## [It´s possible to decompose 3D graphics to video 2D to get UV´s?](https://discourse.processing.org/t/it-s-possible-to-decompose-3d-graphics-to-video-2d-to-get-uv-s/16315)

<div class="topic-metadata">

**Author:** [@TATTLER](https://discourse.processing.org/u/TATTLER)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 12:50am UTC](https://discourse.processing.org/t/it-s-possible-to-decompose-3d-graphics-to-video-2d-to-get-uv-s/16315 "2019-12-15T00:50:53Z")

</div>

I don´t know if it possible to do, but I will try to explain what I want to do.The graphics generated in 3D: I would like to decompose (unwrap) on 2D video like this to obtain the UV for a a Sphere, Imagine that th…

---

## [Need to get drawing under picture](https://discourse.processing.org/t/need-to-get-drawing-under-picture/16344)

<div class="topic-metadata">

**Author:** [@keeg23](https://discourse.processing.org/u/keeg23)\
**Replies:** 9\
**Last updated:** [December 14, 2019, 5:23pm UTC](https://discourse.processing.org/t/need-to-get-drawing-under-picture/16344 "2019-12-14T17:23:48Z")

</div>

The code I have now I am having trouble getting the actual drawing under the picture, was told it may be the mousepressed section but could not solve the problem thank you! PImage myElonStart, myMonroe, myLennon, select…

---

## [Error using a normal python code in python mode](https://discourse.processing.org/t/error-using-a-normal-python-code-in-python-mode/16389)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [December 14, 2019, 5:06pm UTC](https://discourse.processing.org/t/error-using-a-normal-python-code-in-python-mode/16389 "2019-12-14T17:06:58Z")

</div>

Hi I’ve written a Code to recognize a number. It works fine for a other editor but in python mode I get the error “Maybe there’s an unclosed paren or quote mark somewhere before this line?” Here is my code so far: imp…

---

## [P5.js documentation suggestions](https://discourse.processing.org/t/p5-js-documentation-suggestions/16016)

<div class="topic-metadata">

**Author:** [@natkuhn](https://discourse.processing.org/u/natkuhn)\
**Replies:** 2\
**Last updated:** [December 14, 2019, 12:30pm UTC](https://discourse.processing.org/t/p5-js-documentation-suggestions/16016 "2019-12-14T12:30:29Z")

</div>

Hi, I stumbled on p5.js because I wanted to use p5.sound on a React project. (I didn’t spot another sound library with the pan() feature, which I need.) It looks like a very cool resource and community. I can see that a …

---

## [Calling a parents function in a child object](https://discourse.processing.org/t/calling-a-parents-function-in-a-child-object/16384)

<div class="topic-metadata">

**Author:** [@J0R1AN](https://discourse.processing.org/u/J0R1AN)\
**Replies:** 10\
**Last updated:** [December 14, 2019, 11:39am UTC](https://discourse.processing.org/t/calling-a-parents-function-in-a-child-object/16384 "2019-12-14T11:39:59Z")

</div>

Hi there, I’ve been working on a bigger project but ran into a bit of a problem when trying to organize my functions in the correct objects. The problem is that I cannot seem to call a function that is defined in a pare…

---

## [Video library problem with RP4](https://discourse.processing.org/t/video-library-problem-with-rp4/16372)

<div class="topic-metadata">

**Author:** [@jdarias](https://discourse.processing.org/u/jdarias)\
**Replies:** 3\
**Last updated:** [December 14, 2019, 3:19am UTC](https://discourse.processing.org/t/video-library-problem-with-rp4/16372 "2019-12-14T03:19:02Z")

</div>

Installed processing on my Raspberrry Pi 4 following the instructions to Install Processing onto existing installation Downloaded the processing video library, ran the sketch i´m working on, and it doesn´t work (same co…

---

## [How to compare two 2d arrays and check if a value is in it](https://discourse.processing.org/t/how-to-compare-two-2d-arrays-and-check-if-a-value-is-in-it/16376)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 1\
**Last updated:** [December 14, 2019, 3:16am UTC](https://discourse.processing.org/t/how-to-compare-two-2d-arrays-and-check-if-a-value-is-in-it/16376 "2019-12-14T03:16:48Z")

</div>

so, i have a grid of objects and when the mouse enters they disappear, how ever when the mouse enters other object it reappears, I’ve searched for a solution in the 2D arrays, how ever I don’t understand them that much……

---

## [Does p5.js or processing have any commercial use?](https://discourse.processing.org/t/does-p5-js-or-processing-have-any-commercial-use/16377)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 6:02pm UTC](https://discourse.processing.org/t/does-p5-js-or-processing-have-any-commercial-use/16377 "2019-12-13T18:02:55Z")

</div>

Does p5.js or processing have any commercial use? If so, what type of business do you generally use?

---

## [How can i make walls that are solid](https://discourse.processing.org/t/how-can-i-make-walls-that-are-solid/16347)

<div class="topic-metadata">

**Author:** [@Original](https://discourse.processing.org/u/Original)\
**Replies:** 3\
**Last updated:** [December 13, 2019, 4:09pm UTC](https://discourse.processing.org/t/how-can-i-make-walls-that-are-solid/16347 "2019-12-13T16:09:21Z")

</div>

I am new to processing I am making a maze where you have to press the mouse to see it and i dnt know how to make walls that have collision is there anyone that can help float x = 5; float y = 55; PImage img; void set…

---

## [Can't run exported 32-bit windows app](https://discourse.processing.org/t/cant-run-exported-32-bit-windows-app/16351)

<div class="topic-metadata">

**Author:** [@ronnyDD](https://discourse.processing.org/u/ronnyDD)\
**Replies:** 5\
**Last updated:** [December 13, 2019, 2:38pm UTC](https://discourse.processing.org/t/cant-run-exported-32-bit-windows-app/16351 "2019-12-13T14:38:27Z")

</div>

I have almost nothing written in my program, 64-bit version runs perfectly, but when i export a 32-bit version in a 32-bit processing version, it shows an error when i run it: OpenGL ES Error Can’t find the Intel graph…

---

## [saveFrame in Android (code share)](https://discourse.processing.org/t/saveframe-in-android-code-share/16371)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 1:38pm UTC](https://discourse.processing.org/t/saveframe-in-android-code-share/16371 "2019-12-13T13:38:04Z")

</div>

The saveFrame function does not work on Android. Here is a workaround. import android.os.Environment; int tel = 0, x; boolean no\_loop = true; String my\_folder = "my\_frames"; // Must be an existing folder one level ab…

---

## [Problems with the video.size (number1, number2) function;](https://discourse.processing.org/t/problems-with-the-video-size-number1-number2-function/16331)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 7\
**Last updated:** [December 13, 2019, 12:36pm UTC](https://discourse.processing.org/t/problems-with-the-video-size-number1-number2-function/16331 "2019-12-13T12:36:21Z")

</div>

Now in 2019, for reasons of some update of P5.JS or browsers, the video.size function (number1, number2); Does not work, breaking or code. Here is the error: undefined p5.js: 61127 Uncaught IndexSizeError: Failed to …

---

## [Interactivity and scenes](https://discourse.processing.org/t/interactivity-and-scenes/16354)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 4\
**Last updated:** [December 13, 2019, 7:46am UTC](https://discourse.processing.org/t/interactivity-and-scenes/16354 "2019-12-13T07:46:58Z")

</div>

Hi everybody, I’m on the last step to finish my sketch, but losing my head with somoething I don’t get. Sketch has scene1, that lasts 5 seconds. Then, scene 2 has a button that activates animation called scene 3. Final…

---

## [How to append in a two dimensional array?](https://discourse.processing.org/t/how-to-append-in-a-two-dimensional-array/16359)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 5:51am UTC](https://discourse.processing.org/t/how-to-append-in-a-two-dimensional-array/16359 "2019-12-13T05:51:52Z")

</div>

I have a two dimensional array and I’m trying to append new values but I can’t figure out how to int\[\]\[\] prv = {{1},{1}}; int objX; int objY; void setup(){ size(200, 200) } void draw() { objX = mouseX; objY = mouseY…

---

## [P5py-write p5.js sketch in python](https://discourse.processing.org/t/p5py-write-p5-js-sketch-in-python/16358)

<div class="topic-metadata">

**Author:** [@AndersonBY](https://discourse.processing.org/u/AndersonBY)\
**Replies:** 0\
**Last updated:** [December 13, 2019, 3:59am UTC](https://discourse.processing.org/t/p5py-write-p5-js-sketch-in-python/16358 "2019-12-13T03:59:17Z")

</div>

Hello guys I’ve made a simple project called p5py. It lets you write p5.js sketch in python. I’ve been using this to teach my students to learn programming for more than one year. And it’s quite easy to use. Students do…

---

## [Running Python Code in a Browser](https://discourse.processing.org/t/running-python-code-in-a-browser/236)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 8\
**Last updated:** [December 13, 2019, 4:27am UTC](https://discourse.processing.org/t/running-python-code-in-a-browser/236 "2019-12-13T04:27:37Z")

</div>

So it’s basically all in the title. Does processing.js work with python, is there some other way to do this, etc. Anything helps.

---

## [Good practice / revisioning / template / backup](https://discourse.processing.org/t/good-practice-revisioning-template-backup/7615)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 16\
**Last updated:** [December 13, 2019, 3:36am UTC](https://discourse.processing.org/t/good-practice-revisioning-template-backup/7615 "2019-12-13T03:36:42Z")

</div>

my english is not good enough for a tutorial, but i have a idea about a good practice beginner info sticky revisioning it could be a good idea even for small tests to start with a revisioning system easy just as so…

---

## [Multiple arduino inputs](https://discourse.processing.org/t/multiple-arduino-inputs/16275)

<div class="topic-metadata">

**Author:** [@neneeangulo](https://discourse.processing.org/u/neneeangulo)\
**Replies:** 6\
**Last updated:** [December 13, 2019, 1:52am UTC](https://discourse.processing.org/t/multiple-arduino-inputs/16275 "2019-12-13T01:52:44Z")

</div>

Hi! I am trying to use flex sensors to change the position of a drawing in processing. I got one of the flex sensors to work and move the drawing, but it moves all the parts of the drawing that should be controlled by d…

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

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