# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=303

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

**Page:** 304

---

## [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 …

---

## [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.\*; …

---

## [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…

---

## [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…

---

## [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…

---

## [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!

---

## [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…

---

## [Trouble with gravity and ending game](https://discourse.processing.org/t/trouble-with-gravity-and-ending-game/10729)

<div class="topic-metadata">

**Author:** [@NeedHelp](https://discourse.processing.org/u/NeedHelp)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 1:57am UTC](https://discourse.processing.org/t/trouble-with-gravity-and-ending-game/10729 "2019-04-29T01:57:40Z")

</div>

I’m trying to make a game for my Processing class. It is due tomorrow morning and is almost completely finished, but I am having trouble triggering the end game screen when the ball leaves the screen. I also need the bal…

---

## [Color map from grayscale](https://discourse.processing.org/t/color-map-from-grayscale/10656)

<div class="topic-metadata">

**Author:** [@fun](https://discourse.processing.org/u/fun)\
**Replies:** 6\
**Last updated:** [April 28, 2019, 8:43pm UTC](https://discourse.processing.org/t/color-map-from-grayscale/10656 "2019-04-28T20:43:19Z")

</div>

I am looking for a way to create a heat map from a sequence of gray scale images with nice gray scale blobs. The heat map should look like these maps you know from eyetracking. Starting with black, blue, green and then …

---

## [Hwo to remove/clear a specific marker in unfolding map processing 3](https://discourse.processing.org/t/hwo-to-remove-clear-a-specific-marker-in-unfolding-map-processing-3/10669)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [April 28, 2019, 6:26pm UTC](https://discourse.processing.org/t/hwo-to-remove-clear-a-specific-marker-in-unfolding-map-processing-3/10669 "2019-04-28T18:26:09Z")

</div>

Hi. I was trying to simulate the movement of a marker in unfolding map with processing 3. Please see the following picture. Could anyone please give me any hints?

---

## [Loop section of video](https://discourse.processing.org/t/loop-section-of-video/10713)

<div class="topic-metadata">

**Author:** [@BarryLimestone](https://discourse.processing.org/u/BarryLimestone)\
**Replies:** 1\
**Last updated:** [April 28, 2019, 2:49pm UTC](https://discourse.processing.org/t/loop-section-of-video/10713 "2019-04-28T14:49:42Z")

</div>

Hello people, First of, I’m a total noob, so if anything I say is obvious or stupid, I hereby apologise. For a university project I’m trying to make an interactive (Think Bandersnatch) video that branches into differen…

---

## [quadraticVertex bezierVertex give different shape](https://discourse.processing.org/t/quadraticvertex-beziervertex-give-different-shape/10712)

<div class="topic-metadata">

**Author:** [@IanM](https://discourse.processing.org/u/IanM)\
**Replies:** 3\
**Last updated:** [April 28, 2019, 1:50pm UTC](https://discourse.processing.org/t/quadraticvertex-beziervertex-give-different-shape/10712 "2019-04-28T13:50:24Z")

</div>

Hi I was expecting these calls to give the same shape, but the curves are different. I was testing and not getting the expected results with quadraticVertex, hence this test using duplicate control points in the bezierV…

---

## [Processing beginner unable to fix NPE](https://discourse.processing.org/t/processing-beginner-unable-to-fix-npe/10679)

<div class="topic-metadata">

**Author:** [@danmarty](https://discourse.processing.org/u/danmarty)\
**Replies:** 7\
**Last updated:** [April 28, 2019, 10:35am UTC](https://discourse.processing.org/t/processing-beginner-unable-to-fix-npe/10679 "2019-04-28T10:35:08Z")

</div>

Hi everyone, As a preface, I’m a complete beginner to all forms of programming before my university unit I’m currently working taking part in. I’m working on a game design for a university project, but my progress is c…

---

## [Help with a "Drawing" App](https://discourse.processing.org/t/help-with-a-drawing-app/10688)

<div class="topic-metadata">

**Author:** [@l1osar](https://discourse.processing.org/u/l1osar)\
**Replies:** 2\
**Last updated:** [April 28, 2019, 1:18am UTC](https://discourse.processing.org/t/help-with-a-drawing-app/10688 "2019-04-28T01:18:16Z")

</div>

Hello! I’m learnig processing, so I had the idea of creating an app to work like paint or Ilustrator. I figured out a lot of stuff, but couldn’t realize how to “save” the current drawing. I want to create a different sc…

---

## [Aligning a text correctly with rotation](https://discourse.processing.org/t/aligning-a-text-correctly-with-rotation/10692)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 4\
**Last updated:** [April 27, 2019, 10:55pm UTC](https://discourse.processing.org/t/aligning-a-text-correctly-with-rotation/10692 "2019-04-27T22:55:01Z")

</div>

Hello, I’m working on a sketch that displays a radar chart. I am satisfied by the result but I’m struggling having the labels aligning correctly. int lineLength = 300; int\[\] values = { 10, 20, 30, 40, 50, 60, 70, 80, 90…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=302)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=304)
