# Latest

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

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

**Page:** 423

---

## [Finding the velocity at a specific point using the PixelFlow library](https://discourse.processing.org/t/finding-the-velocity-at-a-specific-point-using-the-pixelflow-library/15603)

<div class="topic-metadata">

**Author:** [@BongoTurtle](https://discourse.processing.org/u/BongoTurtle)\
**Replies:** 3\
**Last updated:** [November 23, 2019, 6:58am UTC](https://discourse.processing.org/t/finding-the-velocity-at-a-specific-point-using-the-pixelflow-library/15603 "2019-11-23T06:58:39Z")

</div>

How would I find the velocity at a specific point for the basic 2D flow like in the example: // FLUID SIMULATION EXAMPLE import com.thomasdiewald.pixelflow.java.DwPixelFlow; import com.thomasdiewald.pixelflow.java.fluid…

---

## [Backpropagation doesn't work properly](https://discourse.processing.org/t/backpropagation-doesnt-work-properly/15724)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [November 23, 2019, 5:55am UTC](https://discourse.processing.org/t/backpropagation-doesnt-work-properly/15724 "2019-11-23T05:55:15Z")

</div>

I got a problem with learning in Neuronal Networks again. I tried using backpropagation and created following two classes: class Neuron { float lastinputs\[\]; int id; float\[\] weights; Neuron(int id\_, int lengthw…

---

## [Does anybody have tips with smooth moving?](https://discourse.processing.org/t/does-anybody-have-tips-with-smooth-moving/15456)

<div class="topic-metadata">

**Author:** [@24stevek](https://discourse.processing.org/u/24stevek)\
**Replies:** 7\
**Last updated:** [November 23, 2019, 4:57am UTC](https://discourse.processing.org/t/does-anybody-have-tips-with-smooth-moving/15456 "2019-11-23T04:57:53Z")

</div>

Hi, I’m back with my second question:) I am currently making a zooming effect, by gradually increasing the size of an image. It does work well, but it kind of lags and the pixels get all mixed up; I don’t want to slow …

---

## [\[Android\] IPcaptue - I/O ERROR : Connection reset :: Why not?](https://discourse.processing.org/t/android-ipcaptue-i-o-error-connection-reset-why-not/15731)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [November 23, 2019, 1:35am UTC](https://discourse.processing.org/t/android-ipcaptue-i-o-error-connection-reset-why-not/15731 "2019-11-23T01:35:06Z")

</div>

Hi. I want to receive CCTV data as mjpeg. The smartphone works well when connected to WIFI. If you connect to LTE data instead of WIFI, it will stop after transmitting for about 2 seconds. After that, an error messag…

---

## [Allow people to vote in videos/streams on youtube](https://discourse.processing.org/t/allow-people-to-vote-in-videos-streams-on-youtube/15594)

<div class="topic-metadata">

**Author:** [@HAL989](https://discourse.processing.org/u/HAL989)\
**Replies:** 2\
**Last updated:** [November 23, 2019, 12:04am UTC](https://discourse.processing.org/t/allow-people-to-vote-in-videos-streams-on-youtube/15594 "2019-11-23T00:04:58Z")

</div>

Hello. I currently have some code working that reads a discussion page and looks for a keyword (!type), i’m wondering how exactly would i turn it into a thing to read: (preferably stream comments) or video comments. imp…

---

## [\[SOLVED\] Circle around a pixel](https://discourse.processing.org/t/solved-circle-around-a-pixel/1071)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 8\
**Last updated:** [November 22, 2019, 11:34pm UTC](https://discourse.processing.org/t/solved-circle-around-a-pixel/1071 "2019-11-22T23:34:27Z")

</div>

Hello everbody, I’m currently working on a project where I need to find a specific distance between a point and a line. To do that, I draw the line in green and start scanning each pixel around the point. This can take…

---

## [Forwarding and reversing time in physics sim](https://discourse.processing.org/t/forwarding-and-reversing-time-in-physics-sim/15597)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 10\
**Last updated:** [November 22, 2019, 11:14pm UTC](https://discourse.processing.org/t/forwarding-and-reversing-time-in-physics-sim/15597 "2019-11-22T23:14:43Z")

</div>

void update(){ steps = pos.size()-1; text (counter, 150,20); fill(255); text(index,200,10); fill(col); if(forward){ if(index==0){ if(pos.size()\>0){ counter = pos…

---

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

<div class="topic-metadata">

**Author:** [@Aelita](https://discourse.processing.org/u/Aelita)\
**Replies:** 4\
**Last updated:** [November 22, 2019, 10:36pm UTC](https://discourse.processing.org/t/interactivity-and-capture/15613 "2019-11-22T22:36:47Z")

</div>

Hi! I’m working on a project for university and I’m having some difficulties with Processing. Concept: There are two pictures and the program makes a transition by transparency from one picture to another, by moving the…

---

## [How to display a special font in Processing?](https://discourse.processing.org/t/how-to-display-a-special-font-in-processing/15459)

<div class="topic-metadata">

**Author:** [@z.chen](https://discourse.processing.org/u/z.chen)\
**Replies:** 8\
**Last updated:** [November 22, 2019, 8:57pm UTC](https://discourse.processing.org/t/how-to-display-a-special-font-in-processing/15459 "2019-11-22T20:57:18Z")

</div>

Hello, I downloaded this kind of font online, and I need to translate the input of others into this font in Processing and save the file in SVG format to the local folder. Cuz I need to upload the SVG file to my plotter …

---

## [Download/upload stats Monitor](https://discourse.processing.org/t/download-upload-stats-monitor/15582)

<div class="topic-metadata">

**Author:** [@FPAIS](https://discourse.processing.org/u/FPAIS)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 8:55pm UTC](https://discourse.processing.org/t/download-upload-stats-monitor/15582 "2019-11-22T20:55:23Z")

</div>

Hi, I would like to use my computer or browser download/upload stats (Mb/Kb downloaded in a certain time frame) in processing and visualize these in different ways. Does anyone have a clue on how I could access these v…

---

## [Getting the video library to work outside the PDE](https://discourse.processing.org/t/getting-the-video-library-to-work-outside-the-pde/15532)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 8:28pm UTC](https://discourse.processing.org/t/getting-the-video-library-to-work-outside-the-pde/15532 "2019-11-22T20:28:33Z")

</div>

How can I get the video library to work outside the pde. I can load a movie, I can hear the sound, but it is not displaying. I tried System.setProperty("java.library.path", "/java/libs/processing/video/macosx/gstreame…

---

## [FRC Networktabels](https://discourse.processing.org/t/frc-networktabels/15501)

<div class="topic-metadata">

**Author:** [@ooss](https://discourse.processing.org/u/ooss)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 8:15pm UTC](https://discourse.processing.org/t/frc-networktabels/15501 "2019-11-22T20:15:55Z")

</div>

I was wondering if anybody would know how to import the network tables for FRC python thing into processing so I can use it with processing. Sorry if this is not the best question or it does not have enough to give me an…

---

## [Particle text animations in p5js](https://discourse.processing.org/t/particle-text-animations-in-p5js/15487)

<div class="topic-metadata">

**Author:** [@poppyseeds](https://discourse.processing.org/u/poppyseeds)\
**Replies:** 5\
**Last updated:** [November 22, 2019, 6:56pm UTC](https://discourse.processing.org/t/particle-text-animations-in-p5js/15487 "2019-11-22T18:56:48Z")

</div>

I want to make my text consisting of smaller particles to make it look like the words are formed by a shoal of fish (like in the movie Finding Nemo if you remember that scene). So far, I have managed to use steering beha…

---

## [How do change the shape of a 'point' in p5js?](https://discourse.processing.org/t/how-do-change-the-shape-of-a-point-in-p5js/15492)

<div class="topic-metadata">

**Author:** [@poppyseeds](https://discourse.processing.org/u/poppyseeds)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 6:48pm UTC](https://discourse.processing.org/t/how-do-change-the-shape-of-a-point-in-p5js/15492 "2019-11-22T18:48:13Z")

</div>

I have created a text animation which has split the word into points using the font.toTextPoints() function. this function makes the points in circular shapes and only on the borders of the word. How can I change the cod…

---

## [Background color change with accelerometer](https://discourse.processing.org/t/background-color-change-with-accelerometer/15443)

<div class="topic-metadata">

**Author:** [@rhgrafix](https://discourse.processing.org/u/rhgrafix)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 5:21pm UTC](https://discourse.processing.org/t/background-color-change-with-accelerometer/15443 "2019-11-22T17:21:44Z")

</div>

Can anyone get https://p5js.org/examples/mobile-acceleration-color.html to work? I’ve tried it on multiple devices that have accelerometers and the background color does not change with movement, Thanks, R.L. Hamm

---

## [Trying to resize video from ipCapture - Processing (AndroidMode)](https://discourse.processing.org/t/trying-to-resize-video-from-ipcapture-processing-androidmode/15719)

<div class="topic-metadata">

**Author:** [@Veci](https://discourse.processing.org/u/Veci)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 5:11pm UTC](https://discourse.processing.org/t/trying-to-resize-video-from-ipcapture-processing-androidmode/15719 "2019-11-22T17:11:51Z")

</div>

I am streaming mjpg video over http . It works fine if the resolution of the video I am streaming is the same as the phones resolution (I’m displaying it on the background). The library ipcapture inhereits methods from P…

---

## [How to make bouncing balls?](https://discourse.processing.org/t/how-to-make-bouncing-balls/15465)

<div class="topic-metadata">

**Author:** [@Soloh](https://discourse.processing.org/u/Soloh)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 4:54pm UTC](https://discourse.processing.org/t/how-to-make-bouncing-balls/15465 "2019-11-22T16:54:38Z")

</div>

i have to do ball Flying left, and when it reach wall it return

---

## [Scale the whole screen content to the back](https://discourse.processing.org/t/scale-the-whole-screen-content-to-the-back/15712)

<div class="topic-metadata">

**Author:** [@lumicon9](https://discourse.processing.org/u/lumicon9)\
**Replies:** 5\
**Last updated:** [November 22, 2019, 3:56pm UTC](https://discourse.processing.org/t/scale-the-whole-screen-content-to-the-back/15712 "2019-11-22T15:56:56Z")

</div>

i want to scale the screen content slowly to the (pseudo)back, using a 2d scale (shrinking). here is what i have as start out; int siz = 66; void setup(){ size(800,600); } void draw(){ ellipse((int)random(widt…

---

## [Cannot run sketch without a display](https://discourse.processing.org/t/cannot-run-sketch-without-a-display/15723)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 0\
**Last updated:** [November 22, 2019, 3:44pm UTC](https://discourse.processing.org/t/cannot-run-sketch-without-a-display/15723 "2019-11-22T15:44:31Z")

</div>

I’m using a jetson nano which is pretty comparable to a raspberry PI. At the moment when I run processing I get a: Cannot run sketch without a display. Read this for possible solutions: Running without a Display · pr…

---

## [Serial write char larger than 127](https://discourse.processing.org/t/serial-write-char-larger-than-127/15449)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 3:44pm UTC](https://discourse.processing.org/t/serial-write-char-larger-than-127/15449 "2019-11-22T15:44:46Z")

</div>

Thank you for reading this. I’ve been playing with the g4p text box and the knob to send serial data to an Arduino but have run into a problem with char values larger than 127. Is there another method to serial write in…

---

## [How do I attach a rectangle to a line?](https://discourse.processing.org/t/how-do-i-attach-a-rectangle-to-a-line/15423)

<div class="topic-metadata">

**Author:** [@Lucc39](https://discourse.processing.org/u/Lucc39)\
**Replies:** 6\
**Last updated:** [November 22, 2019, 3:37pm UTC](https://discourse.processing.org/t/how-do-i-attach-a-rectangle-to-a-line/15423 "2019-11-22T15:37:25Z")

</div>

So, I’m trying to create Pac Man and I’m not sure on how to do so. My best idea so far was to attach the rectangle (which will be Pac Man himself, the player) to certain invisible lines, as if he is a train on a railroad…

---

## [enable and disable a button](https://discourse.processing.org/t/enable-and-disable-a-button/15721)

<div class="topic-metadata">

**Author:** [@pdecaro](https://discourse.processing.org/u/pdecaro)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 3:36pm UTC](https://discourse.processing.org/t/enable-and-disable-a-button/15721 "2019-11-22T15:36:37Z")

</div>

Hello, I have the problem of disabling a key after pressing it. in practice I created two “on”, “off” buttons. When I press “on”, “off” is enabled and “on” must be disabled, and vice versa. I could not find a disbled-ena…

---

## [blendMode framerate performance issues](https://discourse.processing.org/t/blendmode-framerate-performance-issues/15439)

<div class="topic-metadata">

**Author:** [@jstarbell](https://discourse.processing.org/u/jstarbell)\
**Replies:** 4\
**Last updated:** [November 22, 2019, 3:28pm UTC](https://discourse.processing.org/t/blendmode-framerate-performance-issues/15439 "2019-11-22T15:28:02Z")

</div>

I have a large project that uses blendMode(SCREEN). I call the blendMode() function once in setup(). I am using the FX2D renderer, but the issue also presents itself in P2D mode as well. On my Windows 10 pc, the project…

---

## [Please advise me on my cannon simulation code!](https://discourse.processing.org/t/please-advise-me-on-my-cannon-simulation-code/15717)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 2:18pm UTC](https://discourse.processing.org/t/please-advise-me-on-my-cannon-simulation-code/15717 "2019-11-22T14:18:51Z")

</div>

int angle=0,a=1; void setup(){ size(1500,750); fill(26,185,53); rectMode(CORNER); rect(0,600,1500,150); fill(75,78,75); rect(0,610,1500,20); fill(233,243,255); rect(0,0,1500,600); stroke(247,251,0); line(0,620,100,620)…

---

## [How to get a turnkey!](https://discourse.processing.org/t/how-to-get-a-turnkey/15716)

<div class="topic-metadata">

**Author:** [@O-O](https://discourse.processing.org/u/O-O)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 1:06pm UTC](https://discourse.processing.org/t/how-to-get-a-turnkey/15716 "2019-11-22T13:06:45Z")

</div>

I’m going to adjust the angle of the cannon with the orientation key on the keyboard. How can I get a orientation key?:face\_with\_raised\_eyebrow:

---

## [Scale PShape object centered](https://discourse.processing.org/t/scale-pshape-object-centered/15710)

<div class="topic-metadata">

**Author:** [@lumicon9](https://discourse.processing.org/u/lumicon9)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 10:34am UTC](https://discourse.processing.org/t/scale-pshape-object-centered/15710 "2019-11-22T10:34:54Z")

</div>

hi, how can i scale a PShape object centered? PShape square; float shrink; float sizeXY=100; void setup() { size(300, 300); square = createShape(RECT, 0, 0, sizeXY, sizeXY); } void draw() { shrink=shrink+0.0…

---

## [SVG library doesn't work in Python mode?](https://discourse.processing.org/t/svg-library-doesnt-work-in-python-mode/10270)

<div class="topic-metadata">

**Author:** [@Raums](https://discourse.processing.org/u/Raums)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 8:29am UTC](https://discourse.processing.org/t/svg-library-doesnt-work-in-python-mode/10270 "2019-11-22T08:29:33Z")

</div>

I’ve tried from processing.svg import \* which says “import \* does not work in this environment.” and import processing.svg which says “ImportError: No module named svg” What am I doing wrong?

---

## [Need help to prevent Infinity to occur](https://discourse.processing.org/t/need-help-to-prevent-infinity-to-occur/15696)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 11:00pm UTC](https://discourse.processing.org/t/need-help-to-prevent-infinity-to-occur/15696 "2019-11-21T23:00:47Z")

</div>

I got following problem I’m creating a Neuronal Network class And for some strange reasons I don’t know there is one point in the learning process at wich there it suddenly becomes Infinity and then NaN. Here is code of …

---

## [What is boolean?](https://discourse.processing.org/t/what-is-boolean/15675)

<div class="topic-metadata">

**Author:** [@meow](https://discourse.processing.org/u/meow)\
**Replies:** 13\
**Last updated:** [November 21, 2019, 10:40pm UTC](https://discourse.processing.org/t/what-is-boolean/15675 "2019-11-21T22:40:52Z")

</div>

what is boolean and how do they work in processing

---

## [Classes and Arrays](https://discourse.processing.org/t/classes-and-arrays/15702)

<div class="topic-metadata">

**Author:** [@NewbCoder](https://discourse.processing.org/u/NewbCoder)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 9:36pm UTC](https://discourse.processing.org/t/classes-and-arrays/15702 "2019-11-21T21:36:07Z")

</div>

Hello, I’m having issues with += operator to calculate the average of an array of type class. This is occurring in my Calculate\_Average function. For some reason, it does not agree with the object I’ve created. I was won…

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

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