# Latest

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

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

**Page:** 286

---

## [G4P Gpanel and Gview](https://discourse.processing.org/t/g4p-gpanel-and-gview/25474)

<div class="topic-metadata">

**Author:** [@Piko](https://discourse.processing.org/u/Piko)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 10:50am UTC](https://discourse.processing.org/t/g4p-gpanel-and-gview/25474 "2020-11-17T10:50:55Z")

</div>

Hi, I want to add a GView area on a Gpanel but when i do this the color of the Gpanelcolors is darker. It looks like a shade on the view area. I would like to have this transparent to match the real backgroundcolor of…

---

## [Radix 32+ Converter](https://discourse.processing.org/t/radix-32-converter/25435)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 4\
**Last updated:** [November 17, 2020, 4:03am UTC](https://discourse.processing.org/t/radix-32-converter/25435 "2020-11-17T04:03:11Z")

</div>

I want to convert any base to any base. I’m using this right now: void setup(){ println(baseConversion("JAVA",36,10)); } String baseConversion(String input,int fromBase,int toBase){ return reverseCase(Integer.toSt…

---

## [Collision with images](https://discourse.processing.org/t/collision-with-images/25475)

<div class="topic-metadata">

**Author:** [@TheGullible1](https://discourse.processing.org/u/TheGullible1)\
**Replies:** 2\
**Last updated:** [November 16, 2020, 10:57pm UTC](https://discourse.processing.org/t/collision-with-images/25475 "2020-11-16T22:57:26Z")

</div>

trying to use: //collision detection boolean Colarrow(arrow other){ return (abs(this.x-other.x) \<50 && abs(this.y-other.y)\<150); } this is how I’m trying to use it: arrow phil, grill; void setup(){ …

---

## [Implementing an image when it bounces off the wall it will show which direction its going to](https://discourse.processing.org/t/implementing-an-image-when-it-bounces-off-the-wall-it-will-show-which-direction-its-going-to/25469)

<div class="topic-metadata">

**Author:** [@TheGullible1](https://discourse.processing.org/u/TheGullible1)\
**Replies:** 9\
**Last updated:** [November 16, 2020, 10:17pm UTC](https://discourse.processing.org/t/implementing-an-image-when-it-bounces-off-the-wall-it-will-show-which-direction-its-going-to/25469 "2020-11-16T22:17:04Z")

</div>

So what im trying to do is when the image bounces of the wall it will show which direction its going to. (my images are arrows btw) eg if it bounces of the right wall the arrow will point left and vice versa and if it …

---

## [For loop doesn't load properly](https://discourse.processing.org/t/for-loop-doesnt-load-properly/25463)

<div class="topic-metadata">

**Author:** [@Gianni](https://discourse.processing.org/u/Gianni)\
**Replies:** 10\
**Last updated:** [November 16, 2020, 9:50pm UTC](https://discourse.processing.org/t/for-loop-doesnt-load-properly/25463 "2020-11-16T21:50:19Z")

</div>

Hello everyone! I’m working on a sketch that looks for collision between a grid of points and a random polygon. I’m trying to find a way to make sure the colliding points always match a chosen number. because the polyg…

---

## [Need help with game project](https://discourse.processing.org/t/need-help-with-game-project/24993)

<div class="topic-metadata">

**Author:** [@claudinho7](https://discourse.processing.org/u/claudinho7)\
**Replies:** 43\
**Last updated:** [November 16, 2020, 9:01pm UTC](https://discourse.processing.org/t/need-help-with-game-project/24993 "2020-11-16T21:01:21Z")

</div>

hello, i’m working on a little game for a uni project and i got stuck trying to move an object using keyboards. depending where i move the void keypressed part the key might get spammed or not show at all, but the obje…

---

## [Someone please help solving a problem : shooting bullets](https://discourse.processing.org/t/someone-please-help-solving-a-problem-shooting-bullets/21210)

<div class="topic-metadata">

**Author:** [@Nis](https://discourse.processing.org/u/Nis)\
**Replies:** 5\
**Last updated:** [November 16, 2020, 9:00pm UTC](https://discourse.processing.org/t/someone-please-help-solving-a-problem-shooting-bullets/21210 "2020-11-16T21:00:24Z")

</div>

https://editor.p5js.org/Nis\_Collect/sketches/U0p3GjOK1 Above is the link of my code.Please ckeck the code. The small circle(ellipse) which is inside of the big circle should be shooted towards the player(blue coloured)…

---

## [Spacing out obstacles](https://discourse.processing.org/t/spacing-out-obstacles/25467)

<div class="topic-metadata">

**Author:** [@ninjarick](https://discourse.processing.org/u/ninjarick)\
**Replies:** 1\
**Last updated:** [November 16, 2020, 7:23pm UTC](https://discourse.processing.org/t/spacing-out-obstacles/25467 "2020-11-16T19:23:27Z")

</div>

I’ve hit another snag with my code. As of now, I have the obstacles moving towards the player at random with this code. // Spawn obstacles if (random(1) \< 0.01) { obstacle.push(new Obstacle()); } Though this c…

---

## [Direction of Up vector with Camera, P3D](https://discourse.processing.org/t/direction-of-up-vector-with-camera-p3d/25434)

<div class="topic-metadata">

**Author:** [@jimyoung](https://discourse.processing.org/u/jimyoung)\
**Replies:** 4\
**Last updated:** [November 16, 2020, 3:45pm UTC](https://discourse.processing.org/t/direction-of-up-vector-with-camera-p3d/25434 "2020-11-16T15:45:33Z")

</div>

Hey everyone! Just looking at P3D here, and I noticed something that’s got me slightly confused. I am guessing it’s something simple, so I hope for some clarification. I have posted a quick example at the bottom. In Pro…

---

## [hint(DISABLE\_OPTIMIZED\_STROKE) & Processing Matrices](https://discourse.processing.org/t/hint-disable-optimized-stroke-processing-matrices/25442)

<div class="topic-metadata">

**Author:** [@Geo\_Pi](https://discourse.processing.org/u/Geo_Pi)\
**Replies:** 1\
**Last updated:** [November 16, 2020, 3:08pm UTC](https://discourse.processing.org/t/hint-disable-optimized-stroke-processing-matrices/25442 "2020-11-16T15:08:36Z")

</div>

Hello everybody, I have been struggling with this issue and I can’t seem to find a solution. I want to create a Sphere looking Particle system, using billboarding and a normal map for shading, to avoid having to handle…

---

## [Calling Sketches](https://discourse.processing.org/t/calling-sketches/25457)

<div class="topic-metadata">

**Author:** [@cpw](https://discourse.processing.org/u/cpw)\
**Replies:** 2\
**Last updated:** [November 16, 2020, 12:08pm UTC](https://discourse.processing.org/t/calling-sketches/25457 "2020-11-16T12:08:19Z")

</div>

Is there a way to call a sketch from another sketch? Thanks for any pointers. Chris

---

## [Low fps problem](https://discourse.processing.org/t/low-fps-problem/12313)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 15\
**Last updated:** [November 16, 2020, 8:56am UTC](https://discourse.processing.org/t/low-fps-problem/12313 "2020-11-16T08:56:50Z")

</div>

My sketch has 10 images, with stuff moving and so on, the problem is that even with the function frameRate(30) i only get 9 to 12 FPS. I had try the sketch on pretty good pc and the result is the same. The promp comand s…

---

## [How to draw a polygon, when x is getting bigger, its sides getting more](https://discourse.processing.org/t/how-to-draw-a-polygon-when-x-is-getting-bigger-its-sides-getting-more/24987)

<div class="topic-metadata">

**Author:** [@mengtong](https://discourse.processing.org/u/mengtong)\
**Replies:** 41\
**Last updated:** [November 16, 2020, 5:37am UTC](https://discourse.processing.org/t/how-to-draw-a-polygon-when-x-is-getting-bigger-its-sides-getting-more/24987 "2020-11-16T05:37:00Z")

</div>

Here is my code. I wang polygon’s sided gets more when x gets bigger. But it looks incorrect. Can someone help me check it. int points; int radius=100; void setup() { size(500, 500); points=mouseX/20; } void draw(…

---

## [Processing to p5.js sketch](https://discourse.processing.org/t/processing-to-p5-js-sketch/25449)

<div class="topic-metadata">

**Author:** [@femke](https://discourse.processing.org/u/femke)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 10:54pm UTC](https://discourse.processing.org/t/processing-to-p5-js-sketch/25449 "2020-11-15T22:54:06Z")

</div>

Hi all, I’m pretty new to coding and I’m trying to convert a processing file to a p5.js file but it keeps giving me an error. I know there’s something wrong wrong about the PVector but not sure what. Can somebody help…

---

## [Who help me i need code to move dc motor+encoder FROM HOME TO POSITION X ON TEXTBOX](https://discourse.processing.org/t/who-help-me-i-need-code-to-move-dc-motor-encoder-from-home-to-position-x-on-textbox/25411)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 9:45pm UTC](https://discourse.processing.org/t/who-help-me-i-need-code-to-move-dc-motor-encoder-from-home-to-position-x-on-textbox/25411 "2020-11-15T21:45:34Z")

</div>

HELLO who know codeto give me to add my project android mode i need to move dc motor+encoder from one point to x point i write on textbox end slider for speed and button forward ,rewerse any info tankyou ps for ardu…

---

## [Collision detection Ball](https://discourse.processing.org/t/collision-detection-ball/25210)

<div class="topic-metadata">

**Author:** [@MitchMitch](https://discourse.processing.org/u/MitchMitch)\
**Replies:** 44\
**Last updated:** [November 15, 2020, 8:51pm UTC](https://discourse.processing.org/t/collision-detection-ball/25210 "2020-11-15T20:51:51Z")

</div>

import static javax.swing.JOptionPane.showMessageDialog; import java.util.Random; Random rand = new Random(); float x = 450; float Ball = 0; int RandomSpawnWidth; float speedBall = 3; int score = 0; float speedPl…

---

## [Exporting 3D to SVG](https://discourse.processing.org/t/exporting-3d-to-svg/25102)

<div class="topic-metadata">

**Author:** [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Replies:** 7\
**Last updated:** [November 15, 2020, 8:44pm UTC](https://discourse.processing.org/t/exporting-3d-to-svg/25102 "2020-11-15T20:44:56Z")

</div>

I have some code snippets that allow me to export normal 2d drawings to svg output. Today I made a simple 3d drawing. I want to flatten and export it to an svg. I tried using my 2d boilerplate but it doesn’t work. W…

---

## [How to check a function for every single array](https://discourse.processing.org/t/how-to-check-a-function-for-every-single-array/25444)

<div class="topic-metadata">

**Author:** [@tea](https://discourse.processing.org/u/tea)\
**Replies:** 3\
**Last updated:** [November 15, 2020, 8:31pm UTC](https://discourse.processing.org/t/how-to-check-a-function-for-every-single-array/25444 "2020-11-15T20:31:31Z")

</div>

So I’m trying to make a platformer game where the platform is created in the set up in an array, and then I check the collision of the character and the platform with another function, like so: In the setup: void setup…

---

## [I just studied user defined function, got some trouble](https://discourse.processing.org/t/i-just-studied-user-defined-function-got-some-trouble/25405)

<div class="topic-metadata">

**Author:** [@mengtong](https://discourse.processing.org/u/mengtong)\
**Replies:** 17\
**Last updated:** [November 15, 2020, 7:59pm UTC](https://discourse.processing.org/t/i-just-studied-user-defined-function-got-some-trouble/25405 "2020-11-15T19:59:06Z")

</div>

I am trying to draw a picture like this. here is my code. I just start it. void setup() { size(800, 800); noStroke(); //No black outline around the circles } void draw() { final int CIRCLE\_SIZE = 20; final…

---

## [Creating a Pong using tutorials](https://discourse.processing.org/t/creating-a-pong-using-tutorials/25428)

<div class="topic-metadata">

**Author:** [@GalactusBR](https://discourse.processing.org/u/GalactusBR)\
**Replies:** 5\
**Last updated:** [November 15, 2020, 7:48pm UTC](https://discourse.processing.org/t/creating-a-pong-using-tutorials/25428 "2020-11-15T19:48:41Z")

</div>

homework policy \* asking questions I need help creating a Pong game that have Points system Victory and Loss condition “Ball” with physics simulation 2 player option 1 player option with a CPU Menu …

---

## [I need help with a code (timer)](https://discourse.processing.org/t/i-need-help-with-a-code-timer/25377)

<div class="topic-metadata">

**Author:** [@ruben89](https://discourse.processing.org/u/ruben89)\
**Replies:** 36\
**Last updated:** [November 15, 2020, 5:17pm UTC](https://discourse.processing.org/t/i-need-help-with-a-code-timer/25377 "2020-11-15T17:17:21Z")

</div>

I have this code and I want to make the square disappear when clicking a key and two seconds after clicking it, the square reappears in another position. Thanks! int cuadrado=60; float recX, recY; void setup() { fu…

---

## [Surface and length](https://discourse.processing.org/t/surface-and-length/25394)

<div class="topic-metadata">

**Author:** [@ala](https://discourse.processing.org/u/ala)\
**Replies:** 6\
**Last updated:** [November 15, 2020, 6:15am UTC](https://discourse.processing.org/t/surface-and-length/25394 "2020-11-15T06:15:43Z")

</div>

Hello, I have a problem. I have to write a program for designating the area and length of the edge of a color spot at the click of a mouse. I know that i must load a picture and and that the actions are after a click, …

---

## [Way to export regular executable files with Processing.js](https://discourse.processing.org/t/way-to-export-regular-executable-files-with-processing-js/25370)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 4\
**Last updated:** [November 15, 2020, 5:40am UTC](https://discourse.processing.org/t/way-to-export-regular-executable-files-with-processing-js/25370 "2020-11-15T05:40:49Z")

</div>

I know that Processing.js is no longer being developed but I must export my sketch as more like a regular executable program and less like an applet. First problem is what the system sees the sketch as on Windows: when …

---

## [Playing videos alternately](https://discourse.processing.org/t/playing-videos-alternately/25432)

<div class="topic-metadata">

**Author:** [@Johnny](https://discourse.processing.org/u/Johnny)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 4:00am UTC](https://discourse.processing.org/t/playing-videos-alternately/25432 "2020-11-15T04:00:38Z")

</div>

Hello! I am trying to play two videos alternately depending on the distance measurement of the ultrasonic sensor. This is my first time using both Arduino and processing, and I’m lost in setting values properly. I don’t …

---

## [How can I rotate the Sketch in 3D while its drawing](https://discourse.processing.org/t/how-can-i-rotate-the-sketch-in-3d-while-its-drawing/25389)

<div class="topic-metadata">

**Author:** [@ssdesign](https://discourse.processing.org/u/ssdesign)\
**Replies:** 8\
**Last updated:** [November 15, 2020, 12:32am UTC](https://discourse.processing.org/t/how-can-i-rotate-the-sketch-in-3d-while-its-drawing/25389 "2020-11-15T00:32:00Z")

</div>

Hi, I am trying to draw points in 3D space and while the sketch draws it, I want to continuously rotate the sketch so that I can view the dots in 3D space. Somehow I am not able to figure out how to do this. Here is m…

---

## [Sound library error](https://discourse.processing.org/t/sound-library-error/25424)

<div class="topic-metadata">

**Author:** [@joe\_processing](https://discourse.processing.org/u/joe_processing)\
**Replies:** 9\
**Last updated:** [November 14, 2020, 9:57pm UTC](https://discourse.processing.org/t/sound-library-error/25424 "2020-11-14T21:57:41Z")

</div>

Hi there! i have a problem in import sound to a code I wrote. i know there a lot of topics around the network on this issue but non of them helped me. some notes: mac. processing, latest edition. download processing…

---

## [Motorbike contructor help](https://discourse.processing.org/t/motorbike-contructor-help/25421)

<div class="topic-metadata">

**Author:** [@TheGullible1](https://discourse.processing.org/u/TheGullible1)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 2:37pm UTC](https://discourse.processing.org/t/motorbike-contructor-help/25421 "2020-11-14T14:37:55Z")

</div>

im trying to add a constructor to my code and I think I don’t understand how to do it my code: Motorbike redBike; Motorbike blueBike; void setup() //called only once at the start { size(500,100); Motorbike(30, RE…

---

## [How to organise git repository](https://discourse.processing.org/t/how-to-organise-git-repository/25393)

<div class="topic-metadata">

**Author:** [@enniofranco](https://discourse.processing.org/u/enniofranco)\
**Replies:** 4\
**Last updated:** [November 14, 2020, 10:02am UTC](https://discourse.processing.org/t/how-to-organise-git-repository/25393 "2020-11-14T10:02:37Z")

</div>

Hi all, I have seen git being used in the context of a single project. But my processing sketches are a collection of lots of small projects. With that in mind, could anyone help me with suggestions on how to structur…

---

## [java.lang.RuntimeException Java heap space error](https://discourse.processing.org/t/java-lang-runtimeexception-java-heap-space-error/25351)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.processing.org/u/ahmed)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 8:59am UTC](https://discourse.processing.org/t/java-lang-runtimeexception-java-heap-space-error/25351 "2020-11-14T08:59:20Z")

</div>

I am trying to import STL CAD file in processing but getting an error java.lang.outofmemoryerror java heap space. how to solve this issue ? i have increased my memory in Preferences tab to 10GB but issue still persist. …

---

## [DIY made Voice Interaction Weather Station on Raspberry Pi](https://discourse.processing.org/t/diy-made-voice-interaction-weather-station-on-raspberry-pi/25362)

<div class="topic-metadata">

**Author:** [@Makerhe](https://discourse.processing.org/u/Makerhe)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 8:46am UTC](https://discourse.processing.org/t/diy-made-voice-interaction-weather-station-on-raspberry-pi/25362 "2020-11-14T08:46:08Z")

</div>

Here is a DIY made Voice Interaction Weather Station on Raspberry Pi, it using the Voice Interaction hat for raspberry pi, with onboard speaker and mic, I would be happy to hear your suggestions:) Check my detail video …

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

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