# Latest

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

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

**Page:** 432

---

## [Playbutton not working](https://discourse.processing.org/t/playbutton-not-working/15052)

<div class="topic-metadata">

**Author:** [@Michachacha](https://discourse.processing.org/u/Michachacha)\
**Replies:** 8\
**Last updated:** [November 1, 2019, 12:53am UTC](https://discourse.processing.org/t/playbutton-not-working/15052 "2019-11-01T00:53:20Z")

</div>

Hi! I can’t get processing 3.5.3 to work. Would anyone help me please? It starts up, but hitting the play button doesn’t do anything except making the program (menus etc) react very slowly. This is with the only code e…

---

## [Get() and images](https://discourse.processing.org/t/get-and-images/15092)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 2\
**Last updated:** [October 31, 2019, 11:13pm UTC](https://discourse.processing.org/t/get-and-images/15092 "2019-10-31T23:13:29Z")

</div>

Hi all, With the following sketch, the image is drawn at (140, 500). However, when I sample the image using the get() function, it acts as though the image is drawn at (0, 0). How do I correct this? Thanks! let colour…

---

## [Random pairs from an arrayList](https://discourse.processing.org/t/random-pairs-from-an-arraylist/15088)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 5\
**Last updated:** [October 31, 2019, 9:54pm UTC](https://discourse.processing.org/t/random-pairs-from-an-arraylist/15088 "2019-10-31T21:54:40Z")

</div>

hi all, I am a little bit stuck with this simple problem; I have an arrayList of let’s say PVectors and I would like to draw random lines between two different points.( or have any other connection rule ), the number of…

---

## [Random values from array](https://discourse.processing.org/t/random-values-from-array/15084)

<div class="topic-metadata">

**Author:** [@San](https://discourse.processing.org/u/San)\
**Replies:** 1\
**Last updated:** [October 31, 2019, 7:44pm UTC](https://discourse.processing.org/t/random-values-from-array/15084 "2019-10-31T19:44:08Z")

</div>

I want to select random values from this array. But if I run it, it sometimes has the same number in it twice. I want to have each number just one time but in a different order everytime I run it. image|690x188

---

## [How do I center a rect in a grid?](https://discourse.processing.org/t/how-do-i-center-a-rect-in-a-grid/15074)

<div class="topic-metadata">

**Author:** [@RubenF](https://discourse.processing.org/u/RubenF)\
**Replies:** 6\
**Last updated:** [October 31, 2019, 4:39pm UTC](https://discourse.processing.org/t/how-do-i-center-a-rect-in-a-grid/15074 "2019-10-31T16:39:09Z")

</div>

I’m making a snake game, where the user has to click at a position in the grid for it to move there. The problem is, how do I make this rect align in the center of the grid? Here’s my code: float mousePosX=100, mousePo…

---

## [Vanishing objects when using ortho()](https://discourse.processing.org/t/vanishing-objects-when-using-ortho/15056)

<div class="topic-metadata">

**Author:** [@pheelia](https://discourse.processing.org/u/pheelia)\
**Replies:** 2\
**Last updated:** [October 31, 2019, 3:46pm UTC](https://discourse.processing.org/t/vanishing-objects-when-using-ortho/15056 "2019-10-31T15:46:48Z")

</div>

Hey everyone, I’m creating a sketch using orthographic perspective and I get strange effects here. If I run the code the white rectangles in the background can’t be seen through the gaps left between the black ones. On…

---

## [Knife Movemement](https://discourse.processing.org/t/knife-movemement/15004)

<div class="topic-metadata">

**Author:** [@beornten](https://discourse.processing.org/u/beornten)\
**Replies:** 3\
**Last updated:** [October 31, 2019, 1:47pm UTC](https://discourse.processing.org/t/knife-movemement/15004 "2019-10-31T13:47:35Z")

</div>

Ok so basically i want a knife to o down like 600 px, and if its there go back. But i want it to look smooth and that other things dont freeze while the knife goes down. Thats. (btw the comments are german) My Code: //m…

---

## [Prevent sleep in android](https://discourse.processing.org/t/prevent-sleep-in-android/15011)

<div class="topic-metadata">

**Author:** [@J\_Emmerson](https://discourse.processing.org/u/J_Emmerson)\
**Replies:** 17\
**Last updated:** [October 31, 2019, 1:39pm UTC](https://discourse.processing.org/t/prevent-sleep-in-android/15011 "2019-10-31T13:39:12Z")

</div>

I’m making a counter for a card game and I need a function to prevent android from entering sleep mode

---

## [Matching memory Game](https://discourse.processing.org/t/matching-memory-game/15076)

<div class="topic-metadata">

**Author:** [@filmon](https://discourse.processing.org/u/filmon)\
**Replies:** 1\
**Last updated:** [October 31, 2019, 1:25pm UTC](https://discourse.processing.org/t/matching-memory-game/15076 "2019-10-31T13:25:12Z")

</div>

i want two players but i dont know how it works

---

## [Raspberry pi camera settings?](https://discourse.processing.org/t/raspberry-pi-camera-settings/15072)

<div class="topic-metadata">

**Author:** [@Highflower](https://discourse.processing.org/u/Highflower)\
**Replies:** 2\
**Last updated:** [October 31, 2019, 12:58pm UTC](https://discourse.processing.org/t/raspberry-pi-camera-settings/15072 "2019-10-31T12:58:29Z")

</div>

Hello, I’m working on a project where I’m using a raspberry pi camera with processing to measure light passing through a material to measure its thickness and evenness. I’m using the GLlibrary and trying to follow the e…

---

## [Is there an Android Mode 4.1 problem(characters are broken.) / solution?](https://discourse.processing.org/t/is-there-an-android-mode-4-1-problem-characters-are-broken-solution/15033)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 9\
**Last updated:** [October 31, 2019, 3:53am UTC](https://discourse.processing.org/t/is-there-an-android-mode-4-1-problem-characters-are-broken-solution/15033 "2019-10-31T03:53:33Z")

</div>

‘Foreign language is not expressed.’ Even if you change the font, the characters are broken. ex) Korean, Japanese, Chinese, etc. println() does not work. Is there a solution? Help. I need your help.

---

## [P5js audio array loop issues](https://discourse.processing.org/t/p5js-audio-array-loop-issues/15044)

<div class="topic-metadata">

**Author:** [@Indieminor](https://discourse.processing.org/u/Indieminor)\
**Replies:** 5\
**Last updated:** [October 30, 2019, 11:04pm UTC](https://discourse.processing.org/t/p5js-audio-array-loop-issues/15044 "2019-10-30T23:04:53Z")

</div>

Hi all, I am building an audio/visual project where I have a visual and background change on click and I want a sound to play every time the mouse is clicked. So click once, animation/track1, click again, animation/track…

---

## [Create random circles in a grid](https://discourse.processing.org/t/create-random-circles-in-a-grid/14976)

<div class="topic-metadata">

**Author:** [@Fantassy](https://discourse.processing.org/u/Fantassy)\
**Replies:** 15\
**Last updated:** [October 30, 2019, 3:25pm UTC](https://discourse.processing.org/t/create-random-circles-in-a-grid/14976 "2019-10-30T15:25:37Z")

</div>

Hello, I’m fairly new to this and for a game I’m trying to create red circles randomly in a grid with the amount that is given in the variable. For example I have made a grid with this: void setup() { size (1200, 80…

---

## [Generate random numbers in array and sort without predefined sort function](https://discourse.processing.org/t/generate-random-numbers-in-array-and-sort-without-predefined-sort-function/15055)

<div class="topic-metadata">

**Author:** [@NewbCoder](https://discourse.processing.org/u/NewbCoder)\
**Replies:** 4\
**Last updated:** [October 30, 2019, 6:56pm UTC](https://discourse.processing.org/t/generate-random-numbers-in-array-and-sort-without-predefined-sort-function/15055 "2019-10-30T18:56:51Z")

</div>

Help! I’m trying to generate random numbers in two arrays and then merge them without the predefined function. Any suggestions would be great. Having issues converting between int \[\] and int…This is what i have so far: v…

---

## [Water simulation updating asymetrically](https://discourse.processing.org/t/water-simulation-updating-asymetrically/10885)

<div class="topic-metadata">

**Author:** [@halsfasda](https://discourse.processing.org/u/halsfasda)\
**Replies:** 3\
**Last updated:** [October 30, 2019, 6:22pm UTC](https://discourse.processing.org/t/water-simulation-updating-asymetrically/10885 "2019-10-30T18:22:23Z")

</div>

Hey So I have been working on simulation of water in 2 dimensions. It is comprised of nodes that are attached by “springs” to their neighbors and to the “water level”. it works fine, but it behaves differently on either…

---

## [\[Android\] I can't find a solution. 'Notification pop up' is required](https://discourse.processing.org/t/android-i-cant-find-a-solution-notification-pop-up-is-required/14961)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 13\
**Last updated:** [October 30, 2019, 4:27pm UTC](https://discourse.processing.org/t/android-i-cant-find-a-solution-notification-pop-up-is-required/14961 "2019-10-30T16:27:20Z")

</div>

\[Android\] I can’t find a solution. ‘Notification pop up’ is required. Reference: \[Android\] 'Notification' does not work ‘Notification pop up’ doesn’t work after Android version is higher. Can anyone solve it? Pleas…

---

## [Chicago creative coding community](https://discourse.processing.org/t/chicago-creative-coding-community/8157)

<div class="topic-metadata">

**Author:** [@aljabear](https://discourse.processing.org/u/aljabear)\
**Replies:** 8\
**Last updated:** [October 30, 2019, 4:22pm UTC](https://discourse.processing.org/t/chicago-creative-coding-community/8157 "2019-10-30T16:22:59Z")

</div>

Hi there. This is a place to discuss getting together, on a semi-regular basis in Chicago, to discuss and do creative coding, probably at UIC, and probably centered on P5. At some point, we might move any organization …

---

## [keyPressed and keyReleased with java(eclipse)](https://discourse.processing.org/t/keypressed-and-keyreleased-with-java-eclipse/12994)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 21\
**Last updated:** [October 30, 2019, 3:45pm UTC](https://discourse.processing.org/t/keypressed-and-keyreleased-with-java-eclipse/12994 "2019-10-30T15:45:41Z")

</div>

Hi i found the code “Player Move” from @GoToLoop and i have several questions. i put some of my question in the code: static final int DIAM = 48, SPD = 4, FPS = 60; static final color BG = 0350; Player p; void setu…

---

## [Battleships game in processing](https://discourse.processing.org/t/battleships-game-in-processing/15050)

<div class="topic-metadata">

**Author:** [@aDavid903](https://discourse.processing.org/u/aDavid903)\
**Replies:** 1\
**Last updated:** [October 30, 2019, 3:35pm UTC](https://discourse.processing.org/t/battleships-game-in-processing/15050 "2019-10-30T15:35:45Z")

</div>

So I’m pretty new to Processing 3, and I need to make a game of battleships for an assignment. I have come to the part where I need to make a grid and be able to check which grid is being clicked. This is where I have a …

---

## [Key events (how to stop keyPressed() repeating)](https://discourse.processing.org/t/key-events-how-to-stop-keypressed-repeating/15042)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 3\
**Last updated:** [October 30, 2019, 2:54pm UTC](https://discourse.processing.org/t/key-events-how-to-stop-keypressed-repeating/15042 "2019-10-30T14:54:07Z")

</div>

Help please. In the following code I want to change the value of varH and so the color of the letter H once and only once. So, when the H or h key is pressed the value of varH should increase by 1. If the key is kept pre…

---

## [\[Android Mode4.0\] oscP5, udp library error](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [October 30, 2019, 2:41pm UTC](https://discourse.processing.org/t/android-mode4-0-oscp5-udp-library-error/15017 "2019-10-30T14:41:28Z")

</div>

\[Android Mode4.0\] oscP5, udp library error Good morning. After updating your Android version, The oscP5 library does not work. The udp library does not work. Is there a solution? Or is there an example source code f…

---

## [Wireworld automata implementation](https://discourse.processing.org/t/wireworld-automata-implementation/15040)

<div class="topic-metadata">

**Author:** [@noahbuddy](https://discourse.processing.org/u/noahbuddy)\
**Replies:** 0\
**Last updated:** [October 30, 2019, 7:20am UTC](https://discourse.processing.org/t/wireworld-automata-implementation/15040 "2019-10-30T07:20:54Z")

</div>

A rendition of Wireworld. // For more Wireworld, go here: // https://www.quinapalus.com/wi-index.html // // Colors used (ranges 0-255): // Electron start (head), blue, color(0,0,255) // Electron end (tail), red, color…

---

## [Get array of vertex's from loaded 3D Model?](https://discourse.processing.org/t/get-array-of-vertexs-from-loaded-3d-model/15029)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 2\
**Last updated:** [October 30, 2019, 2:33am UTC](https://discourse.processing.org/t/get-array-of-vertexs-from-loaded-3d-model/15029 "2019-10-30T02:33:34Z")

</div>

So, I was wondering if there is a function or a library which allows you to access an array of vertex’s from a loaded object. For instance if you used the LoadShape() function to import a .obj file of a cube, you could …

---

## [Rotation in relations to another object](https://discourse.processing.org/t/rotation-in-relations-to-another-object/14990)

<div class="topic-metadata">

**Author:** [@volous](https://discourse.processing.org/u/volous)\
**Replies:** 2\
**Last updated:** [October 30, 2019, 2:00am UTC](https://discourse.processing.org/t/rotation-in-relations-to-another-object/14990 "2019-10-30T02:00:51Z")

</div>

Hi, so i’m trying to rotate another shape in relations to another shape. but im not able to do so, how should i go about it(object/class based)?.

---

## [Typographic Mirror!](https://discourse.processing.org/t/typographic-mirror/15034)

<div class="topic-metadata">

**Author:** [@madiMcD](https://discourse.processing.org/u/madiMcD)\
**Replies:** 2\
**Last updated:** [October 30, 2019, 1:34am UTC](https://discourse.processing.org/t/typographic-mirror/15034 "2019-10-30T01:34:41Z")

</div>

Hi all!! I am a graphic designer using Processing for creative coding art projects, and right now I am part of an exhibition on typography. I am trying to create a mirror out of type. BOOM, cool right I am taking insp…

---

## [Println not working](https://discourse.processing.org/t/println-not-working/5400)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 10\
**Last updated:** [October 29, 2019, 9:15pm UTC](https://discourse.processing.org/t/println-not-working/5400 "2019-10-29T21:15:28Z")

</div>

How can I use println in the android mode? I can make apps fine, but I never see the print lines appearing in the console.

---

## [Changing targetSdkVersion?](https://discourse.processing.org/t/changing-targetsdkversion/14723)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 20\
**Last updated:** [October 29, 2019, 8:47pm UTC](https://discourse.processing.org/t/changing-targetsdkversion/14723 "2019-10-29T20:47:48Z")

</div>

Hi all! I’m trying to publish my first android game on the Play Store, but when I try to upload my apk, which I have exported with Processing, Google rejects it, saying that my targeted sdk versione is 26, while the min…

---

## [Android build won't work](https://discourse.processing.org/t/android-build-wont-work/15000)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [October 29, 2019, 7:37pm UTC](https://discourse.processing.org/t/android-build-wont-work/15000 "2019-10-29T19:37:31Z")

</div>

Android build won’t work. Since updating from Android mode 3.0 to 4.0 In no case will it build. Reinstall Android 4.0. Delete and reinstall processing. Delete the library file and reinstall. It doesn’t build no matt…

---

## [Making of: Tetris](https://discourse.processing.org/t/making-of-tetris/15024)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 1\
**Last updated:** [October 29, 2019, 4:44pm UTC](https://discourse.processing.org/t/making-of-tetris/15024 "2019-10-29T16:44:51Z")

</div>

Hey all! Today at school I started coding a Tetris-like mini game, based on shapes which fall to the ground and land on the bottom of the window… but I’m now stuck! The fact is, everything goes right when I create a ne…

---

## [Save Function not quite right](https://discourse.processing.org/t/save-function-not-quite-right/15027)

<div class="topic-metadata">

**Author:** [@ozman](https://discourse.processing.org/u/ozman)\
**Replies:** 5\
**Last updated:** [October 29, 2019, 5:36pm UTC](https://discourse.processing.org/t/save-function-not-quite-right/15027 "2019-10-29T17:36:02Z")

</div>

Hi! i’m trying to have a save function that allows you to name the file and choose where you would like your save to go. So far with the code I have, its allows you to save and make/choose a folder but then places it o…

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

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