# Latest

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

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

**Page:** 271

---

## [Custom blendMode math?](https://discourse.processing.org/t/custom-blendmode-math/26562)

<div class="topic-metadata">

**Author:** [@tinywitchdraws](https://discourse.processing.org/u/tinywitchdraws)\
**Replies:** 1\
**Last updated:** [December 28, 2020, 7:23pm UTC](https://discourse.processing.org/t/custom-blendmode-math/26562 "2020-12-28T19:23:45Z")

</div>

I’m working on a little image processing app, and I want to try building a custom blend mode. Specifically, I want to use Divide (Newcolor= A/B)in my sketch, and p5js doesn’t have it-- is there a way for me to make it? …

---

## [Custom svg files don't render?](https://discourse.processing.org/t/custom-svg-files-dont-render/26434)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 7\
**Last updated:** [December 28, 2020, 3:14pm UTC](https://discourse.processing.org/t/custom-svg-files-dont-render/26434 "2020-12-28T15:14:09Z")

</div>

so i’m just testing out how processing renders svg files and for some reason it will only work with test ones i’ve downloaded from the internet, and the custom ones i exported from inkscape will compile but don’t show up…

---

## [Custom svg files don't render](https://discourse.processing.org/t/custom-svg-files-dont-render/26480)

<div class="topic-metadata">

**Author:** [@canslp](https://discourse.processing.org/u/canslp)\
**Replies:** 3\
**Last updated:** [December 28, 2020, 3:13pm UTC](https://discourse.processing.org/t/custom-svg-files-dont-render/26480 "2020-12-28T15:13:21Z")

</div>

made a post about this a couple days ago but i couldn’t get the actual data past the spam filter so i’m trying again. i can’t get any custom made svgs to render in processing. test ones i download from the internet work …

---

## [Can someone tell me what is KB error and of course with solution (memory issue)](https://discourse.processing.org/t/can-someone-tell-me-what-is-kb-error-and-of-course-with-solution-memory-issue/26554)

<div class="topic-metadata">

**Author:** [@clay21](https://discourse.processing.org/u/clay21)\
**Replies:** 17\
**Last updated:** [December 28, 2020, 1:43pm UTC](https://discourse.processing.org/t/can-someone-tell-me-what-is-kb-error-and-of-course-with-solution-memory-issue/26554 "2020-12-28T13:43:49Z")

</div>

Hello i got like kb error i guess im not giving enough ram for java and i dont know how can i give more can someone tell me how :slight\_smile: Thank you Already

---

## [Real-Time Py and Processing](https://discourse.processing.org/t/real-time-py-and-processing/26551)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 3\
**Last updated:** [December 28, 2020, 12:28pm UTC](https://discourse.processing.org/t/real-time-py-and-processing/26551 "2020-12-28T12:28:57Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, I’m looking for a solution that can send in real-time an array from python to processing. I think that i may use the OSC, but I’m a begi…

---

## [Asteroid game errors](https://discourse.processing.org/t/asteroid-game-errors/26478)

<div class="topic-metadata">

**Author:** [@gmoangher](https://discourse.processing.org/u/gmoangher)\
**Replies:** 1\
**Last updated:** [December 28, 2020, 10:27am UTC](https://discourse.processing.org/t/asteroid-game-errors/26478 "2020-12-28T10:27:21Z")

</div>

I got weird error messages on my code. I’m trying to make an asteroid game prototype, and most of the time when I shoot an asteroid it gives me a message that shouldn’t be there. I’ve tried debugging multiple times. My c…

---

## [Cardioid drawer in Python mode](https://discourse.processing.org/t/cardioid-drawer-in-python-mode/26544)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [December 27, 2020, 11:24pm UTC](https://discourse.processing.org/t/cardioid-drawer-in-python-mode/26544 "2020-12-27T23:24:44Z")

</div>

---

## [I am making a project where the ball follows when i click the mouse, but that is not happening. Can anyone help?](https://discourse.processing.org/t/i-am-making-a-project-where-the-ball-follows-when-i-click-the-mouse-but-that-is-not-happening-can-anyone-help/26352)

<div class="topic-metadata">

**Author:** [@880597](https://discourse.processing.org/u/880597)\
**Replies:** 3\
**Last updated:** [December 27, 2020, 11:17pm UTC](https://discourse.processing.org/t/i-am-making-a-project-where-the-ball-follows-when-i-click-the-mouse-but-that-is-not-happening-can-anyone-help/26352 "2020-12-27T23:17:41Z")

</div>

I do not know how to fix the blue color only in the box, also I am trying to use mouse clicked, so that when the mouse is clicked the ball follows it and returns back to the rectangle, but that is not happening. Can some…

---

## [NullPointerException with arrays help](https://discourse.processing.org/t/nullpointerexception-with-arrays-help/26543)

<div class="topic-metadata">

**Author:** [@Ironbatman1](https://discourse.processing.org/u/Ironbatman1)\
**Replies:** 3\
**Last updated:** [December 27, 2020, 10:57pm UTC](https://discourse.processing.org/t/nullpointerexception-with-arrays-help/26543 "2020-12-27T22:57:59Z")

</div>

Hey so it’s an array of Test (custom object/class) called tests and I’m trying to do clearing with all objects in the array hence the for loop. so I set them and when I try to use it breaks and gives a null pointer at te…

---

## [Finding a fixpoint for the corner of a moveable camera in P3D Need urgent help](https://discourse.processing.org/t/finding-a-fixpoint-for-the-corner-of-a-moveable-camera-in-p3d-need-urgent-help/26482)

<div class="topic-metadata">

**Author:** [@SailorToei](https://discourse.processing.org/u/SailorToei)\
**Replies:** 13\
**Last updated:** [December 27, 2020, 2:20pm UTC](https://discourse.processing.org/t/finding-a-fixpoint-for-the-corner-of-a-moveable-camera-in-p3d-need-urgent-help/26482 "2020-12-27T14:20:34Z")

</div>

Hello everybody, currently I am working on a game in 3D where the camera moves when there’s deviation of mouseX from the middle of the screen. It’s turning around the character, and when c is pressed, it switches to ego-…

---

## [Void function is returning values but shouldn't](https://discourse.processing.org/t/void-function-is-returning-values-but-shouldnt/26528)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 6\
**Last updated:** [December 27, 2020, 1:23pm UTC](https://discourse.processing.org/t/void-function-is-returning-values-but-shouldnt/26528 "2020-12-27T13:23:15Z")

</div>

Hi there, as far as I know, void functions do not return values. However, when I run the code below, the wind vector gets smaller and smaller with each frame, because the va value is returned back as new wind vector. …

---

## [Use an existing canvas with p5js](https://discourse.processing.org/t/use-an-existing-canvas-with-p5js/26113)

<div class="topic-metadata">

**Author:** [@niko](https://discourse.processing.org/u/niko)\
**Replies:** 5\
**Last updated:** [December 27, 2020, 10:48am UTC](https://discourse.processing.org/t/use-an-existing-canvas-with-p5js/26113 "2020-12-27T10:48:51Z")

</div>

Hi, I would like to use an existing canvas with p5js. It seems not possible in a simple way. The reason I want to do that is: I don’t want p5js to insert a canvas and make my already displayed page to suddenly extend. …

---

## [Nth degree pendulum](https://discourse.processing.org/t/nth-degree-pendulum/26411)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 12\
**Last updated:** [December 27, 2020, 10:24am UTC](https://discourse.processing.org/t/nth-degree-pendulum/26411 "2020-12-27T10:24:48Z")

</div>

I made an nth degree pendulum, but it moves very fast. This means there is something wrong with the equations of motion: for (int i = 1; i \<circles.size(); i++) { circles.get(i).acceleration.set(0, (-g / lenghts…

---

## [How to change images graphically when receiving data?](https://discourse.processing.org/t/how-to-change-images-graphically-when-receiving-data/26523)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 2\
**Last updated:** [December 27, 2020, 4:50am UTC](https://discourse.processing.org/t/how-to-change-images-graphically-when-receiving-data/26523 "2020-12-27T04:50:06Z")

</div>

Good afternoon, I am using a terminal to send data via com-port. I work under the protocol. In the project, the Displaydata tab contains the string “case 35” - the # symbol. What to write between case 35: and break; …

---

## [Path finding algorithm?](https://discourse.processing.org/t/path-finding-algorithm/26522)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 3\
**Last updated:** [December 26, 2020, 7:40pm UTC](https://discourse.processing.org/t/path-finding-algorithm/26522 "2020-12-26T19:40:33Z")

</div>

I made a simple background maker for my phone, I’m thinking about making one the fills the whole screen. should I use a pathfinding algorithm, and if so which one? https://www.openprocessing.org/sketch/1049907 I put som…

---

## [Generate random not overlapping triangles](https://discourse.processing.org/t/generate-random-not-overlapping-triangles/25875)

<div class="topic-metadata">

**Author:** [@nktlst](https://discourse.processing.org/u/nktlst)\
**Replies:** 9\
**Last updated:** [December 26, 2020, 7:24pm UTC](https://discourse.processing.org/t/generate-random-not-overlapping-triangles/25875 "2020-12-26T19:24:09Z")

</div>

Hi! I trying to understand how this task can be solved: I need generate number of triangles (any size) in any random place on sketch, but i need them not overlapping with each other and may be with constant distance fro…

---

## [Addition of all integer numbers from 1 - 100 (loop)](https://discourse.processing.org/t/addition-of-all-integer-numbers-from-1-100-loop/26237)

<div class="topic-metadata">

**Author:** [@hullah](https://discourse.processing.org/u/hullah)\
**Replies:** 5\
**Last updated:** [December 26, 2020, 1:47am UTC](https://discourse.processing.org/t/addition-of-all-integer-numbers-from-1-100-loop/26237 "2020-12-26T01:47:41Z")

</div>

hey guys, I am an absolutely beginner who wants to add all integer numbers from 1 to 100 ( in a loop) and print the result with println(). I know that I should use a for() loop but how can I add each element of 1-100 in…

---

## [P5js project as a png?](https://discourse.processing.org/t/p5js-project-as-a-png/26519)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 5\
**Last updated:** [December 26, 2020, 2:28pm UTC](https://discourse.processing.org/t/p5js-project-as-a-png/26519 "2020-12-26T14:28:47Z")

</div>

I made this sketch https://www.openprocessing.org/sketch/1049735 and I want to put it as my iPhone’s wallpaper. If I screenshot it will look very bad on my phone, Is there a way I can download the canvas as a png? btw …

---

## [Using String\[ : 10\] in Java mode](https://discourse.processing.org/t/using-string-10-in-java-mode/26520)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 1\
**Last updated:** [December 26, 2020, 1:05pm UTC](https://discourse.processing.org/t/using-string-10-in-java-mode/26520 "2020-12-26T13:05:50Z")

</div>

I started learning processing.py and found a String\[int\] function (String.charAt( ) ) and String\[ : int \] which returns the string before int. Can I do something similar to it in Java mode (normal processing) without us…

---

## [Image-processing library in version 1.7.0](https://discourse.processing.org/t/image-processing-library-in-version-1-7-0/26378)

<div class="topic-metadata">

**Author:** [@Milchreis](https://discourse.processing.org/u/Milchreis)\
**Replies:** 1\
**Last updated:** [December 26, 2020, 12:41pm UTC](https://discourse.processing.org/t/image-processing-library-in-version-1-7-0/26378 "2020-12-26T12:41:44Z")

</div>

Hey ho, today I released the new version of the image-processing library. This release provides the new following algorithms: Sabattier effect (Thanks to uheinema for the code) Sine-Wave effect (Thanks to Joseph…

---

## [Snek program (Snake)](https://discourse.processing.org/t/snek-program-snake/26510)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [December 26, 2020, 11:58am UTC](https://discourse.processing.org/t/snek-program-snake/26510 "2020-12-26T11:58:28Z")

</div>

A simple snake (snek) program! It is 39 lines long (while auto formatting it ctrl + t). It way shorter then my previous attempts! It’s all thanks to PVectors! int w = 20, h = 20, scl = 30, maxAge = 10, x = 10, y = 10, d…

---

## [A problem that I cannot figure out: "Wrapping shapes across a screen". (Iterative math and loops problem.)](https://discourse.processing.org/t/a-problem-that-i-cannot-figure-out-wrapping-shapes-across-a-screen-iterative-math-and-loops-problem/26501)

<div class="topic-metadata">

**Author:** [@jstodd](https://discourse.processing.org/u/jstodd)\
**Replies:** 3\
**Last updated:** [December 26, 2020, 6:55am UTC](https://discourse.processing.org/t/a-problem-that-i-cannot-figure-out-wrapping-shapes-across-a-screen-iterative-math-and-loops-problem/26501 "2020-12-26T06:55:01Z")

</div>

Update: Solved! I reposted the working code as the answer. Thanks u/marcusround A problem that I cannot figure out: “Wrapping shapes across a screen”. (Iterative math and loops problem.) This sounds like a very easy pr…

---

## [Can't set my own emulator builds for Processing: Default Emulator Performance Issue](https://discourse.processing.org/t/cant-set-my-own-emulator-builds-for-processing-default-emulator-performance-issue/26504)

<div class="topic-metadata">

**Author:** [@Ethycs](https://discourse.processing.org/u/Ethycs)\
**Replies:** 2\
**Last updated:** [December 26, 2020, 2:18am UTC](https://discourse.processing.org/t/cant-set-my-own-emulator-builds-for-processing-default-emulator-performance-issue/26504 "2020-12-26T02:18:31Z")

</div>

Hey all, I’m trying to get the emulator working on my system. I have an AMD cpu. Running the emulator (which only builds to arm by default) is too slow for this system. I can’t figure out how to connect to AVDs I make w…

---

## [P5.js website example pages not building](https://discourse.processing.org/t/p5-js-website-example-pages-not-building/26515)

<div class="topic-metadata">

**Author:** [@Mohan2k1](https://discourse.processing.org/u/Mohan2k1)\
**Replies:** 0\
**Last updated:** [December 25, 2020, 11:27pm UTC](https://discourse.processing.org/t/p5-js-website-example-pages-not-building/26515 "2020-12-25T23:27:54Z")

</div>

I am new to open source contribution and I forked and cloned p5.js website and this are the steps i followed cd src/data/examples/build\_examples npm install cd …/…/…/…/ npm install npm run watch Website is run…

---

## [Learning python](https://discourse.processing.org/t/learning-python/26492)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 8\
**Last updated:** [December 25, 2020, 8:04pm UTC](https://discourse.processing.org/t/learning-python/26492 "2020-12-25T20:04:15Z")

</div>

Hi! I decided to learn python! Is Processing.py a viable learning tool? How hard is it to switch from processing.py to normal python? Is it recommended? Are there any resources for learning python? Could I use processi…

---

## [How to create a vector with 4 parameters?](https://discourse.processing.org/t/how-to-create-a-vector-with-4-parameters/26509)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 4\
**Last updated:** [December 25, 2020, 5:19pm UTC](https://discourse.processing.org/t/how-to-create-a-vector-with-4-parameters/26509 "2020-12-25T17:19:36Z")

</div>

How do I create a vector with 4 varriables stored within? (position x & y, speed x & y) so something like //moving the ball ball = new PVector( ball.x + ball.z, ball.y + ball.w, ball.z\*friction, ball.w\*friction); circl…

---

## [Line-Line intersection for y=mx+c](https://discourse.processing.org/t/line-line-intersection-for-y-mx-c/26484)

<div class="topic-metadata">

**Author:** [@dave307](https://discourse.processing.org/u/dave307)\
**Replies:** 4\
**Last updated:** [December 25, 2020, 2:51pm UTC](https://discourse.processing.org/t/line-line-intersection-for-y-mx-c/26484 "2020-12-25T14:51:48Z")

</div>

I was wondering how to make a function that you give it two line equations in the form y=mx+c you pass it the gradient and y-intercept of both. then it returns a vector which is the point in which the two given lines w…

---

## [Android mode install issue](https://discourse.processing.org/t/android-mode-install-issue/23276)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 4\
**Last updated:** [October 10, 2020, 3:52pm UTC](https://discourse.processing.org/t/android-mode-install-issue/23276 "2020-10-10T15:52:11Z")

</div>

I’m trying to install Android mode on my new windows 10 notebook. I’m receiving an “android sdk could not be loaded” error. I moved the sdk from my previous notebook and manually pointed to it but running the sketches, w…

---

## [Live updating counter (need to use strings or array?)](https://discourse.processing.org/t/live-updating-counter-need-to-use-strings-or-array/26472)

<div class="topic-metadata">

**Author:** [@codestruggles](https://discourse.processing.org/u/codestruggles)\
**Replies:** 11\
**Last updated:** [December 25, 2020, 5:50am UTC](https://discourse.processing.org/t/live-updating-counter-need-to-use-strings-or-array/26472 "2020-12-25T05:50:24Z")

</div>

Hello, I’m having some trouble figuring out how to make a simple number counter that is connected to events in airtable. Basically, i have a table which tracks at what time an event occured and i would like to have a c…

---

## [Is Processing the same as p5.js? \[Solved\]](https://discourse.processing.org/t/is-processing-the-same-as-p5-js-solved/26497)

<div class="topic-metadata">

**Author:** [@STAGfm](https://discourse.processing.org/u/STAGfm)\
**Replies:** 5\
**Last updated:** [December 25, 2020, 5:48am UTC](https://discourse.processing.org/t/is-processing-the-same-as-p5-js-solved/26497 "2020-12-25T05:48:44Z")

</div>

Hello, maybe im to stupid to get it, but is there a difference between p5.js and processing or are they the same or what? I just want to get started, but i want to start with the newest one or better one. My guess is, t…

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

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