# Processing

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

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

**Page:** 351

---

## [Random functions from processing API for genetic algorithm?](https://discourse.processing.org/t/random-functions-from-processing-api-for-genetic-algorithm/5294)

<div class="topic-metadata">

**Author:** [@Hankg](https://discourse.processing.org/u/Hankg)\
**Replies:** 9\
**Last updated:** [November 7, 2018, 6:58am UTC](https://discourse.processing.org/t/random-functions-from-processing-api-for-genetic-algorithm/5294 "2018-11-07T06:58:13Z")

</div>

Hi! I want to build a program in which a class is constructed and then randomly adds, to itself, one of the various functions available in processing’s API. The result would be drawn to the screen (if in fact it calls a …

---

## [Developing a coding to move on a robot](https://discourse.processing.org/t/developing-a-coding-to-move-on-a-robot/5272)

<div class="topic-metadata">

**Author:** [@SteveTombs92](https://discourse.processing.org/u/SteveTombs92)\
**Replies:** 3\
**Last updated:** [November 7, 2018, 3:08am UTC](https://discourse.processing.org/t/developing-a-coding-to-move-on-a-robot/5272 "2018-11-07T03:08:03Z")

</div>

Hello Processing community. I am learning Processing by myself and I found some interesting exercises to develop coding, for a robot in this case. I have created the code. However, I am still do not know how I can trans…

---

## [Perlin Noise Loop Array](https://discourse.processing.org/t/perlin-noise-loop-array/5265)

<div class="topic-metadata">

**Author:** [@ronantuite](https://discourse.processing.org/u/ronantuite)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 9:17pm UTC](https://discourse.processing.org/t/perlin-noise-loop-array/5265 "2018-11-06T21:17:58Z")

</div>

Ive been stuck on the problem of drawing an array of zig-zag lines that uses Perlin Nosie to create the zig-zag. Im drawing the lines in the draw function which updates the points on the line continuously, making the lin…

---

## [Developing a Robot Into Command Keys Function](https://discourse.processing.org/t/developing-a-robot-into-command-keys-function/5273)

<div class="topic-metadata">

**Author:** [@SteveTombs92](https://discourse.processing.org/u/SteveTombs92)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 7:52pm UTC](https://discourse.processing.org/t/developing-a-robot-into-command-keys-function/5273 "2018-11-06T19:52:43Z")

</div>

Hello Processing friends. I have been learning Processing by myself and doing coding for robots. I am getting a lot of fun. However, I am getting frustrated because I has not been able to turn the code from mouse functio…

---

## [Creating the Code for A Robot with Command Keys](https://discourse.processing.org/t/creating-the-code-for-a-robot-with-command-keys/5274)

<div class="topic-metadata">

**Author:** [@SteveTombs92](https://discourse.processing.org/u/SteveTombs92)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 7:51pm UTC](https://discourse.processing.org/t/creating-the-code-for-a-robot-with-command-keys/5274 "2018-11-06T19:51:47Z")

</div>

Hello Processing folks. I am learning Processing by myself. I am getting fun because I am creating robots. Nevertheless, I feel like overwhelmed because I has not been capable of turning this code from mouse function int…

---

## [Question about Draw Arrays](https://discourse.processing.org/t/question-about-draw-arrays/5270)

<div class="topic-metadata">

**Author:** [@Blake](https://discourse.processing.org/u/Blake)\
**Replies:** 2\
**Last updated:** [November 6, 2018, 7:09pm UTC](https://discourse.processing.org/t/question-about-draw-arrays/5270 "2018-11-06T19:09:03Z")

</div>

OK, new to processing here, I could use a little help solving this. What I am trying to do. Use an Arduino/motion detector to detect when someone walks by. When they do walk by I want a random .PNG from a file to open …

---

## [Quarks Shape3d - BezTube Editor Generating Wrong Code](https://discourse.processing.org/t/quarks-shape3d-beztube-editor-generating-wrong-code/4961)

<div class="topic-metadata">

**Author:** [@ZigZag](https://discourse.processing.org/u/ZigZag)\
**Replies:** 15\
**Last updated:** [November 6, 2018, 5:50pm UTC](https://discourse.processing.org/t/quarks-shape3d-beztube-editor-generating-wrong-code/4961 "2018-11-06T17:50:07Z")

</div>

Hello, I have been exploring the (excellent) Shapes3D library by Quark. I attempted to reply to a thread from a post on this same topic last year where this exact problem was discussed but keep getting kicked back to th…

---

## [Plotting a scrolling Graph](https://discourse.processing.org/t/plotting-a-scrolling-graph/5219)

<div class="topic-metadata">

**Author:** [@romek](https://discourse.processing.org/u/romek)\
**Replies:** 28\
**Last updated:** [November 6, 2018, 4:35pm UTC](https://discourse.processing.org/t/plotting-a-scrolling-graph/5219 "2018-11-06T16:35:35Z")

</div>

Hello !, for my school project I need to make a scrolling graph of several data. It’s combined with arduino data. We are already at the point that arduino sends the data from the sensors to processing, and everything w…

---

## [ Playing video backwards (ogg file does not load)](https://discourse.processing.org/t/playing-video-backwards-ogg-file-does-not-load/5243)

<div class="topic-metadata">

**Author:** [@eda](https://discourse.processing.org/u/eda)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 12:36pm UTC](https://discourse.processing.org/t/playing-video-backwards-ogg-file-does-not-load/5243 "2018-11-06T12:36:14Z")

</div>

Hello, I am trying to play a video backwards and forwards. As advised on the video library - speed (https://processing.org/reference/libraries/video/Movie\_speed\_.html ), I managed to convert the video from a mp4 to ogg f…

---

## [Is "text()" a good idea for this game?](https://discourse.processing.org/t/is-text-a-good-idea-for-this-game/5234)

<div class="topic-metadata">

**Author:** [@Oighen](https://discourse.processing.org/u/Oighen)\
**Replies:** 7\
**Last updated:** [November 6, 2018, 10:27am UTC](https://discourse.processing.org/t/is-text-a-good-idea-for-this-game/5234 "2018-11-06T10:27:58Z")

</div>

Hi all, I’m trying to write a sketch, a sort of game, so that: At the beginning of the game the “\*” character is at the center of the screen and a certain number (nz=8) of a different character, “0”, are at the borde…

---

## [Please greatly teach me how to use the work to present it. I am very grateful](https://discourse.processing.org/t/please-greatly-teach-me-how-to-use-the-work-to-present-it-i-am-very-grateful/5195)

<div class="topic-metadata">

**Author:** [@alk5603](https://discourse.processing.org/u/alk5603)\
**Replies:** 10\
**Last updated:** [November 6, 2018, 10:24am UTC](https://discourse.processing.org/t/please-greatly-teach-me-how-to-use-the-work-to-present-it-i-am-very-grateful/5195 "2018-11-06T10:24:27Z")

</div>

I would like to ask you a lot like this triangle. How can I present it in a recursive way? How can I play?

---

## [Processing program tutor](https://discourse.processing.org/t/processing-program-tutor/5252)

<div class="topic-metadata">

**Author:** [@sarayncho](https://discourse.processing.org/u/sarayncho)\
**Replies:** 1\
**Last updated:** [November 6, 2018, 6:47am UTC](https://discourse.processing.org/t/processing-program-tutor/5252 "2018-11-06T06:47:22Z")

</div>

I’m a parent of a high school student in Connecticut. She’s trying to learn progressing for her independent study program but she needs help. I’m looking for someone who could her understand coding language and processin…

---

## [lerpColor and float\[\] values do not seem to change](https://discourse.processing.org/t/lerpcolor-and-float-values-do-not-seem-to-change/5207)

<div class="topic-metadata">

**Author:** [@mhmmadeel](https://discourse.processing.org/u/mhmmadeel)\
**Replies:** 4\
**Last updated:** [November 6, 2018, 2:00am UTC](https://discourse.processing.org/t/lerpcolor-and-float-values-do-not-seem-to-change/5207 "2018-11-06T02:00:52Z")

</div>

Hi everyone :blush: I’m currently new to coding and am taking a class for it at a university. I have a code running which is currently reading the data from the NYC Tree Census and loading svg’s of the leaf shape for t…

---

## [Alternative to for and while loops?](https://discourse.processing.org/t/alternative-to-for-and-while-loops/5142)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 6\
**Last updated:** [November 6, 2018, 12:19am UTC](https://discourse.processing.org/t/alternative-to-for-and-while-loops/5142 "2018-11-06T00:19:28Z")

</div>

I‘m looking for an alternative for for and while loops. The functionality i‘m looking for is basically the speed given by a for loop or a while loop. The Problem lies in the fact, that if my for loop is too big (millions…

---

## [Moving objects: move game ghost back and forth](https://discourse.processing.org/t/moving-objects-move-game-ghost-back-and-forth/5206)

<div class="topic-metadata">

**Author:** [@ari\_y](https://discourse.processing.org/u/ari_y)\
**Replies:** 5\
**Last updated:** [November 5, 2018, 11:18pm UTC](https://discourse.processing.org/t/moving-objects-move-game-ghost-back-and-forth/5206 "2018-11-05T23:18:14Z")

</div>

I’m new to coding and I’m trying to write a program that is similar to the pacman game. I can’t figure out how to move the ghost back and forth using parameters. here’s part of my code: void drawRedghost(int x, int y)…

---

## [Problem with colors](https://discourse.processing.org/t/problem-with-colors/5241)

<div class="topic-metadata">

**Author:** [@mikany](https://discourse.processing.org/u/mikany)\
**Replies:** 1\
**Last updated:** [November 5, 2018, 10:08pm UTC](https://discourse.processing.org/t/problem-with-colors/5241 "2018-11-05T22:08:44Z")

</div>

Hi my project is a little paint program but i have problems with the colorChooser in java , for change of color , to change color, pressing the color button opens chooser color but does not change it.

---

## [Loading in svg : problem](https://discourse.processing.org/t/loading-in-svg-problem/5224)

<div class="topic-metadata">

**Author:** [@Elrig23](https://discourse.processing.org/u/Elrig23)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 8:31pm UTC](https://discourse.processing.org/t/loading-in-svg-problem/5224 "2018-11-05T20:31:00Z")

</div>

Hi there I am trying to import a vector using the load shape command, it’s a Dennis the menace top and it keeps loading in as black. I haven’t done any fills just a standard loadshape. What could I do to fix this ?

---

## [I need help with my program ( PROCESSING 3.0)](https://discourse.processing.org/t/i-need-help-with-my-program-processing-3-0/5212)

<div class="topic-metadata">

**Author:** [@epicwyvern](https://discourse.processing.org/u/epicwyvern)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 8:17pm UTC](https://discourse.processing.org/t/i-need-help-with-my-program-processing-3-0/5212 "2018-11-05T20:17:54Z")

</div>

hi i need help. i have a settings page for this program that has a function to turn the border on and off, which is controlled by the boolean borders. however, another function, which can turn the background on or off, …

---

## [PImage::save() returns a bigger image than the input](https://discourse.processing.org/t/pimage-save-returns-a-bigger-image-than-the-input/5231)

<div class="topic-metadata">

**Author:** [@Rothuskrill](https://discourse.processing.org/u/Rothuskrill)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 5:18pm UTC](https://discourse.processing.org/t/pimage-save-returns-a-bigger-image-than-the-input/5231 "2018-11-05T17:18:50Z")

</div>

Hello everyone, I am currenlty playing with the load/save methods built-in processing, and I notice something weird with this simple snippet : PImage test = loadImage(“store.png”); test.save(“store2.png”); The image …

---

## [Point co-ordinate generator using mouse](https://discourse.processing.org/t/point-co-ordinate-generator-using-mouse/5203)

<div class="topic-metadata">

**Author:** [@ReDeagle](https://discourse.processing.org/u/ReDeagle)\
**Replies:** 7\
**Last updated:** [November 5, 2018, 1:52pm UTC](https://discourse.processing.org/t/point-co-ordinate-generator-using-mouse/5203 "2018-11-05T13:52:39Z")

</div>

I’m trying to make a piece of code that displays the co-ordinates at which the mouseX and mouseY co-ordinates are. This is the code I have so far… Help? int mousex = mouseX; int mousey = mouseY; void setup () { size (…

---

## [Moving line graph](https://discourse.processing.org/t/moving-line-graph/4463)

<div class="topic-metadata">

**Author:** [@Myselium](https://discourse.processing.org/u/Myselium)\
**Replies:** 6\
**Last updated:** [November 5, 2018, 11:10am UTC](https://discourse.processing.org/t/moving-line-graph/4463 "2018-11-05T11:10:24Z")

</div>

Hello, Currently im working on a project to control an arduino with processing. The serial communication is going fine but i cant seem to find any good way to put waveforms into a moving line graph. I have looked at …

---

## [Making a secret message reader](https://discourse.processing.org/t/making-a-secret-message-reader/5031)

<div class="topic-metadata">

**Author:** [@Dee-3\_123](https://discourse.processing.org/u/Dee-3_123)\
**Replies:** 23\
**Last updated:** [November 5, 2018, 10:11am UTC](https://discourse.processing.org/t/making-a-secret-message-reader/5031 "2018-11-05T10:11:05Z")

</div>

Hello everyone, right now I am working on a code which accepts number of letters from users and convert it in encrypted message. but I had a problem while declaring 8=1. how can I declare 8=1.

---

## [Help with drawing checker board](https://discourse.processing.org/t/help-with-drawing-checker-board/5214)

<div class="topic-metadata">

**Author:** [@gpevehou](https://discourse.processing.org/u/gpevehou)\
**Replies:** 3\
**Last updated:** [November 5, 2018, 7:22am UTC](https://discourse.processing.org/t/help-with-drawing-checker-board/5214 "2018-11-05T07:22:09Z")

</div>

For my assignment, we have to create a chess board on a canvas so that it doesn’t take up the full canvas. However, all I can create is one that does not look completed. Each square must be 3030 and it is an 88 board. I …

---

## [Referencing a variable of any data type](https://discourse.processing.org/t/referencing-a-variable-of-any-data-type/5213)

<div class="topic-metadata">

**Author:** [@Mchar7](https://discourse.processing.org/u/Mchar7)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 5:19am UTC](https://discourse.processing.org/t/referencing-a-variable-of-any-data-type/5213 "2018-11-05T05:19:48Z")

</div>

So, I am trying to make a function that will display a certain picture OR play a video depending on whether the variable passed to the function as an argument is a picture (data type PImage) or a video (data type Movie).…

---

## [How to code 3 magnets?](https://discourse.processing.org/t/how-to-code-3-magnets/5173)

<div class="topic-metadata">

**Author:** [@Lexyth](https://discourse.processing.org/u/Lexyth)\
**Replies:** 4\
**Last updated:** [November 5, 2018, 4:35am UTC](https://discourse.processing.org/t/how-to-code-3-magnets/5173 "2018-11-05T04:35:17Z")

</div>

Hi, what i need is less an actualy magnet, than an object that attracts at a higher distance and pushes back if closer. Though not as simple as that. It should basically end up being stuck on a perimeter around the 2st …

---

## [File syntax for subdirectory](https://discourse.processing.org/t/file-syntax-for-subdirectory/5200)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 2\
**Last updated:** [November 5, 2018, 2:15am UTC](https://discourse.processing.org/t/file-syntax-for-subdirectory/5200 "2018-11-05T02:15:41Z")

</div>

I use creatWriter to output to a file. it works for the first level dircetory example: createWriter("c:/main "+string); so i created a c:/main/reports but when i try to output to that sub directory it just writes it …

---

## [Problem with a variable. Don't know where to declare](https://discourse.processing.org/t/problem-with-a-variable-dont-know-where-to-declare/5155)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 8\
**Last updated:** [November 4, 2018, 11:32pm UTC](https://discourse.processing.org/t/problem-with-a-variable-dont-know-where-to-declare/5155 "2018-11-04T23:32:54Z")

</div>

Hello, I made a program with works when two variables (here two pulsations) are declared before the setup with a constant value. Like that: float w1 = 0.1; float w2 = 0.11; But actually I want the second value…

---

## [Refreshing a SoundFile](https://discourse.processing.org/t/refreshing-a-soundfile/5198)

<div class="topic-metadata">

**Author:** [@LapnLook](https://discourse.processing.org/u/LapnLook)\
**Replies:** 0\
**Last updated:** [November 4, 2018, 8:38pm UTC](https://discourse.processing.org/t/refreshing-a-soundfile/5198 "2018-11-04T20:38:41Z")

</div>

Hi I’m playing around with the sound library of Processing to create a very basic synthesizer of sorts. My sketch right now displays a few draggable sliders, using which the user can define a waveform. When the “t” key …

---

## [Playing video backwards (ogg file does not load)](https://discourse.processing.org/t/playing-video-backwards-ogg-file-does-not-load/5194)

<div class="topic-metadata">

**Author:** [@eda](https://discourse.processing.org/u/eda)\
**Replies:** 0\
**Last updated:** [November 4, 2018, 7:14pm UTC](https://discourse.processing.org/t/playing-video-backwards-ogg-file-does-not-load/5194 "2018-11-04T19:14:57Z")

</div>

Hello, I am trying to play a video backwards and forwards. As advised on the video library - speed (https://processing.org/reference/libraries/video/Movie\_speed\_.html), I managed to convert the video from a mp4 to ogg fi…

---

## [oscP5 TCPIP stop in client cant disconnect from server](https://discourse.processing.org/t/oscp5-tcpip-stop-in-client-cant-disconnect-from-server/5178)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 1\
**Last updated:** [November 4, 2018, 9:34am UTC](https://discourse.processing.org/t/oscp5-tcpip-stop-in-client-cant-disconnect-from-server/5178 "2018-11-04T09:34:38Z")

</div>

Hello, i want to stop and start new connection, but oscP5tcpClient.stop(); not working… Can i somehow disconnect from the server ? and create new connection ? CLIENT import oscP5.\*; OscP5 oscP5tcpClient; OscMessage m;…

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

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