# Coding Questions

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

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

**Page:** 182

---

## [Getrow() - unwanted rounding](https://discourse.processing.org/t/getrow-unwanted-rounding/1926)

<div class="topic-metadata">

**Author:** [@Groot](https://discourse.processing.org/u/Groot)\
**Replies:** 3\
**Last updated:** [July 22, 2018, 8:26pm UTC](https://discourse.processing.org/t/getrow-unwanted-rounding/1926 "2018-07-22T20:26:38Z")

</div>

hi all, ultra new to processing, apologies in advance if this has been asked/is basic. im trying to read data out of a table that i have imported from a csv file. i load the table, select a specific row i am intereste…

---

## [Help With My New Game](https://discourse.processing.org/t/help-with-my-new-game/1910)

<div class="topic-metadata">

**Author:** [@Tat-Tay](https://discourse.processing.org/u/Tat-Tay)\
**Replies:** 3\
**Last updated:** [July 22, 2018, 8:26pm UTC](https://discourse.processing.org/t/help-with-my-new-game/1910 "2018-07-22T20:26:35Z")

</div>

Hello. I’m am extremely new to coding in general. I do not know anything about libraries and functions or any of that vocabulary of coding because I started about one month ago and I taught myself to code using Youtube v…

---

## [Flappy Bird game](https://discourse.processing.org/t/flappy-bird-game/1955)

<div class="topic-metadata">

**Author:** [@justdredre](https://discourse.processing.org/u/justdredre)\
**Replies:** 4\
**Last updated:** [July 22, 2018, 7:16am UTC](https://discourse.processing.org/t/flappy-bird-game/1955 "2018-07-22T07:16:52Z")

</div>

New to java scrip and need some help please :slight\_smile: Can someone tell me why my obstacles arent showing up when i live preview? I have used the console log to see if its registering the obstacles every 2 seconds (…

---

## [Rendering audio visual applications](https://discourse.processing.org/t/rendering-audio-visual-applications/1956)

<div class="topic-metadata">

**Author:** [@Kimri](https://discourse.processing.org/u/Kimri)\
**Replies:** 2\
**Last updated:** [July 21, 2018, 8:55am UTC](https://discourse.processing.org/t/rendering-audio-visual-applications/1956 "2018-07-21T08:55:53Z")

</div>

The question is: how do you render Processing applications which are real time audio reactive, i.e. where the the video reacts to parameters extracted from audio? For instance, this was done via screen capture, and cl…

---

## [Questions about Processing codes and copyright.](https://discourse.processing.org/t/questions-about-processing-codes-and-copyright/1867)

<div class="topic-metadata">

**Author:** [@Adrion](https://discourse.processing.org/u/Adrion)\
**Replies:** 7\
**Last updated:** [July 21, 2018, 2:43am UTC](https://discourse.processing.org/t/questions-about-processing-codes-and-copyright/1867 "2018-07-21T02:43:22Z")

</div>

My name is Adrion T. Kelley and I am an Art & Tech major at the University of Oregon. I am interested in making an online Processing tutorial through Udemy.com and charging for the tutorials but I am unsure about the …

---

## [Predefined variables affecting execution](https://discourse.processing.org/t/predefined-variables-affecting-execution/1930)

<div class="topic-metadata">

**Author:** [@giulio](https://discourse.processing.org/u/giulio)\
**Replies:** 3\
**Last updated:** [July 20, 2018, 5:07pm UTC](https://discourse.processing.org/t/predefined-variables-affecting-execution/1930 "2018-07-20T17:07:17Z")

</div>

I was modifying and cleaning my code. Suddenly the draw() loop stopped to be repeated (it only executed the first time, up to the last line, as I saw by inserting some println calls). After looking at the code, I saw th…

---

## [Color Grading using LUT and PShader](https://discourse.processing.org/t/color-grading-using-lut-and-pshader/1929)

<div class="topic-metadata">

**Author:** [@alexr4](https://discourse.processing.org/u/alexr4)\
**Replies:** 0\
**Last updated:** [July 20, 2018, 8:11am UTC](https://discourse.processing.org/t/color-grading-using-lut-and-pshader/1929 "2018-07-20T08:11:27Z")

</div>

Hi everyone, I am trying to implement a color grading shader using LUT as described here by Matt DesLauriers et here by Lev Zelensky but I get a strange result when I apply the shader with a standard lut : On the lef…

---

## [I need two songs to sound after the other](https://discourse.processing.org/t/i-need-two-songs-to-sound-after-the-other/1274)

<div class="topic-metadata">

**Author:** [@ruski15](https://discourse.processing.org/u/ruski15)\
**Replies:** 10\
**Last updated:** [July 20, 2018, 6:12am UTC](https://discourse.processing.org/t/i-need-two-songs-to-sound-after-the-other/1274 "2018-07-20T06:12:23Z")

</div>

Hi community, I would like my code to play a sound, stop for 5 secs and play another sound. There will be 7 sounds that have to combine randomly with each other (that makes 42 combinations). Following the p5.js exampl…

---

## [ Phantom Video Frame in Sketch](https://discourse.processing.org/t/phantom-video-frame-in-sketch/635)

<div class="topic-metadata">

**Author:** [@lukemcconnell](https://discourse.processing.org/u/lukemcconnell)\
**Replies:** 9\
**Last updated:** [July 20, 2018, 6:01am UTC](https://discourse.processing.org/t/phantom-video-frame-in-sketch/635 "2018-07-20T06:01:36Z")

</div>

I am new to Processing so I’ve hit a wall. I’ve developed a simple sketch for an interactive work which triggers videos on keypress d,f,g. When a key is pressed the video should start from the beginning and play. If no o…

---

## [Syntax and Hints for Processing](https://discourse.processing.org/t/syntax-and-hints-for-processing/1904)

<div class="topic-metadata">

**Author:** [@abubakar](https://discourse.processing.org/u/abubakar)\
**Replies:** 2\
**Last updated:** [July 20, 2018, 1:13am UTC](https://discourse.processing.org/t/syntax-and-hints-for-processing/1904 "2018-07-20T01:13:25Z")

</div>

I am new to Processing3, I am facing issues in finding the syntax of different commands in processing. e.g contour. Can someone guide me how i can simply check if my contours are convex. precisely how to use cv.isConto…

---

## [Notifications on windows](https://discourse.processing.org/t/notifications-on-windows/1918)

<div class="topic-metadata">

**Author:** [@AidanLand](https://discourse.processing.org/u/AidanLand)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 1:11am UTC](https://discourse.processing.org/t/notifications-on-windows/1918 "2018-07-20T01:11:10Z")

</div>

I’m writing an alarm clock program, and right now You have to be looking at the program to see the alarm. I would like to be able to make my program to display a notification when the alarm goes off, like the built in a…

---

## [Ignore changes to matrix](https://discourse.processing.org/t/ignore-changes-to-matrix/1917)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 4\
**Last updated:** [July 19, 2018, 6:55pm UTC](https://discourse.processing.org/t/ignore-changes-to-matrix/1917 "2018-07-19T18:55:18Z")

</div>

Is there a clever way to ignore/reset any changes to the matrix that happen outside of a push/popMatrix? Say I draw some objects normally using push/popMatrix(), then I’m calculating various things and have some debug vi…

---

## [Server-\>client reply](https://discourse.processing.org/t/server-client-reply/1877)

<div class="topic-metadata">

**Author:** [@giulio](https://discourse.processing.org/u/giulio)\
**Replies:** 24\
**Last updated:** [July 19, 2018, 3:39pm UTC](https://discourse.processing.org/t/server-client-reply/1877 "2018-07-19T15:39:23Z")

</div>

I’m using the Network library. My Processing sketch opens a server. From external programs, I start one or more clients, which can send “commands” to the server, to make it doing something. This works fine. My question …

---

## [Colouring rectangles with distance function](https://discourse.processing.org/t/colouring-rectangles-with-distance-function/1897)

<div class="topic-metadata">

**Author:** [@Javier](https://discourse.processing.org/u/Javier)\
**Replies:** 4\
**Last updated:** [July 19, 2018, 12:57pm UTC](https://discourse.processing.org/t/colouring-rectangles-with-distance-function/1897 "2018-07-19T12:57:27Z")

</div>

Hi all¡ I am trying to add colours to 4 rectangles on the screen. To dod that I am learning how to create my own functions so i will use the distance from some of this rectangle to the mouseX and mouseY coordinates to a…

---

## [Dispose() implementation](https://discourse.processing.org/t/dispose-implementation/1899)

<div class="topic-metadata">

**Author:** [@Manuel](https://discourse.processing.org/u/Manuel)\
**Replies:** 0\
**Last updated:** [July 19, 2018, 11:10am UTC](https://discourse.processing.org/t/dispose-implementation/1899 "2018-07-19T11:10:53Z")

</div>

Hi, I’m currently using in my proyect a library that provides a dispose() method that I believe right now is never called, I instantiate objects of that library within the classes on my sketch, so I don’t know how exactl…

---

## [Placement of variables](https://discourse.processing.org/t/placement-of-variables/1875)

<div class="topic-metadata">

**Author:** [@mattwonderwall](https://discourse.processing.org/u/mattwonderwall)\
**Replies:** 3\
**Last updated:** [July 18, 2018, 2:04pm UTC](https://discourse.processing.org/t/placement-of-variables/1875 "2018-07-18T14:04:07Z")

</div>

I was following a course book on processing which wanted me to recreate an image: it wanted me to center a circle in each quarter of a square. It then wanted me to replace all the hard-coded numbers with variables. When …

---

## [Create and display 3 platforms?](https://discourse.processing.org/t/create-and-display-3-platforms/1849)

<div class="topic-metadata">

**Author:** [@meowrino](https://discourse.processing.org/u/meowrino)\
**Replies:** 2\
**Last updated:** [July 18, 2018, 12:17pm UTC](https://discourse.processing.org/t/create-and-display-3-platforms/1849 "2018-07-18T12:17:04Z")

</div>

hey there! new user here! I’ve been following the book Learning Processing for a few months, and have finally arrived at the algorithms part. I wanted to try and use more less everything I’ve learned in coding a small p…

---

## [Problem with width/2 and height/2](https://discourse.processing.org/t/problem-with-width-2-and-height-2/1869)

<div class="topic-metadata">

**Author:** [@the-junk](https://discourse.processing.org/u/the-junk)\
**Replies:** 7\
**Last updated:** [July 18, 2018, 10:29am UTC](https://discourse.processing.org/t/problem-with-width-2-and-height-2/1869 "2018-07-18T10:29:36Z")

</div>

Good evening, So, I want my snakePosX to be equal to width/2 and snakePosY to be equal to height/2. There is a bug in my code making my snakePosX and snakePosY equal to 50. I just want my snake to start in the middle o…

---

## [Searching for coding help in Processing3](https://discourse.processing.org/t/searching-for-coding-help-in-processing3/1851)

<div class="topic-metadata">

**Author:** [@Timo.Oth](https://discourse.processing.org/u/Timo.Oth)\
**Replies:** 11\
**Last updated:** [July 18, 2018, 6:25am UTC](https://discourse.processing.org/t/searching-for-coding-help-in-processing3/1851 "2018-07-18T06:25:52Z")

</div>

Hey there, I’m a little student from germany. I want to do a sketch in Processing for a “Configurator”. But i struggle a lot with coding in Processing. I posted a picture with the explanation. If someone can help me …

---

## [Problem with text command](https://discourse.processing.org/t/problem-with-text-command/1838)

<div class="topic-metadata">

**Author:** [@CS900](https://discourse.processing.org/u/CS900)\
**Replies:** 4\
**Last updated:** [July 18, 2018, 5:49am UTC](https://discourse.processing.org/t/problem-with-text-command/1838 "2018-07-18T05:49:41Z")

</div>

Hi, I am trying to run a simple hangman game, and when the game ends I wanted the system to exit. To do this I inserted a delay after the screen ‘notified’ the user they had won or lost, and then used the exit command. B…

---

## [Why is my javascript showing white?](https://discourse.processing.org/t/why-is-my-javascript-showing-white/1865)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 3\
**Last updated:** [July 17, 2018, 10:23pm UTC](https://discourse.processing.org/t/why-is-my-javascript-showing-white/1865 "2018-07-17T22:23:15Z")

</div>

I decided to start learning javascript & made a flappy bird, but after adding the pipes my screen was white. I’m using notepad ++ javascript here the html \<!DOCTYPE html\> \<html\> \<head\> \<meta charset="UTF-8"\> \<…

---

## [Problem with ControlP5, Scrollablelist and align method](https://discourse.processing.org/t/problem-with-controlp5-scrollablelist-and-align-method/1808)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 1\
**Last updated:** [July 17, 2018, 2:46pm UTC](https://discourse.processing.org/t/problem-with-controlp5-scrollablelist-and-align-method/1808 "2018-07-17T14:46:27Z")

</div>

Hi everyone, I have trouble aligning text in a scrollable list in the ControlP5 library. Here is an example : import controlP5.\*; import java.util.\*; ControlP5 cp5; void setup() { size(400, 400); cp5 = new Contr…

---

## [Toy Neural Networks in Processing](https://discourse.processing.org/t/toy-neural-networks-in-processing/1529)

<div class="topic-metadata">

**Author:** [@vadsavin](https://discourse.processing.org/u/vadsavin)\
**Replies:** 7\
**Last updated:** [July 17, 2018, 2:32pm UTC](https://discourse.processing.org/t/toy-neural-networks-in-processing/1529 "2018-07-17T14:32:43Z")

</div>

I saw every Coding Train’s video about NN with P5 and i’ve tried to export his code into Prcossessing. Actually, it seems to work correctly with only one output node, otherwise it makes itself crazy. I’ve rewrite this c…

---

## [Circle edge on mouse coordinates and increased size the father it gets from canvas center](https://discourse.processing.org/t/circle-edge-on-mouse-coordinates-and-increased-size-the-father-it-gets-from-canvas-center/1847)

<div class="topic-metadata">

**Author:** [@mattwonderwall](https://discourse.processing.org/u/mattwonderwall)\
**Replies:** 1\
**Last updated:** [July 17, 2018, 11:09am UTC](https://discourse.processing.org/t/circle-edge-on-mouse-coordinates-and-increased-size-the-father-it-gets-from-canvas-center/1847 "2018-07-17T11:09:41Z")

</div>

I’ve just started programming and wanted to get a perfect circle edge to jump to the mouse edge. So the center of the circle would be the center of the canvas, and the closer you get to it, the smaller the circle gets an…

---

## [Retrieve real wood fiber structure from image](https://discourse.processing.org/t/retrieve-real-wood-fiber-structure-from-image/1731)

<div class="topic-metadata">

**Author:** [@Han](https://discourse.processing.org/u/Han)\
**Replies:** 4\
**Last updated:** [July 17, 2018, 2:22am UTC](https://discourse.processing.org/t/retrieve-real-wood-fiber-structure-from-image/1731 "2018-07-17T02:22:37Z")

</div>

I am going to write a program to process an image with very fine wood fibers in it. Please have a look at this for a quick idea - http://alturl.com/7jnuh What I want to do is keep only the fiber lines in a black and whi…

---

## [Run processing sketch without window?](https://discourse.processing.org/t/run-processing-sketch-without-window/1826)

<div class="topic-metadata">

**Author:** [@cumulus](https://discourse.processing.org/u/cumulus)\
**Replies:** 1\
**Last updated:** [July 16, 2018, 6:44pm UTC](https://discourse.processing.org/t/run-processing-sketch-without-window/1826 "2018-07-16T18:44:50Z")

</div>

Is it possible to run a processing sketch without having the applet window appear? This would be very useful for extensively testing non-processing functionality inside the draw call. The draw function should still be …

---

## [ProcessBuilder ByteBuffer error](https://discourse.processing.org/t/processbuilder-bytebuffer-error/1799)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 0\
**Last updated:** [July 15, 2018, 9:48pm UTC](https://discourse.processing.org/t/processbuilder-bytebuffer-error/1799 "2018-07-15T21:48:57Z")

</div>

I’ve been playing a game that’s written in Java. I host a custom modified dedicated server for it, which is a java command line program. I’m making a wrapper and GUI for it in processing, which has mostly worked out wel…

---

## [Iterate throw JSON array values](https://discourse.processing.org/t/iterate-throw-json-array-values/1710)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 3\
**Last updated:** [July 15, 2018, 2:38pm UTC](https://discourse.processing.org/t/iterate-throw-json-array-values/1710 "2018-07-15T14:38:08Z")

</div>

Hello, I have those JSON data and I would like to iterate throw the lines who stars with 527157\_FacetSep\_ { "response":{"numFound":1587807,"start":0,"docs":\[\] }, "facet\_counts":{ "facet\_queries":{}, "face…

---

## [Run shader multiple times on an image?](https://discourse.processing.org/t/run-shader-multiple-times-on-an-image/1749)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 3\
**Last updated:** [July 15, 2018, 7:43am UTC](https://discourse.processing.org/t/run-shader-multiple-times-on-an-image/1749 "2018-07-15T07:43:40Z")

</div>

I’d like to run a single shader several times on an image (to build up the effect), but if I stick the basic shader code in a for loop it doesn’t seem to work: for (int i=0; i\<10; i++) { shader(doSomething); image(i…

---

## [Dynamic casting example](https://discourse.processing.org/t/dynamic-casting-example/1775)

<div class="topic-metadata">

**Author:** [@bontempos](https://discourse.processing.org/u/bontempos)\
**Replies:** 2\
**Last updated:** [July 15, 2018, 1:28am UTC](https://discourse.processing.org/t/dynamic-casting-example/1775 "2018-07-15T01:28:38Z")

</div>

I would like some help to understand why casting Object to Object returns true on Output #5 and false on Output #7 if eventually I think both are comparing same object being casted by same class. Thanks you class Test …

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=180)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=182)
