# Latest

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

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

**Page:** 154

---

## [Cannot read csv file in Processing Android](https://discourse.processing.org/t/cannot-read-csv-file-in-processing-android/35504)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 8:04am UTC](https://discourse.processing.org/t/cannot-read-csv-file-in-processing-android/35504 "2022-03-02T08:04:04Z")

</div>

Table table = loadTable(“Mappe.csv”); table.addRow(); table.addColumn(“Clan”); table.setString(0,“data/Mappe.csv”); println(table.getString(0,“Clan”)); The file “Mappe.csv” is in my data folder. I get the Error: j…

---

## [Have an event only happen for 1 frame](https://discourse.processing.org/t/have-an-event-only-happen-for-1-frame/35516)

<div class="topic-metadata">

**Author:** [@adora](https://discourse.processing.org/u/adora)\
**Replies:** 2\
**Last updated:** [March 2, 2022, 7:54am UTC](https://discourse.processing.org/t/have-an-event-only-happen-for-1-frame/35516 "2022-03-02T07:54:31Z")

</div>

Hi, so basically I want my code to be so that if my cursor is touching a circle, a score will be updated by one point only until the cursor leaves and touches the circle again. However, currently, a point keeps on being …

---

## [Swing Components in Default ProcessingWindow](https://discourse.processing.org/t/swing-components-in-default-processingwindow/35483)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 12\
**Last updated:** [March 2, 2022, 1:05am UTC](https://discourse.processing.org/t/swing-components-in-default-processingwindow/35483 "2022-03-02T01:05:37Z")

</div>

The Processing IDE (4.0b6) is an easy to use Java editor as illustrated by this demo which adds numerous Swing components to the default Processing window. The default canvas, along with pre-programmed graphics, is remo…

---

## [Adding automatic enemy behaviour to static sprite](https://discourse.processing.org/t/adding-automatic-enemy-behaviour-to-static-sprite/35398)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 11\
**Last updated:** [March 1, 2022, 9:41pm UTC](https://discourse.processing.org/t/adding-automatic-enemy-behaviour-to-static-sprite/35398 "2022-03-01T21:41:21Z")

</div>

I have included an enemy sprite in my game and I was wondering what I should do to make it behave as an enemy and bounce offensively towards the player sprite. My wondering is about the structure of the code and not only…

---

## [Exported sketch from IOS much bigger than exported sketch from Windows 10](https://discourse.processing.org/t/exported-sketch-from-ios-much-bigger-than-exported-sketch-from-windows-10/35481)

<div class="topic-metadata">

**Author:** [@zerohstudio](https://discourse.processing.org/u/zerohstudio)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 9:17pm UTC](https://discourse.processing.org/t/exported-sketch-from-ios-much-bigger-than-exported-sketch-from-windows-10/35481 "2022-03-01T21:17:56Z")

</div>

Hello, when I export from a mac my sketch is nearly 300 times bigger than the same sketch on Windows. Is this correct? If so, what is the reason for this?

---

## [Why does my program crash sometimes?](https://discourse.processing.org/t/why-does-my-program-crash-sometimes/35497)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 7\
**Last updated:** [March 1, 2022, 4:44pm UTC](https://discourse.processing.org/t/why-does-my-program-crash-sometimes/35497 "2022-03-01T16:44:58Z")

</div>

Hello, I made a Clan system where you get different advantages based on your clan. However my code does work but sometimes it just crashes and I don’t know why. Please help me int clanRoll; String clanName; int clanC…

---

## [How do I detect "enter" from a string loaded from a text document variable](https://discourse.processing.org/t/how-do-i-detect-enter-from-a-string-loaded-from-a-text-document-variable/35446)

<div class="topic-metadata">

**Author:** [@TT3overnot](https://discourse.processing.org/u/TT3overnot)\
**Replies:** 6\
**Last updated:** [March 1, 2022, 4:09pm UTC](https://discourse.processing.org/t/how-do-i-detect-enter-from-a-string-loaded-from-a-text-document-variable/35446 "2022-03-01T16:09:12Z")

</div>

Help! I’m trying to simulate specific key presses from a text document, the problem is that when ever there is a new line in the document it reads that as nothing. Specifcly " ‘’ ", here’s my code, please help: import j…

---

## [Question About Home Made Timer Function](https://discourse.processing.org/t/question-about-home-made-timer-function/35480)

<div class="topic-metadata">

**Author:** [@BruceTheWayneJohnson](https://discourse.processing.org/u/BruceTheWayneJohnson)\
**Replies:** 3\
**Last updated:** [March 1, 2022, 3:50pm UTC](https://discourse.processing.org/t/question-about-home-made-timer-function/35480 "2022-03-01T15:50:12Z")

</div>

Hello Processing friends! In order to practice creating modular functions I created a timer function that uses milli() to determine if a specific number of seconds have passed. I added some code that I expected to run…

---

## [curveVertex are wrong on a PGraphics](https://discourse.processing.org/t/curvevertex-are-wrong-on-a-pgraphics/35499)

<div class="topic-metadata">

**Author:** [@DrHooDoo](https://discourse.processing.org/u/DrHooDoo)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 2:57pm UTC](https://discourse.processing.org/t/curvevertex-are-wrong-on-a-pgraphics/35499 "2022-03-01T14:57:51Z")

</div>

Hello to all, I’m trying to put a PShape containing curveVertex on a PGraphics. The image i’m getting is wrong and all the curveVertex are displayed as vertex instead … I have no clue of what is wrong. Thank you for y…

---

## [Code for cycling through specified colour values](https://discourse.processing.org/t/code-for-cycling-through-specified-colour-values/35418)

<div class="topic-metadata">

**Author:** [@zerohstudio](https://discourse.processing.org/u/zerohstudio)\
**Replies:** 11\
**Last updated:** [February 28, 2022, 12:57pm UTC](https://discourse.processing.org/t/code-for-cycling-through-specified-colour-values/35418 "2022-02-28T12:57:53Z")

</div>

Hello, I am new to Processing and my first personal challenge is to write a small program that cycles through 50 specific colour values and then loops. I managed to write something that displays and changes colour from …

---

## [Recreating pong, I need help though](https://discourse.processing.org/t/recreating-pong-i-need-help-though/35166)

<div class="topic-metadata">

**Author:** [@Adrian\_vargas42](https://discourse.processing.org/u/Adrian_vargas42)\
**Replies:** 6\
**Last updated:** [March 1, 2022, 9:53am UTC](https://discourse.processing.org/t/recreating-pong-i-need-help-though/35166 "2022-03-01T09:53:13Z")

</div>

Hello, I need help with recreating the game, “Pong”. I have gotten both of the paddles and the divider betwen which side is which, I need to get help with getting, the score, and the ball to move on its own, the mouse mo…

---

## [Is there a way to use a command that draws what I want instead of using e.g. rect or ellipses very much?](https://discourse.processing.org/t/is-there-a-way-to-use-a-command-that-draws-what-i-want-instead-of-using-e-g-rect-or-ellipses-very-much/35402)

<div class="topic-metadata">

**Author:** [@Coder1](https://discourse.processing.org/u/Coder1)\
**Replies:** 4\
**Last updated:** [March 1, 2022, 9:46am UTC](https://discourse.processing.org/t/is-there-a-way-to-use-a-command-that-draws-what-i-want-instead-of-using-e-g-rect-or-ellipses-very-much/35402 "2022-03-01T09:46:15Z")

</div>

Hello. I would like to know if there is a way to use a command or a function instead of using e.g. ellipse or rect very very often to create an animation? Here is an example: rect(x,y -= g,g,g); rect(x,y -= g,g,g); re…

---

## [Earn up to $1200 a month in a 100% online part-time job teaching P5JS to school students](https://discourse.processing.org/t/earn-up-to-1200-a-month-in-a-100-online-part-time-job-teaching-p5js-to-school-students/35496)

<div class="topic-metadata">

**Author:** [@StriveMath](https://discourse.processing.org/u/StriveMath)\
**Replies:** 0\
**Last updated:** [March 1, 2022, 8:18am UTC](https://discourse.processing.org/t/earn-up-to-1200-a-month-in-a-100-online-part-time-job-teaching-p5js-to-school-students/35496 "2022-03-01T08:18:19Z")

</div>

Hi guys I’m the CTO and founder of Strive Math (YC S21) https://www.strivemath.com/ and we’re hiring teachers to teach P5JS to school students. Here is a little more about the job: Role You will be teaching Strive cont…

---

## [Python Sound Library](https://discourse.processing.org/t/python-sound-library/35034)

<div class="topic-metadata">

**Author:** [@The\_Math\_Maniac1](https://discourse.processing.org/u/The_Math_Maniac1)\
**Replies:** 6\
**Last updated:** [February 28, 2022, 9:10pm UTC](https://discourse.processing.org/t/python-sound-library/35034 "2022-02-28T21:10:43Z")

</div>

Hey, I am just starting to look into using sound in processing more seriously, and it seems that the best way is with the Processing Foundation Sound library. But I am running into an issue with it. I run my code, and it…

---

## [How to display video in PythonMode?](https://discourse.processing.org/t/how-to-display-video-in-pythonmode/485)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 12\
**Last updated:** [February 28, 2022, 9:09pm UTC](https://discourse.processing.org/t/how-to-display-video-in-pythonmode/485 "2022-02-28T21:09:20Z")

</div>

add\_library('video') def setup(): size(640, 360) background(0) movie = Movie(this, "transit.mov") movie.loop() def movieEvent(m): m.read() def draw(): image(movie, 0,0,width,height…

---

## [Can you help me change the Speed of the ball?](https://discourse.processing.org/t/can-you-help-me-change-the-speed-of-the-ball/35470)

<div class="topic-metadata">

**Author:** [@Cuber1](https://discourse.processing.org/u/Cuber1)\
**Replies:** 8\
**Last updated:** [February 28, 2022, 11:44am UTC](https://discourse.processing.org/t/can-you-help-me-change-the-speed-of-the-ball/35470 "2022-02-28T11:44:10Z")

</div>

Reset the velocity back to its initial value once the ball collides with an edge of the internal wall or the canvas boundary. Note that the sign of the velocity will depend on the edge the ball hits. For example, after …

---

## [ASCII Video with GIF](https://discourse.processing.org/t/ascii-video-with-gif/35476)

<div class="topic-metadata">

**Author:** [@JulienBgr](https://discourse.processing.org/u/JulienBgr)\
**Replies:** 0\
**Last updated:** [February 28, 2022, 9:01am UTC](https://discourse.processing.org/t/ascii-video-with-gif/35476 "2022-02-28T09:01:47Z")

</div>

Hey Guys ! I just saw a video on YouTube for ASCII Video (ASCII Video (Coding Challenge 166) by The Coding Train) and tried this for myself. Furthermore I want to include a GIF, but have some troubles with the implementa…

---

## [textureWrap() is not setting after called a second time](https://discourse.processing.org/t/texturewrap-is-not-setting-after-called-a-second-time/35474)

<div class="topic-metadata">

**Author:** [@graph100](https://discourse.processing.org/u/graph100)\
**Replies:** 1\
**Last updated:** [February 28, 2022, 12:59pm UTC](https://discourse.processing.org/t/texturewrap-is-not-setting-after-called-a-second-time/35474 "2022-02-28T12:59:09Z")

</div>

I’m working on a program where some of the models need to have repeated textures and others do not require that. Where I am trying to repeat my textures I call textureWrap(REPEAT), and just to be sure I’ve put textureWra…

---

## [Cómo darle un valor fijo a la última posición de mouseX](https://discourse.processing.org/t/como-darle-un-valor-fijo-a-la-ultima-posicion-de-mousex/35467)

<div class="topic-metadata">

**Author:** [@Amju\_Rubi](https://discourse.processing.org/u/Amju_Rubi)\
**Replies:** 1\
**Last updated:** [February 27, 2022, 10:47pm UTC](https://discourse.processing.org/t/como-darle-un-valor-fijo-a-la-ultima-posicion-de-mousex/35467 "2022-02-27T22:47:52Z")

</div>

necesito que la posición en x tome un valor estático al cumplir con cierta condición y esta posición debe ser la última que tuvo mouseX

---

## [Creating random shapes within the limits](https://discourse.processing.org/t/creating-random-shapes-within-the-limits/35438)

<div class="topic-metadata">

**Author:** [@callenk](https://discourse.processing.org/u/callenk)\
**Replies:** 6\
**Last updated:** [February 27, 2022, 1:00pm UTC](https://discourse.processing.org/t/creating-random-shapes-within-the-limits/35438 "2022-02-27T13:00:07Z")

</div>

Hi, I am trying to draw some shapes to resemble a face, I have arrays that holds the certain x, y points for each part of a human face like eyes, jaw,nose etc. What is the best way to go about this, using arc, vertex? T…

---

## [How to import the Blob class?](https://discourse.processing.org/t/how-to-import-the-blob-class/35452)

<div class="topic-metadata">

**Author:** [@jamshark70](https://discourse.processing.org/u/jamshark70)\
**Replies:** 1\
**Last updated:** [February 27, 2022, 12:59am UTC](https://discourse.processing.org/t/how-to-import-the-blob-class/35452 "2022-02-27T00:59:57Z")

</div>

Apologies for what is probably a painfully basic question. I’m new to Processing, but I’m not new to media programming (19+ year user of SuperCollider, 2-3 years teaching with Pure Data). Processing 3.5.4. I am seeing a…

---

## [Saving Current Frame on Mouse Click](https://discourse.processing.org/t/saving-current-frame-on-mouse-click/35427)

<div class="topic-metadata">

**Author:** [@eoinfen](https://discourse.processing.org/u/eoinfen)\
**Replies:** 7\
**Last updated:** [February 27, 2022, 12:33am UTC](https://discourse.processing.org/t/saving-current-frame-on-mouse-click/35427 "2022-02-27T00:33:50Z")

</div>

I am trying to save the current frame when the mouse is clicked. I have tried using save() and saveFrame(), but both are saving the next frame that will be displayed instead of the current frame being displayed. Is there…

---

## [Stuck java processes, draw() doesn't run](https://discourse.processing.org/t/stuck-java-processes-draw-doesnt-run/35461)

<div class="topic-metadata">

**Author:** [@fastfourier](https://discourse.processing.org/u/fastfourier)\
**Replies:** 0\
**Last updated:** [February 26, 2022, 4:02pm UTC](https://discourse.processing.org/t/stuck-java-processes-draw-doesnt-run/35461 "2022-02-26T16:02:50Z")

</div>

Hi all, I’m having some problems with Processing 3.5.4 on Mac 10.14.6. I can edit/run/edit/run etc. a sketch a bunch of times (20 or more times) and then this will happen. It finishes executing setup(), but doesn’t reac…

---

## [Bluetooth connection times out](https://discourse.processing.org/t/bluetooth-connection-times-out/35146)

<div class="topic-metadata">

**Author:** [@un23](https://discourse.processing.org/u/un23)\
**Replies:** 6\
**Last updated:** [February 26, 2022, 1:33pm UTC](https://discourse.processing.org/t/bluetooth-connection-times-out/35146 "2022-02-26T13:33:33Z")

</div>

Hello, I am trying to connect my tablet to a BT05 Bluetooth serial adapter. The Android version is 5.1, but I also tested a newer device with the same result. I used “Serial Bluetooth Terminal” to connect to the same ad…

---

## [How would you do this?](https://discourse.processing.org/t/how-would-you-do-this/35456)

<div class="topic-metadata">

**Author:** [@anonymous-54](https://discourse.processing.org/u/anonymous-54)\
**Replies:** 2\
**Last updated:** [February 26, 2022, 12:23pm UTC](https://discourse.processing.org/t/how-would-you-do-this/35456 "2022-02-26T12:23:16Z")

</div>

New to processing as I’ve just started it in uni and there’s a question I don’t really know how to do after doing the 8x8 grid in blue. Here is the question (Imgur: The magic of the Internet) thank you for any help.

---

## [Android is not updated](https://discourse.processing.org/t/android-is-not-updated/35459)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [February 26, 2022, 11:37am UTC](https://discourse.processing.org/t/android-is-not-updated/35459 "2022-02-26T11:37:37Z")

</div>

Android version is not updated. Do you have any problems or solutions?

---

## [I cannot add Android mode: "4.2.1 not compatible"](https://discourse.processing.org/t/i-cannot-add-android-mode-4-2-1-not-compatible/35457)

<div class="topic-metadata">

**Author:** [@gidiav](https://discourse.processing.org/u/gidiav)\
**Replies:** 3\
**Last updated:** [February 26, 2022, 4:35am UTC](https://discourse.processing.org/t/i-cannot-add-android-mode-4-2-1-not-compatible/35457 "2022-02-26T04:35:57Z")

</div>

Hello. I have just installed Processing for the first time. When I click “Add Mode…” the Android line is grayed out and the Install button is disabled: About Processing says “4.0b6” in the top left corner, and I am…

---

## [Convert p5js to Processing](https://discourse.processing.org/t/convert-p5js-to-processing/29893)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 11\
**Last updated:** [February 26, 2022, 1:58am UTC](https://discourse.processing.org/t/convert-p5js-to-processing/29893 "2022-02-26T01:58:30Z")

</div>

could anyone help me converting this code into Processing please? thanks

---

## [PSurfaceAWT.SmoothCanvas\_SquareNuisance](https://discourse.processing.org/t/psurfaceawt-smoothcanvas-squarenuisance/35447)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [February 25, 2022, 9:16pm UTC](https://discourse.processing.org/t/psurfaceawt-smoothcanvas-squarenuisance/35447 "2022-02-25T21:16:39Z")

</div>

Other than setting the canvas bounds outside of the frame is there any way to get rid of this pesky colored square? import java.awt.\*; import java.awt.event.\*; import javax.swing.\*; javax.swing.JFrame frame; java.awt.C…

---

## [Cant call from an Array on createGraphics canvas](https://discourse.processing.org/t/cant-call-from-an-array-on-creategraphics-canvas/35434)

<div class="topic-metadata">

**Author:** [@chriscorey](https://discourse.processing.org/u/chriscorey)\
**Replies:** 4\
**Last updated:** [February 25, 2022, 8:19pm UTC](https://discourse.processing.org/t/cant-call-from-an-array-on-creategraphics-canvas/35434 "2022-02-25T20:19:23Z")

</div>

Project Goal: I’d like to create a simple drawing program that randomly cycles through an array of shapes which the user has to place one at a time. I have a simple version built but when I try to draw something from an …

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

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