# Processing.py

**URL:** https://discourse.processing.org/c/processing-py/9.md?page=15

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

**Page:** 16

---

## [Java to Python (PixelFlow library)](https://discourse.processing.org/t/java-to-python-pixelflow-library/4885)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 7\
**Last updated:** [October 26, 2018, 3:48pm UTC](https://discourse.processing.org/t/java-to-python-pixelflow-library/4885 "2018-10-26T15:48:38Z")

</div>

Hi, I’m having difficulting porting the “Fluid\_CustomParticles” example sketch from the PixelFlow library to Python. In Java I have somehting like this: static public class MyParticleSystem{ public DwGLSLProgram …

---

## [Bending a PShape object to make it circular](https://discourse.processing.org/t/bending-a-pshape-object-to-make-it-circular/3640)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 16\
**Last updated:** [September 26, 2018, 8:40am UTC](https://discourse.processing.org/t/bending-a-pshape-object-to-make-it-circular/3640 "2018-09-26T08:40:15Z")

</div>

Hi everyone, The title says it all, I’d like to bend a PShape object to give it a circular shape: I tried to project the vertices around a circle (circular translation) but it didn’t work: Questions: Is it the cor…

---

## [Camera following a certain point](https://discourse.processing.org/t/camera-following-a-certain-point/3629)

<div class="topic-metadata">

**Author:** [@danablend](https://discourse.processing.org/u/danablend)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 10:34am UTC](https://discourse.processing.org/t/camera-following-a-certain-point/3629 "2018-09-18T10:34:04Z")

</div>

I have begun making a game, and I need the camera centered on the player. Currently I have tried transforming the coordinate system without luck, and I am not sure about what method I should use to make the camera move w…

---

## [Selecting the nearest grid vertices with Delaunay triangulation](https://discourse.processing.org/t/selecting-the-nearest-grid-vertices-with-delaunay-triangulation/3370)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 3\
**Last updated:** [September 11, 2018, 4:14am UTC](https://discourse.processing.org/t/selecting-the-nearest-grid-vertices-with-delaunay-triangulation/3370 "2018-09-11T04:14:30Z")

</div>

Hi all, I’m displaying random points on a 2D canvas and would like (for each one of them) to get the coordinates of the nearest grid vertices. To find the nearest vertices I’m using Delaunay triangulation. I put a…

---

## [Array of extruded shapes is too slow](https://discourse.processing.org/t/array-of-extruded-shapes-is-too-slow/3414)

<div class="topic-metadata">

**Author:** [@pop](https://discourse.processing.org/u/pop)\
**Replies:** 10\
**Last updated:** [September 10, 2018, 1:16pm UTC](https://discourse.processing.org/t/array-of-extruded-shapes-is-too-slow/3414 "2018-09-10T13:16:35Z")

</div>

Hello, this is my first post on here, so I hope I’m following the guidelines correctly. I want to orbit around an array of simple extrusions obtained through the extruder library. The code works in theory, but orbiting …

---

## [Problem with springs motion](https://discourse.processing.org/t/problem-with-springs-motion/3394)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 11\
**Last updated:** [September 10, 2018, 11:02am UTC](https://discourse.processing.org/t/problem-with-springs-motion/3394 "2018-09-10T11:02:12Z")

</div>

Hi, I’m working on a sketch where I’m moving specific particles on a grid. Each particle is connected to its neighbour by a spring. Goal: I would like the moving particle to drag/pull its neighbours as it is moving up …

---

## [Beads audio library in Python mode](https://discourse.processing.org/t/beads-audio-library-in-python-mode/3077)

<div class="topic-metadata">

**Author:** [@wissme](https://discourse.processing.org/u/wissme)\
**Replies:** 25\
**Last updated:** [September 6, 2018, 8:12pm UTC](https://discourse.processing.org/t/beads-audio-library-in-python-mode/3077 "2018-09-06T20:12:19Z")

</div>

Hi ! I am starting to learn Beads audio library, wonderful book by Evan Merz but in Java. The beads library works fine in Processing.py up to some points where the Java does not seem obvious to be translated in Python. …

---

## [Run -\> Present doesn't work as expected](https://discourse.processing.org/t/run-present-doesnt-work-as-expected/2942)

<div class="topic-metadata">

**Author:** [@luhai](https://discourse.processing.org/u/luhai)\
**Replies:** 1\
**Last updated:** [August 25, 2018, 3:42pm UTC](https://discourse.processing.org/t/run-present-doesnt-work-as-expected/2942 "2018-08-25T15:42:16Z")

</div>

Can anyone run sketch in Present Mode by clearing the rest of the screen to present your sketch all by itself?

---

## ["if" statement imbroglio](https://discourse.processing.org/t/if-statement-imbroglio/2722)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 8:08pm UTC](https://discourse.processing.org/t/if-statement-imbroglio/2722 "2018-08-22T20:08:34Z")

</div>

Hi all, I’m trying to display noised “waves” on top of each other while avoiding any overlaps. The waves are filled with point lines computed with the lerp() function (interpolation between a noisy line and the next on…

---

## [Java to Python conversion](https://discourse.processing.org/t/java-to-python-conversion/2723)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 4\
**Last updated:** [August 17, 2018, 4:35pm UTC](https://discourse.processing.org/t/java-to-python-conversion/2723 "2018-08-17T16:35:20Z")

</div>

Hi again, I’m currently trying to port a Java script to Python but I’m stuck on something that goes like this: class Agent { float x, y; float t; Agent() { findStart(); } void findStart() { ... O…

---

## [Applying noise to a circular grid](https://discourse.processing.org/t/applying-noise-to-a-circular-grid/2564)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 12\
**Last updated:** [August 12, 2018, 10:55pm UTC](https://discourse.processing.org/t/applying-noise-to-a-circular-grid/2564 "2018-08-12T22:55:45Z")

</div>

Hi, I’m having difficulties correctly applying Perlin noise to a circular grid. When I first computed the noise value, the end of the grid was not matching its beginning anymore… which is normal. The problem is, when …

---

## [Creating multi-page PDFs in Python mode](https://discourse.processing.org/t/creating-multi-page-pdfs-in-python-mode/2447)

<div class="topic-metadata">

**Author:** [@pxlmnkeee](https://discourse.processing.org/u/pxlmnkeee)\
**Replies:** 4\
**Last updated:** [August 8, 2018, 6:26pm UTC](https://discourse.processing.org/t/creating-multi-page-pdfs-in-python-mode/2447 "2018-08-08T18:26:03Z")

</div>

Hello there intrepid Processing community! I have a question about creating multi-page PDFs in Processing: I’ve tried to modify the code from the Java implementation with limited success. I’ve created an empty PDF file…

---

## [Dashed Lines library issue in Python mode](https://discourse.processing.org/t/dashed-lines-library-issue-in-python-mode/2199)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 2\
**Last updated:** [July 30, 2018, 12:30pm UTC](https://discourse.processing.org/t/dashed-lines-library-issue-in-python-mode/2199 "2018-07-30T12:30:06Z")

</div>

Hi guys, I ran into an issue when using the Dashed Lines library in Python mode. Basically I would like to display a rectangle with dashed lines but it seems the library doesn’t work correctly when using Python mode. I…

---

## [Could not find a mode in the downloaded file error](https://discourse.processing.org/t/could-not-find-a-mode-in-the-downloaded-file-error/2108)

<div class="topic-metadata">

**Author:** [@alexquacksalot](https://discourse.processing.org/u/alexquacksalot)\
**Replies:** 3\
**Last updated:** [July 26, 2018, 11:52pm UTC](https://discourse.processing.org/t/could-not-find-a-mode-in-the-downloaded-file-error/2108 "2018-07-26T23:52:51Z")

</div>

Hi, I’m new to this so I apologize if I’ve made some really simple mistake. So I downloaded the 64-bit latest version and I wanted to use the Python mode to code but every time I try to install it, it starts the download…

---

## [Can't Install Python Mode](https://discourse.processing.org/t/cant-install-python-mode/2097)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 4\
**Last updated:** [July 26, 2018, 9:03am UTC](https://discourse.processing.org/t/cant-install-python-mode/2097 "2018-07-26T09:03:10Z")

</div>

When I try to install Python mode i get the message “Could not find a mode in the downloaded file” . Tried downloading a fresh copy but still get the same message. I can remove and install Android mode, P5.js mode and RE…

---

## [Trouble with python mode](https://discourse.processing.org/t/trouble-with-python-mode/1673)

<div class="topic-metadata">

**Author:** [@kylehughesm](https://discourse.processing.org/u/kylehughesm)\
**Replies:** 6\
**Last updated:** [July 22, 2018, 11:43am UTC](https://discourse.processing.org/t/trouble-with-python-mode/1673 "2018-07-22T11:43:20Z")

</div>

I installed python mode but when I click on python in the dropdown, an error window appears Title: Python mode Error Meassage: Cannot start python sketch runner. I’m fairly new to programming and processing, I’ve do…

---

## [New p5 (native Python) release!](https://discourse.processing.org/t/new-p5-native-python-release/1881)

<div class="topic-metadata">

**Author:** [@abhikpal](https://discourse.processing.org/u/abhikpal)\
**Replies:** 4\
**Last updated:** [July 18, 2018, 2:18pm UTC](https://discourse.processing.org/t/new-p5-native-python-release/1881 "2018-07-18T14:18:11Z")

</div>

Hello everyone, we’ve been working on p5 (native python) for this year’s Summer of Code as well, and we’re happy to announce the first developmental release. Take a look at the full release here. Feel free to test this…

---

## [Is it possible to change the transparency of a PShape object in draw()?](https://discourse.processing.org/t/is-it-possible-to-change-the-transparency-of-a-pshape-object-in-draw/1429)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 3\
**Last updated:** [July 2, 2018, 4:17pm UTC](https://discourse.processing.org/t/is-it-possible-to-change-the-transparency-of-a-pshape-object-in-draw/1429 "2018-07-02T16:17:44Z")

</div>

Hi, The title says it all, I’d like to change in draw() the alpha value of a PShape object originally created in setup(). A quick example: def setup(): size(800, 800, P3D) global shp shp = createShape…

---

## [Module Python for all domain users](https://discourse.processing.org/t/module-python-for-all-domain-users/1471)

<div class="topic-metadata">

**Author:** [@LooselySubtle](https://discourse.processing.org/u/LooselySubtle)\
**Replies:** 1\
**Last updated:** [July 3, 2018, 7:21pm UTC](https://discourse.processing.org/t/module-python-for-all-domain-users/1471 "2018-07-03T19:21:10Z")

</div>

Hi processing I am the sysadmin for a K12-school and I am asked to install Processing with the python plugin on all of my desktops. When preparing the master image for my school and testing the software, I noticed that …

---

## [Rotation and Translation not performing as intended](https://discourse.processing.org/t/rotation-and-translation-not-performing-as-intended/1401)

<div class="topic-metadata">

**Author:** [@ScottR](https://discourse.processing.org/u/ScottR)\
**Replies:** 2\
**Last updated:** [July 1, 2018, 9:51am UTC](https://discourse.processing.org/t/rotation-and-translation-not-performing-as-intended/1401 "2018-07-01T09:51:09Z")

</div>

Hi, I have a processing.py script that includes the simulation of some projectiles. I am trying to make an arrow rotate to follow its path as it flies, but I cannot seem to get the rotate and translate functions to only …

---

## [How to make a proper nested for loop for checking each item in an array?](https://discourse.processing.org/t/how-to-make-a-proper-nested-for-loop-for-checking-each-item-in-an-array/1292)

<div class="topic-metadata">

**Author:** [@nothome123](https://discourse.processing.org/u/nothome123)\
**Replies:** 6\
**Last updated:** [June 27, 2018, 7:21am UTC](https://discourse.processing.org/t/how-to-make-a-proper-nested-for-loop-for-checking-each-item-in-an-array/1292 "2018-06-27T07:21:48Z")

</div>

im recreating the asteroids game that the coding train did in processing.py. im in the part of the video when daniel is coding the hit detection of the laser ( i named them bullets) to the asteroids. but when i try to do…

---

## [How to redraw while in another method?](https://discourse.processing.org/t/how-to-redraw-while-in-another-method/1222)

<div class="topic-metadata">

**Author:** [@benjaminnow](https://discourse.processing.org/u/benjaminnow)\
**Replies:** 8\
**Last updated:** [June 25, 2018, 4:52pm UTC](https://discourse.processing.org/t/how-to-redraw-while-in-another-method/1222 "2018-06-25T16:52:16Z")

</div>

I’m making a programming game for kids to learn to program using processing and python. It involves a wombat which picks up leaves in tiles and there may be some obstacles like rocks. This might be familiar to you if you…

---

## [How to active ControlEvent in ControlP5 - python Mode?](https://discourse.processing.org/t/how-to-active-controlevent-in-controlp5-python-mode/1113)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 9\
**Last updated:** [June 20, 2018, 12:50pm UTC](https://discourse.processing.org/t/how-to-active-controlevent-in-controlp5-python-mode/1113 "2018-06-20T12:50:08Z")

</div>

in Java language, here is the original code: import controlP5.\*; ControlP5 cp5; int myColor = color(0, 0, 0); int sliderValue = 100; int sliderTicks1 = 100; void setup() { size(700, 400); noStroke(); cp5 = new …

---

## [GL Video Not Playing Audio for Pi B](https://discourse.processing.org/t/gl-video-not-playing-audio-for-pi-b/975)

<div class="topic-metadata">

**Author:** [@Zengirl2](https://discourse.processing.org/u/Zengirl2)\
**Replies:** 1\
**Last updated:** [June 16, 2018, 2:17pm UTC](https://discourse.processing.org/t/gl-video-not-playing-audio-for-pi-b/975 "2018-06-16T14:17:44Z")

</div>

Hey, I’ve tried altering config for headphone jack and analog audio in task bar, but no luck getting audio to play on my video. Is this library meant to play audio? I did install Sound library and those samples play corr…

---

## [curveVertex not working correctly](https://discourse.processing.org/t/curvevertex-not-working-correctly/788)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 9\
**Last updated:** [June 14, 2018, 1:23am UTC](https://discourse.processing.org/t/curvevertex-not-working-correctly/788 "2018-06-14T01:23:25Z")

</div>

Hi, Today I’ve been trying to make a simpler version of this music player by Misaki Nakano. Out of the different options available, one has caught my eyes: the cubic (or Catmull-Rom spline) interpolation mode. \[ima…

---

## [How to check if a file is exist in data folder by code?](https://discourse.processing.org/t/how-to-check-if-a-file-is-exist-in-data-folder-by-code/589)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 6\
**Last updated:** [June 1, 2018, 6:45am UTC](https://discourse.processing.org/t/how-to-check-if-a-file-is-exist-in-data-folder-by-code/589 "2018-06-01T06:45:51Z")

</div>

I have to check if a file is exist in data folder while the code is running. How to achieve that function?

[Previous page](https://discourse.processing.org/c/processing-py/9.md?page=14)
