# Processing

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

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

**Page:** 380

---

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

---

## [Processing won't launch 3.3.7 Windows 10](https://discourse.processing.org/t/processing-wont-launch-3-3-7-windows-10/1893)

<div class="topic-metadata">

**Author:** [@DevilishTruthStare](https://discourse.processing.org/u/DevilishTruthStare)\
**Replies:** 2\
**Last updated:** [July 19, 2018, 5:30am UTC](https://discourse.processing.org/t/processing-wont-launch-3-3-7-windows-10/1893 "2018-07-19T05:30:05Z")

</div>

I just downloaded processing and the program doesn’t launch. I read through this page and it seems like I should be able to just download the file, extract it and run the .exe, However when I do so, I get the loading scr…

---

## [Testing for function keys in Processing 3.3.7](https://discourse.processing.org/t/testing-for-function-keys-in-processing-3-3-7/1891)

<div class="topic-metadata">

**Author:** [@MCCreeper8890](https://discourse.processing.org/u/MCCreeper8890)\
**Replies:** 4\
**Last updated:** [July 19, 2018, 3:47am UTC](https://discourse.processing.org/t/testing-for-function-keys-in-processing-3-3-7/1891 "2018-07-19T03:47:03Z")

</div>

I am developing a “simple” game based around the QueasyCam library. So far, I have implemented terrain generation and a skydome. The things I will put in next are player movement, third-person capability, surface physics…

---

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

---

## [How to make this boxes animation](https://discourse.processing.org/t/how-to-make-this-boxes-animation/1782)

<div class="topic-metadata">

**Author:** [@carlwh123](https://discourse.processing.org/u/carlwh123)\
**Replies:** 13\
**Last updated:** [July 18, 2018, 6:53am UTC](https://discourse.processing.org/t/how-to-make-this-boxes-animation/1782 "2018-07-18T06:53:23Z")

</div>

Hi guys, This is my first post here and I’m a beginner so I’m happy for you to explain anything you feel is relevant or link me any good resources. I have watched all the Daniel Shiffman (love that guy!) videos. I’m th…

---

## [Sigma effect for image](https://discourse.processing.org/t/sigma-effect-for-image/1712)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 13\
**Last updated:** [July 18, 2018, 6:50am UTC](https://discourse.processing.org/t/sigma-effect-for-image/1712 "2018-07-18T06:50:59Z")

</div>

Hi, I found a nice effect for video in vlc : sigma Here is the original There is a way to do the same with PImage, something like a filter?

---

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

---

## [Please delete this post](https://discourse.processing.org/t/please-delete-this-post/1870)

<div class="topic-metadata">

**Author:** [@jdp123](https://discourse.processing.org/u/jdp123)\
**Replies:** 0\
**Last updated:** [July 18, 2018, 1:39am UTC](https://discourse.processing.org/t/please-delete-this-post/1870 "2018-07-18T01:39:48Z")

</div>

please delete this post

---

## [Unused variables](https://discourse.processing.org/t/unused-variables/1855)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 2\
**Last updated:** [July 18, 2018, 5:46am UTC](https://discourse.processing.org/t/unused-variables/1855 "2018-07-18T05:46:53Z")

</div>

the pde does not tell me or give me a list of unused variables declared but not used anywhere can i get this somehow when i run the sketch. it tells me if there is a variable it can’t find but i wanna know if i have on…

---

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

---

## [Size of canvas controlP5](https://discourse.processing.org/t/size-of-canvas-controlp5/1805)

<div class="topic-metadata">

**Author:** [@jimbojohn](https://discourse.processing.org/u/jimbojohn)\
**Replies:** 2\
**Last updated:** [July 17, 2018, 3:45pm UTC](https://discourse.processing.org/t/size-of-canvas-controlp5/1805 "2018-07-17T15:45:55Z")

</div>

Hi everyone, I have been trying to change the size of the canvas in the controlP5 canvas example. The method addcanvas seems to have a setPositions() but not a setSize(). I wonder if anyone knows how to change the size? …

---

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

---

## [Normalize Audio and Rect Height](https://discourse.processing.org/t/normalize-audio-and-rect-height/1816)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 2\
**Last updated:** [July 17, 2018, 2:21pm UTC](https://discourse.processing.org/t/normalize-audio-and-rect-height/1816 "2018-07-17T14:21:01Z")

</div>

Hi, I’m trying to build a program which generates a waveform in the middle of the screen. I want to map the height of my rectangle, the minimum height must be 0, and the maximum must not overpass 50 px. The problem is…

---

## [Questions for basic drawing program](https://discourse.processing.org/t/questions-for-basic-drawing-program/1819)

<div class="topic-metadata">

**Author:** [@EnigmaRM](https://discourse.processing.org/u/EnigmaRM)\
**Replies:** 4\
**Last updated:** [July 17, 2018, 12:10pm UTC](https://discourse.processing.org/t/questions-for-basic-drawing-program/1819 "2018-07-17T12:10:58Z")

</div>

pretty new to programming, so be easy on me please! Haha…I’m not sure what I am doing wrong, but I have two questions of things that don’t really affect the function of the program, but are annoying me. #1 is that while…

---

## [G4P tabulator in textarea](https://discourse.processing.org/t/g4p-tabulator-in-textarea/1845)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 2\
**Last updated:** [July 17, 2018, 11:34am UTC](https://discourse.processing.org/t/g4p-tabulator-in-textarea/1845 "2018-07-17T11:34:52Z")

</div>

Hi there, if I copy paste some data from excel into the texteditor (windows standard) I get fromatted text wih tabulator as space between data. If I copy paste it into a G4P textArea I get no tabulator-spaces whatsoeve…

---

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

---

## [Unable to form communication between processing and arduino](https://discourse.processing.org/t/unable-to-form-communication-between-processing-and-arduino/1771)

<div class="topic-metadata">

**Author:** [@ayesha](https://discourse.processing.org/u/ayesha)\
**Replies:** 2\
**Last updated:** [July 17, 2018, 9:23am UTC](https://discourse.processing.org/t/unable-to-form-communication-between-processing-and-arduino/1771 "2018-07-17T09:23:16Z")

</div>

I am trying to form serial communication between arduino and processing. I am trying the simple code of hello world but it is not working on processing. I am getting ArrayIndexOutOfBoundsException: 1. Please help, I need…

---

## [Color blending oddly on PGraphics](https://discourse.processing.org/t/color-blending-oddly-on-pgraphics/1844)

<div class="topic-metadata">

**Author:** [@RobS](https://discourse.processing.org/u/RobS)\
**Replies:** 2\
**Last updated:** [July 17, 2018, 6:31am UTC](https://discourse.processing.org/t/color-blending-oddly-on-pgraphics/1844 "2018-07-17T06:31:16Z")

</div>

Blending colors with a PGraphcs object gives odd, undesirable colors: In this example I’m blending the same shades of red of and blue, and getting two completely different results… Here’s my code: PGraphics merged; …

---

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

---

## [Using Qscript in java](https://discourse.processing.org/t/using-qscript-in-java/1833)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 17\
**Last updated:** [July 17, 2018, 12:21am UTC](https://discourse.processing.org/t/using-qscript-in-java/1833 "2018-07-17T00:21:19Z")

</div>

I am trying to use Qscript in my page, but cant find a tutorial saying how to use it? I’m thinking it does the math stuff I’m looking for in my Neural Network, but when I look for tutorials for java QScript I only gettin…

---

## [Drawing an image with icons](https://discourse.processing.org/t/drawing-an-image-with-icons/1828)

<div class="topic-metadata">

**Author:** [@Moe](https://discourse.processing.org/u/Moe)\
**Replies:** 4\
**Last updated:** [July 16, 2018, 8:47pm UTC](https://discourse.processing.org/t/drawing-an-image-with-icons/1828 "2018-07-16T20:47:48Z")

</div>

Hey Everyone, just a quick question… If I want to draw an image with a set of icons that I have, and I want the image to analize the colors in the icons and use the appropriate icon when it matches the color of the area …

---

## [Connect a function to a button created in an object (ControlP5)](https://discourse.processing.org/t/connect-a-function-to-a-button-created-in-an-object-controlp5/1821)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 6\
**Last updated:** [July 16, 2018, 8:26pm UTC](https://discourse.processing.org/t/connect-a-function-to-a-button-created-in-an-object-controlp5/1821 "2018-07-16T20:26:27Z")

</div>

Hello all, I have a class named “Interface” in witch I’m creating some buttons. I want to execute a function when a button is pressed. The problem is since I want my class to be generic, I can’t write that peace of co…

---

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

---

## [Reproduction behavior](https://discourse.processing.org/t/reproduction-behavior/1740)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 4\
**Last updated:** [July 16, 2018, 10:16am UTC](https://discourse.processing.org/t/reproduction-behavior/1740 "2018-07-16T10:16:26Z")

</div>

hi im new in programing and in processing and i use it with java in oracle, so sorry if my question is dumb or not clear. so here is my question, i want to make a reproduction mechanisme for my herbivor (herb3m for mal…

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

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