# Latest

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

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

**Page:** 494

---

## [Interactive Mosaic with Processing](https://discourse.processing.org/t/interactive-mosaic-with-processing/10630)

<div class="topic-metadata">

**Author:** [@campbell](https://discourse.processing.org/u/campbell)\
**Replies:** 2\
**Last updated:** [April 30, 2019, 2:54pm UTC](https://discourse.processing.org/t/interactive-mosaic-with-processing/10630 "2019-04-30T14:54:49Z")

</div>

I am currently working on creating a live mosaic mirror in processing with the kinect4WinSDK (Kinect X-box camera). Does anybody have experience working with the kinect or creating mosaic images in processing using a liv…

---

## [Very simple k-NN algorithm does not work](https://discourse.processing.org/t/very-simple-k-nn-algorithm-does-not-work/10305)

<div class="topic-metadata">

**Author:** [@anna\_mei](https://discourse.processing.org/u/anna_mei)\
**Replies:** 7\
**Last updated:** [April 30, 2019, 2:07pm UTC](https://discourse.processing.org/t/very-simple-k-nn-algorithm-does-not-work/10305 "2019-04-30T14:07:21Z")

</div>

hi everybody, today I tried to write a very simple k-NN algorithm for class. unfortunetally I did not succeed so far. can someone see where the code is erroneous? my best guess is that the error occurs in the colour ass…

---

## [Get just one channel of RGB photos?](https://discourse.processing.org/t/get-just-one-channel-of-rgb-photos/10732)

<div class="topic-metadata">

**Author:** [@darinb](https://discourse.processing.org/u/darinb)\
**Replies:** 11\
**Last updated:** [April 29, 2019, 10:37pm UTC](https://discourse.processing.org/t/get-just-one-channel-of-rgb-photos/10732 "2019-04-29T22:37:30Z")

</div>

Hello, I’m stuck… If I have an RGB image how to I display just the red channel (or just the blue, or green)? If I wanted to show a combination of two channels is there a faster way (faster as in computer speed) to sho…

---

## [Where to put csv files in Processing 3?](https://discourse.processing.org/t/where-to-put-csv-files-in-processing-3/10753)

<div class="topic-metadata">

**Author:** [@Seyfi](https://discourse.processing.org/u/Seyfi)\
**Replies:** 12\
**Last updated:** [April 29, 2019, 2:33pm UTC](https://discourse.processing.org/t/where-to-put-csv-files-in-processing-3/10753 "2019-04-29T14:33:32Z")

</div>

Hello I am new to Processing. I want to parse a csv file but it does not get it. Can you help me please? Thanks My code is :slight\_smile: Table table; void setup() { table = loadTable("C:/Users/Seyfi/Desktop/pr…

---

## [Csv does not exist or could not be read NullPointerException](https://discourse.processing.org/t/csv-does-not-exist-or-could-not-be-read-nullpointerexception/10785)

<div class="topic-metadata">

**Author:** [@peterf98](https://discourse.processing.org/u/peterf98)\
**Replies:** 3\
**Last updated:** [April 30, 2019, 6:18am UTC](https://discourse.processing.org/t/csv-does-not-exist-or-could-not-be-read-nullpointerexception/10785 "2019-04-30T06:18:05Z")

</div>

---

## [How to do a stationary scale animation?](https://discourse.processing.org/t/how-to-do-a-stationary-scale-animation/10627)

<div class="topic-metadata">

**Author:** [@karatecake](https://discourse.processing.org/u/karatecake)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 10:48pm UTC](https://discourse.processing.org/t/how-to-do-a-stationary-scale-animation/10627 "2019-04-29T22:48:01Z")

</div>

I have 4 mushroom shapes I’d like to grow and shrink while staying in their current positions. I’ve tried a few kinds of code, but it ends up moving my mushrooms away from where I placed them. Here are each of my mushroo…

---

## [Collect circle using square](https://discourse.processing.org/t/collect-circle-using-square/10773)

<div class="topic-metadata">

**Author:** [@Hello](https://discourse.processing.org/u/Hello)\
**Replies:** 5\
**Last updated:** [April 30, 2019, 5:15am UTC](https://discourse.processing.org/t/collect-circle-using-square/10773 "2019-04-30T05:15:07Z")

</div>

so far i have this and i need help in making the circle get collected int x; int y; float circleX; float circleY; int points = 0; void setup(){ textSize(20); size (400, 400); x = width/2; y = height/2; …

---

## [How to share files between sketches?](https://discourse.processing.org/t/how-to-share-files-between-sketches/10660)

<div class="topic-metadata">

**Author:** [@securet](https://discourse.processing.org/u/securet)\
**Replies:** 6\
**Last updated:** [April 30, 2019, 2:26am UTC](https://discourse.processing.org/t/how-to-share-files-between-sketches/10660 "2019-04-30T02:26:36Z")

</div>

how to share files between sketches? Like I want to have a class available in two of my sketches and don’t want to copy paste it all the time.

---

## [Menu Screen Help](https://discourse.processing.org/t/menu-screen-help/10766)

<div class="topic-metadata">

**Author:** [@luooke](https://discourse.processing.org/u/luooke)\
**Replies:** 2\
**Last updated:** [April 30, 2019, 1:36am UTC](https://discourse.processing.org/t/menu-screen-help/10766 "2019-04-30T01:36:09Z")

</div>

I’m having trouble with my menu screen for a game I’m trying to code. When I click the mouse, it isn’t taking me to the next screen (i.e when I click levels it doesn’t show the levels screen.) Can anyone help me? Thank y…

---

## [Line not drawing as it should](https://discourse.processing.org/t/line-not-drawing-as-it-should/10771)

<div class="topic-metadata">

**Author:** [@xKoldFuzionx](https://discourse.processing.org/u/xKoldFuzionx)\
**Replies:** 2\
**Last updated:** [April 30, 2019, 12:54am UTC](https://discourse.processing.org/t/line-not-drawing-as-it-should/10771 "2019-04-30T00:54:11Z")

</div>

Ok, I am newer to processing, but not a complete beginner. I’ve been going through a book to try and build my skills a little better and I just wanted to test myself by drawing a line on a small 200x200 window. The bas…

---

## [The colors of the markers behave strangely?](https://discourse.processing.org/t/the-colors-of-the-markers-behave-strangely/10670)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [April 30, 2019, 12:48am UTC](https://discourse.processing.org/t/the-colors-of-the-markers-behave-strangely/10670 "2019-04-30T00:48:57Z")

</div>

I was playing around with the simulation of the markers’ movement on a given unfolding map. I did not figure it out yet. Meanwhile, I got a question about the colors of the markers. Please see the following picture. My …

---

## [How to project/map from cartesian space to circular space](https://discourse.processing.org/t/how-to-project-map-from-cartesian-space-to-circular-space/10640)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 9:02pm UTC](https://discourse.processing.org/t/how-to-project-map-from-cartesian-space-to-circular-space/10640 "2019-04-29T21:02:47Z")

</div>

Hi, I want to project or map points of specific locations to be within the confine of a circular space (not removing points). Considering map() function does mapping on 1 dimension, how can I do so to take into accounts …

---

## [Maze Game trying to display scary image](https://discourse.processing.org/t/maze-game-trying-to-display-scary-image/10641)

<div class="topic-metadata">

**Author:** [@GuerillaGirl](https://discourse.processing.org/u/GuerillaGirl)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 8:35pm UTC](https://discourse.processing.org/t/maze-game-trying-to-display-scary-image/10641 "2019-04-29T20:35:41Z")

</div>

Hey - we are trying to get this maze to display a scary image if a player hits the edge but everything we have tried is not working. We pasted the code below. We thought if we used an if statement inside of draw it would…

---

## [Display geo position of a mouse pointer in a unfolding map](https://discourse.processing.org/t/display-geo-position-of-a-mouse-pointer-in-a-unfolding-map/10655)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 4\
**Last updated:** [April 27, 2019, 8:26am UTC](https://discourse.processing.org/t/display-geo-position-of-a-mouse-pointer-in-a-unfolding-map/10655 "2019-04-27T08:26:00Z")

</div>

Hi, I have the following code to accomplish a simple task, to display the geo-posiition of a mouse in a map. import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.geo.\*; import de.fhpotsdam.unfolding.utils.\*; …

---

## [Genetic Algorithm Is Not Learning](https://discourse.processing.org/t/genetic-algorithm-is-not-learning/10674)

<div class="topic-metadata">

**Author:** [@OrangeC7](https://discourse.processing.org/u/OrangeC7)\
**Replies:** 6\
**Last updated:** [April 29, 2019, 6:36pm UTC](https://discourse.processing.org/t/genetic-algorithm-is-not-learning/10674 "2019-04-29T18:36:26Z")

</div>

I’m trying to get a “player”/circle to avoid getting hit by “obstacles”/other circles, based on Daniel Shiffman’s Neuroevolution Flappy Bird/with tensorflow.js. (https://youtu.be/c6y21FkaUqw) The algorithm has the follo…

---

## [Unfolding map drag and drop markers](https://discourse.processing.org/t/unfolding-map-drag-and-drop-markers/10602)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 5:19pm UTC](https://discourse.processing.org/t/unfolding-map-drag-and-drop-markers/10602 "2019-04-29T17:19:01Z")

</div>

Hi. I have a great interest in / is impressed by the interactive unfolding map library with processing lately, especially the movement / animation of map markers. I was wondering, is there a way to set up the initial con…

---

## [Slide Show Animation](https://discourse.processing.org/t/slide-show-animation/10595)

<div class="topic-metadata">

**Author:** [@jcop](https://discourse.processing.org/u/jcop)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 4:50pm UTC](https://discourse.processing.org/t/slide-show-animation/10595 "2019-04-29T16:50:27Z")

</div>

PImage france2; PImage france3; PImage france4; void setup(){ size(1000,600); smooth(); france2 = loadImage("New Yotk.jpg"); france3 = loadImage("france.jpg"); france4 = loadImage("madrid.jpg"); } void draw(){ ba…

---

## [Kinect and processing 3 thesis project](https://discourse.processing.org/t/kinect-and-processing-3-thesis-project/10683)

<div class="topic-metadata">

**Author:** [@nourabdelbaky](https://discourse.processing.org/u/nourabdelbaky)\
**Replies:** 3\
**Last updated:** [April 29, 2019, 4:08pm UTC](https://discourse.processing.org/t/kinect-and-processing-3-thesis-project/10683 "2019-04-29T16:08:00Z")

</div>

Hi! Im attempting to produce a fairly simple art piece for my senior thesis as a visual artist. What I basically want to do is project a video onto the wall, and use the Kinect as a proximity sensor (its all I have avail…

---

## [How to adapt my existing methods that write to the screen to work with PGraphics instead - when required?](https://discourse.processing.org/t/how-to-adapt-my-existing-methods-that-write-to-the-screen-to-work-with-pgraphics-instead-when-required/10609)

<div class="topic-metadata">

**Author:** [@CharlieCheeseCake](https://discourse.processing.org/u/CharlieCheeseCake)\
**Replies:** 4\
**Last updated:** [April 29, 2019, 3:39pm UTC](https://discourse.processing.org/t/how-to-adapt-my-existing-methods-that-write-to-the-screen-to-work-with-pgraphics-instead-when-required/10609 "2019-04-29T15:39:21Z")

</div>

I’m able to successfully draw to the screen using standard methods such as : stroke, line & fill. Similarly I’m able to draw to a graphics buffer, thus: PGraphics buff; buff = createGraphics( 200, 200 ); buff.beginDraw…

---

## [Help with reset a int\[\] and multiple screens](https://discourse.processing.org/t/help-with-reset-a-int-and-multiple-screens/10707)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.processing.org/u/Nick1)\
**Replies:** 17\
**Last updated:** [April 29, 2019, 3:20pm UTC](https://discourse.processing.org/t/help-with-reset-a-int-and-multiple-screens/10707 "2019-04-29T15:20:09Z")

</div>

Hey, guys i got an question about my code i want to reset the int \[\] hinder so that the objects arre resettet when i make back=true. Is it possible to make processing by my android things multiple screens because on my p…

---

## [Need help with an assignment from school](https://discourse.processing.org/t/need-help-with-an-assignment-from-school/10584)

<div class="topic-metadata">

**Author:** [@S.L.C.S](https://discourse.processing.org/u/S.L.C.S)\
**Replies:** 9\
**Last updated:** [April 29, 2019, 2:02pm UTC](https://discourse.processing.org/t/need-help-with-an-assignment-from-school/10584 "2019-04-29T14:02:04Z")

</div>

Hello everyone, I was given the assignment to create a program that allows the user to collect coins. Randomly generate a yellow circle on the screen, the user must move a square to meet the circle. Once they get their …

---

## [How to create randomly assigned array?](https://discourse.processing.org/t/how-to-create-randomly-assigned-array/10744)

<div class="topic-metadata">

**Author:** [@danmarty](https://discourse.processing.org/u/danmarty)\
**Replies:** 3\
**Last updated:** [April 29, 2019, 1:27pm UTC](https://discourse.processing.org/t/how-to-create-randomly-assigned-array/10744 "2019-04-29T13:27:56Z")

</div>

Hi everyone, I’m still very new to processing, and I want to be able to create an array (or class?) of 7 different floor types I have made out of rectangles. Below is the code for these different floor types, in the sta…

---

## [Error output to vim](https://discourse.processing.org/t/error-output-to-vim/10722)

<div class="topic-metadata">

**Author:** [@arielyssou](https://discourse.processing.org/u/arielyssou)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 11:21am UTC](https://discourse.processing.org/t/error-output-to-vim/10722 "2019-04-29T11:21:07Z")

</div>

Hi! I’m just beginning with p5.js and I’m trying to setup a “IDE” using Vim. So far I’ve a local host but I’m having trouble with redirecting error messages from the consoles to vim or even to a local file. Is there a wa…

---

## [Modified Circle Collision to Rectangles](https://discourse.processing.org/t/modified-circle-collision-to-rectangles/10720)

<div class="topic-metadata">

**Author:** [@chensley53](https://discourse.processing.org/u/chensley53)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 9:12am UTC](https://discourse.processing.org/t/modified-circle-collision-to-rectangles/10720 "2019-04-29T09:12:11Z")

</div>

I found the code someone posted of Circle Collision and was trying to modify it to be rectangles and it’s all working well besides the collision detection being slightly off between the two rectangles. void checkCollisi…

---

## [Capture: How to solve "same name" issue with multiple cameras on linux?](https://discourse.processing.org/t/capture-how-to-solve-same-name-issue-with-multiple-cameras-on-linux/4805)

<div class="topic-metadata">

**Author:** [@LFSaw](https://discourse.processing.org/u/LFSaw)\
**Replies:** 10\
**Last updated:** [April 29, 2019, 8:42am UTC](https://discourse.processing.org/t/capture-how-to-solve-same-name-issue-with-multiple-cameras-on-linux/4805 "2019-04-29T08:42:51Z")

</div>

Hey there, first post :slight\_smile: I am trying to make available 2 PSEYE cameras on an Ubuntu linux machine. Unfortunately, they show up with the same name and using String\[\] cameras = Capture.list(); for (int i…

---

## [Randomly arrange imported shapes on canvas](https://discourse.processing.org/t/randomly-arrange-imported-shapes-on-canvas/10667)

<div class="topic-metadata">

**Author:** [@annab](https://discourse.processing.org/u/annab)\
**Replies:** 7\
**Last updated:** [April 29, 2019, 8:04am UTC](https://discourse.processing.org/t/randomly-arrange-imported-shapes-on-canvas/10667 "2019-04-29T08:04:36Z")

</div>

Hi, I am completely new to processing and need to solve a problem. I am trying to write a simple code to allow me to arrange imported shapes randomly scattered on the canvas. I have found the tutorial for circle packing…

---

## [What;s wrong with my code? SOS assignment help](https://discourse.processing.org/t/what-s-wrong-with-my-code-sos-assignment-help/4301)

<div class="topic-metadata">

**Author:** [@njdsvdsjVNsdo](https://discourse.processing.org/u/njdsvdsjVNsdo)\
**Replies:** 2\
**Last updated:** [October 10, 2018, 1:46am UTC](https://discourse.processing.org/t/what-s-wrong-with-my-code-sos-assignment-help/4301 "2018-10-10T01:46:42Z")

</div>

I’m supposed to develop an algorithm to determine what mortgage rate is available based on the type and duration of the mortgage desired. This is what I currently have: import javax.swing.JOptionPane; String inputX; in…

---

## [Library or method to obtain audio playback data? Hz, Amp, etc](https://discourse.processing.org/t/library-or-method-to-obtain-audio-playback-data-hz-amp-etc/10735)

<div class="topic-metadata">

**Author:** [@DerekCresswell](https://discourse.processing.org/u/DerekCresswell)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 5:22am UTC](https://discourse.processing.org/t/library-or-method-to-obtain-audio-playback-data-hz-amp-etc/10735 "2019-04-29T05:22:53Z")

</div>

I’m looking to create a project to visual audio. I obviously need audio to do that. I’d prefer to have it work with the system audio. But being able to input a mp3 or even a YT link. Any starting points? Thanks!

---

## [Call Backs in Preload();](https://discourse.processing.org/t/call-backs-in-preload/10711)

<div class="topic-metadata">

**Author:** [@peachman](https://discourse.processing.org/u/peachman)\
**Replies:** 5\
**Last updated:** [April 29, 2019, 2:28am UTC](https://discourse.processing.org/t/call-backs-in-preload/10711 "2019-04-29T02:28:08Z")

</div>

Hi Again, Something I might be miss understanding here, but here goes. The code below doesn’t run how my mind thinks it should. The call back function is being called twice (proved by the print statement) however it is…

---

## [Need help with generative art](https://discourse.processing.org/t/need-help-with-generative-art/10727)

<div class="topic-metadata">

**Author:** [@tiwis](https://discourse.processing.org/u/tiwis)\
**Replies:** 1\
**Last updated:** [April 29, 2019, 2:22am UTC](https://discourse.processing.org/t/need-help-with-generative-art/10727 "2019-04-29T02:22:04Z")

</div>

Hello, my name is Matías, i’m from Argentina and this is my first post on this awersome forum. Today, i’m working with generative art and the problem is that i’m “painting” the background with the mouseX and mouseY posi…

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

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