# Latest

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

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

**Page:** 217

---

## [How to find automous agents within range](https://discourse.processing.org/t/how-to-find-automous-agents-within-range/30575)

<div class="topic-metadata">

**Author:** [@Goku557](https://discourse.processing.org/u/Goku557)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 11:07pm UTC](https://discourse.processing.org/t/how-to-find-automous-agents-within-range/30575 "2021-06-08T23:07:42Z")

</div>

\[sloved\] \` void seek(PVector target) { // only run if mousecursor is pressed if (mousePressed) { // if creatures are nerby target float nerby=(10); for (Creature c : creatures) { float …

---

## [Activate webcam x seconds after mouse is pressed (frameCount)](https://discourse.processing.org/t/activate-webcam-x-seconds-after-mouse-is-pressed-framecount/30585)

<div class="topic-metadata">

**Author:** [@saskia\_NL](https://discourse.processing.org/u/saskia_NL)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 9:03pm UTC](https://discourse.processing.org/t/activate-webcam-x-seconds-after-mouse-is-pressed-framecount/30585 "2021-06-08T21:03:32Z")

</div>

Hi all, I want to play a video and a few seconds into the video, I want the webcam to activate for 5 seconds and disappear again. I got it working to the point where the video plays and the webcam activates after 600 fr…

---

## [I don't find the saveFrame file (set its path)](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 6\
**Last updated:** [June 8, 2021, 9:01pm UTC](https://discourse.processing.org/t/i-dont-find-the-saveframe-file-set-its-path/30579 "2021-06-08T21:01:12Z")

</div>

I was looking for a way to save the image, so I found this sample code. I run it, but no file were saved on my hard drive. What am I missing? int x = 0; void draw() { background(204); if (x \< 100) { line(x, 0, x…

---

## [Rolling boulder code problem (complex animation)](https://discourse.processing.org/t/rolling-boulder-code-problem-complex-animation/30571)

<div class="topic-metadata">

**Author:** [@norm1](https://discourse.processing.org/u/norm1)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 8:34pm UTC](https://discourse.processing.org/t/rolling-boulder-code-problem-complex-animation/30571 "2021-06-08T20:34:55Z")

</div>

Doing an animation that requires a boulder to roll down a hill, then go to the right of the screen, then go back left and up the hill and stop. But once I get to the BoulderRollRight I cant go roll the boulder left becau…

---

## [How to use the innerhtml in js and the issue with secens maneger](https://discourse.processing.org/t/how-to-use-the-innerhtml-in-js-and-the-issue-with-secens-maneger/30572)

<div class="topic-metadata">

**Author:** [@momo](https://discourse.processing.org/u/momo)\
**Replies:** 0\
**Last updated:** [June 8, 2021, 3:45pm UTC](https://discourse.processing.org/t/how-to-use-the-innerhtml-in-js-and-the-issue-with-secens-maneger/30572 "2021-06-08T15:45:18Z")

</div>

Hi, I’m using scene manage.js to manage my different p5 sketches, so I have one HTML. I have a typewriter effect on the first page, when it goes to the next scene, I hope the text will disappear with the first scene. Ho…

---

## [Simulating rear lights of a car](https://discourse.processing.org/t/simulating-rear-lights-of-a-car/30533)

<div class="topic-metadata">

**Author:** [@Th3cG](https://discourse.processing.org/u/Th3cG)\
**Replies:** 5\
**Last updated:** [June 8, 2021, 6:55pm UTC](https://discourse.processing.org/t/simulating-rear-lights-of-a-car/30533 "2021-06-08T18:55:45Z")

</div>

Hi there, I wrote this messy code intended to simulate the behaviour of the rear lights of a car: //introducing variables //n manages the timing for left and right arrows int n; //m and on manage the timing for emerge…

---

## [Alternative to get() for faster performance?](https://discourse.processing.org/t/alternative-to-get-for-faster-performance/30228)

<div class="topic-metadata">

**Author:** [@codestruggles](https://discourse.processing.org/u/codestruggles)\
**Replies:** 8\
**Last updated:** [June 8, 2021, 5:41pm UTC](https://discourse.processing.org/t/alternative-to-get-for-faster-performance/30228 "2021-06-08T17:41:18Z")

</div>

Hello, i was wondering how it would be possible to replace the get(x,y,w,h) function with something else to enhance performance… i’m currently working on a project where i have to “degrade the quality” of a webcam image …

---

## [How to make hangman in Processing.py (Solved)](https://discourse.processing.org/t/how-to-make-hangman-in-processing-py-solved/30499)

<div class="topic-metadata">

**Author:** [@SilentStorm](https://discourse.processing.org/u/SilentStorm)\
**Replies:** 17\
**Last updated:** [June 8, 2021, 4:34pm UTC](https://discourse.processing.org/t/how-to-make-hangman-in-processing-py-solved/30499 "2021-06-08T16:34:59Z")

</div>

Hey all, so I’m trying to make a Hangman game in Processing.py and have written code for both how I want it to look, as well as separate code to run the game. The problem is combining the two in Processing. Is there a wa…

---

## [Anyone looking to collaborate with me on a few libraries?](https://discourse.processing.org/t/anyone-looking-to-collaborate-with-me-on-a-few-libraries/26372)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 6\
**Last updated:** [June 8, 2021, 3:46pm UTC](https://discourse.processing.org/t/anyone-looking-to-collaborate-with-me-on-a-few-libraries/26372 "2021-06-08T15:46:55Z")

</div>

Okay, so I have two…almost-libraries, that I’d like to develop into actual libraries. When I say “almost library”, I mean I wrote some code into a processing pde sketch. And, anytime I need to reuse that code in a sket…

---

## [Catching images](https://discourse.processing.org/t/catching-images/30565)

<div class="topic-metadata">

**Author:** [@processinggg](https://discourse.processing.org/u/processinggg)\
**Replies:** 5\
**Last updated:** [June 8, 2021, 9:11am UTC](https://discourse.processing.org/t/catching-images/30565 "2021-06-08T09:11:20Z")

</div>

Hello, I have difficulty with following code in Processing, I don’t know how to make the bar catch the images/objects that are falling from above. Here is the code float x = 100; float y = 500; Balken balken; //On…

---

## [Normalize and center coordinate system](https://discourse.processing.org/t/normalize-and-center-coordinate-system/30553)

<div class="topic-metadata">

**Author:** [@blakec](https://discourse.processing.org/u/blakec)\
**Replies:** 3\
**Last updated:** [June 8, 2021, 8:11am UTC](https://discourse.processing.org/t/normalize-and-center-coordinate-system/30553 "2021-06-08T08:11:39Z")

</div>

In my drawings, I’d like to set the xy axis centred in the middle of the screen and rescaled between -0.5 and 0.5 instead of using screen coordinates. That makes the drawing independent of screen resolution. I tried: f…

---

## [saveStrings creates a new file when exported application](https://discourse.processing.org/t/savestrings-creates-a-new-file-when-exported-application/30526)

<div class="topic-metadata">

**Author:** [@abatllei](https://discourse.processing.org/u/abatllei)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 8:10pm UTC](https://discourse.processing.org/t/savestrings-creates-a-new-file-when-exported-application/30526 "2021-06-07T20:10:19Z")

</div>

I’m programming a game where I want to save the final points, like a highscore. Same problem as this topic: https://discourse.processing.org/t/save-string-to-txt-file-when-the-program-is-a-standalone-application/26898?u=…

---

## [How do I write a (uint8\_t) data array via serial](https://discourse.processing.org/t/how-do-i-write-a-uint8-t-data-array-via-serial/30543)

<div class="topic-metadata">

**Author:** [@gerrikoio](https://discourse.processing.org/u/gerrikoio)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 6:40pm UTC](https://discourse.processing.org/t/how-do-i-write-a-uint8-t-data-array-via-serial/30543 "2021-06-07T18:40:01Z")

</div>

I am learning the hard way that in Processing a “byte” data type is -128 to 127 and that if dealing with unsigned data types like “uint8\_t” I need to use the signed integer data type. Now I am sure this question has bee…

---

## [Remove a object in the array of colors](https://discourse.processing.org/t/remove-a-object-in-the-array-of-colors/30521)

<div class="topic-metadata">

**Author:** [@kylu](https://discourse.processing.org/u/kylu)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 5:19pm UTC](https://discourse.processing.org/t/remove-a-object-in-the-array-of-colors/30521 "2021-06-07T17:19:31Z")

</div>

Hi! i’m working with a code, and i need to remove the color once it has been used. is a walker who takes on a color each time he begins his path. I need to make sure that the color not to repeat This is the class Pale…

---

## [Making a working liquid thermometer](https://discourse.processing.org/t/making-a-working-liquid-thermometer/30410)

<div class="topic-metadata">

**Author:** [@Valakas](https://discourse.processing.org/u/Valakas)\
**Replies:** 10\
**Last updated:** [June 7, 2021, 5:16pm UTC](https://discourse.processing.org/t/making-a-working-liquid-thermometer/30410 "2021-06-07T17:16:10Z")

</div>

Hello everyone. I have a code which receives a temperature and humidity value through the serial and I’m trying to use the temperature value to make a working liquid thermometer. As of right now, I managed to make it cha…

---

## [How do I change the size of an object with mouse](https://discourse.processing.org/t/how-do-i-change-the-size-of-an-object-with-mouse/30540)

<div class="topic-metadata">

**Author:** [@Hisoka](https://discourse.processing.org/u/Hisoka)\
**Replies:** 1\
**Last updated:** [June 7, 2021, 1:22pm UTC](https://discourse.processing.org/t/how-do-i-change-the-size-of-an-object-with-mouse/30540 "2021-06-07T13:22:31Z")

</div>

How do I change the size of an object, when the mouse is getting farther than the center of the canvas, the object gets bigger and when the mouse is getting closer to the center of the canvas, the object gets smaller I …

---

## [Active Processing program to simulate a planet orbiting around a sun](https://discourse.processing.org/t/active-processing-program-to-simulate-a-planet-orbiting-around-a-sun/30462)

<div class="topic-metadata">

**Author:** [@matto](https://discourse.processing.org/u/matto)\
**Replies:** 11\
**Last updated:** [June 7, 2021, 10:39am UTC](https://discourse.processing.org/t/active-processing-program-to-simulate-a-planet-orbiting-around-a-sun/30462 "2021-06-07T10:39:15Z")

</div>

Am trying to write a code to make my planet increase and decrease with respect to PI/2 and 3\*PI/2 as it orbits round the sun please any tips

---

## [Python vs java advantages](https://discourse.processing.org/t/python-vs-java-advantages/30468)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [June 7, 2021, 6:46am UTC](https://discourse.processing.org/t/python-vs-java-advantages/30468 "2021-06-07T06:46:55Z")

</div>

does one language have any advantage over the other ie performance or libraries?

---

## [Scale using cos/sin](https://discourse.processing.org/t/scale-using-cos-sin/30542)

<div class="topic-metadata">

**Author:** [@MacJ](https://discourse.processing.org/u/MacJ)\
**Replies:** 3\
**Last updated:** [June 7, 2021, 1:51am UTC](https://discourse.processing.org/t/scale-using-cos-sin/30542 "2021-06-07T01:51:13Z")

</div>

Hello so below is my code of a simple planet orbiting the sun final int SUN\_DIAM = 50; final int ORBIT\_X = 150; final int ORBIT\_Y = 35; final int PLANET\_DIAM = 25; final float SPEED = 0.03; float angle = 0; final …

---

## [Is there a way to change the thickness/width of line without using stroke weight?](https://discourse.processing.org/t/is-there-a-way-to-change-the-thickness-width-of-line-without-using-stroke-weight/30539)

<div class="topic-metadata">

**Author:** [@uniqueNoSpaces](https://discourse.processing.org/u/uniqueNoSpaces)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 1:27am UTC](https://discourse.processing.org/t/is-there-a-way-to-change-the-thickness-width-of-line-without-using-stroke-weight/30539 "2021-06-07T01:27:31Z")

</div>

Hello i’m looking for a way to change the thickness of line(x1,y1,x2,y2) without using stroke weight, because stroke weight affects all shapes on canvas while i just want it to affect the line itself. is there a way to…

---

## [Who can help me, how to place and object when mouse is clicked (SOLVED)](https://discourse.processing.org/t/who-can-help-me-how-to-place-and-object-when-mouse-is-clicked-solved/30492)

<div class="topic-metadata">

**Author:** [@Hisoka](https://discourse.processing.org/u/Hisoka)\
**Replies:** 5\
**Last updated:** [June 6, 2021, 4:07pm UTC](https://discourse.processing.org/t/who-can-help-me-how-to-place-and-object-when-mouse-is-clicked-solved/30492 "2021-06-06T16:07:28Z")

</div>

when I click on the mouse, the figure should be placed on the position that I clicked. After click, the logo should not be moved on the tips of the mouse point and should stay still on the position that the mouse was c…

---

## [Using object type as variable](https://discourse.processing.org/t/using-object-type-as-variable/30531)

<div class="topic-metadata">

**Author:** [@StainlessHolz](https://discourse.processing.org/u/StainlessHolz)\
**Replies:** 4\
**Last updated:** [June 6, 2021, 4:03pm UTC](https://discourse.processing.org/t/using-object-type-as-variable/30531 "2021-06-06T16:03:44Z")

</div>

Hi all, I´ve made a program where the user can manipulate data with nodes. You can add input, output and different manipulation nodes. It is like the shader editor from Blender or the program whith which you can progra…

---

## [Masking an array of videos](https://discourse.processing.org/t/masking-an-array-of-videos/30519)

<div class="topic-metadata">

**Author:** [@softailu](https://discourse.processing.org/u/softailu)\
**Replies:** 1\
**Last updated:** [June 6, 2021, 3:51pm UTC](https://discourse.processing.org/t/masking-an-array-of-videos/30519 "2021-06-06T15:51:01Z")

</div>

Hi! I go back to the forum for help. I’m with a project wanting to simulate with each click a different brush stroke, with a different color. Before helped me to generate the video array but now I want to mask each vid…

---

## [Help with Function (easing)](https://discourse.processing.org/t/help-with-function-easing/30527)

<div class="topic-metadata">

**Author:** [@tatyo](https://discourse.processing.org/u/tatyo)\
**Replies:** 3\
**Last updated:** [June 6, 2021, 11:03am UTC](https://discourse.processing.org/t/help-with-function-easing/30527 "2021-06-06T11:03:34Z")

</div>

Hi there! I am beginer to programming and i try to make a function for eg: easing: float x; float y; float easing = 0.005; void setup() { size(640, 360); } void easFunc(float a, float b, float c) { b = b+(a - b) …

---

## [Apk limit installation android](https://discourse.processing.org/t/apk-limit-installation-android/30525)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 0\
**Last updated:** [June 6, 2021, 8:58am UTC](https://discourse.processing.org/t/apk-limit-installation-android/30525 "2021-06-06T08:58:19Z")

</div>

Has anyone ever got to / or knows how to limit the installation of an apk with IMEI control?

---

## [When using P3D: "Could not run the sketch (Target VM failed to initialize)"](https://discourse.processing.org/t/when-using-p3d-could-not-run-the-sketch-target-vm-failed-to-initialize/8103)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 8\
**Last updated:** [June 6, 2021, 7:44am UTC](https://discourse.processing.org/t/when-using-p3d-could-not-run-the-sketch-target-vm-failed-to-initialize/8103 "2021-06-06T07:44:44Z")

</div>

Hi, since about a week I’m not able to run any sketches anymore in P3D mode on my Windows machine with Intel i5 6200U and HD 520 onboard graphics card. It has probably to do with the graphics driver after an automatic Wi…

---

## [Every time i use P3D this came out](https://discourse.processing.org/t/every-time-i-use-p3d-this-came-out/30515)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 6\
**Last updated:** [June 6, 2021, 7:41am UTC](https://discourse.processing.org/t/every-time-i-use-p3d-this-came-out/30515 "2021-06-06T07:41:22Z")

</div>

can’t find the intel graphics why!

---

## [Using Fisher-Yates Shuffle For Array](https://discourse.processing.org/t/using-fisher-yates-shuffle-for-array/30488)

<div class="topic-metadata">

**Author:** [@cottonchipper](https://discourse.processing.org/u/cottonchipper)\
**Replies:** 6\
**Last updated:** [June 6, 2021, 4:46am UTC](https://discourse.processing.org/t/using-fisher-yates-shuffle-for-array/30488 "2021-06-06T04:46:19Z")

</div>

I’ve got an array that I need to shuffle, but I need the results to be deterministic based on a seeded PRNG. I’m attempting to use the following code which I found at https://bost.ocks.org/mike/shuffle/ I’ve replaced “M…

---

## [Making Hangman Game in Processing.py](https://discourse.processing.org/t/making-hangman-game-in-processing-py/30495)

<div class="topic-metadata">

**Author:** [@SilentStorm](https://discourse.processing.org/u/SilentStorm)\
**Replies:** 1\
**Last updated:** [June 5, 2021, 8:33pm UTC](https://discourse.processing.org/t/making-hangman-game-in-processing-py/30495 "2021-06-05T20:33:04Z")

</div>

Hey all, so I’m trying to make a Hangman game in Processing.py and have written code for both how I want it to look, as well as separate code to run the game. The problem is combining the two in Processing. Is there a wa…

---

## [My video library always cant use](https://discourse.processing.org/t/my-video-library-always-cant-use/30516)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 1\
**Last updated:** [June 5, 2021, 4:56pm UTC](https://discourse.processing.org/t/my-video-library-always-cant-use/30516 "2021-06-05T16:56:16Z")

</div>

i do every thing right. it still not worked

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

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