# Processing

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

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

**Page:** 349

---

## [Width (0) and height (0) cannot be \<= 0](https://discourse.processing.org/t/width-0-and-height-0-cannot-be-0/5459)

<div class="topic-metadata">

**Author:** [@ProcessingSuzanne](https://discourse.processing.org/u/ProcessingSuzanne)\
**Replies:** 9\
**Last updated:** [November 12, 2018, 11:48am UTC](https://discourse.processing.org/t/width-0-and-height-0-cannot-be-0/5459 "2018-11-12T11:48:34Z")

</div>

I am working on a very simple BackgroundSubtraction code on processing. In the beginning everything was woking fine but now I get the “Width (0) and height (0) cannot be \<= 0” error every time I try to play the code. Her…

---

## [.net installation error?](https://discourse.processing.org/t/net-installation-error/2160)

<div class="topic-metadata">

**Author:** [@david4121](https://discourse.processing.org/u/david4121)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 8:59am UTC](https://discourse.processing.org/t/net-installation-error/2160 "2018-11-12T08:59:40Z")

</div>

Can anybody help me to update .Net framework?

---

## [TouchOSC not controling slider on PC](https://discourse.processing.org/t/touchosc-not-controling-slider-on-pc/5158)

<div class="topic-metadata">

**Author:** [@Lourens](https://discourse.processing.org/u/Lourens)\
**Replies:** 2\
**Last updated:** [November 12, 2018, 8:24am UTC](https://discourse.processing.org/t/touchosc-not-controling-slider-on-pc/5158 "2018-11-12T08:24:19Z")

</div>

Hi this is my first post. I followed the following tutorial on Youtube on how to control sliders with TouchOSC from my iPhone to my PC. Getting the phone set up was easy, but the sliders on the phone does not control t…

---

## [Get degree direction from point to point](https://discourse.processing.org/t/get-degree-direction-from-point-to-point/5464)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 1\
**Last updated:** [November 12, 2018, 7:30am UTC](https://discourse.processing.org/t/get-degree-direction-from-point-to-point/5464 "2018-11-12T07:30:48Z")

</div>

How can i get the degree direction from x1 y1 to x2 y2?example… x1 = 0 y1 = 0 x2 = 100 y2 = 100 Its equals 45°… I tried to make it myself but it not 100% accurate method…its showing 10-15 more degrees than needed…

---

## [All sketches heavily stuttering every 5-10 seconds](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384)

<div class="topic-metadata">

**Author:** [@lokus](https://discourse.processing.org/u/lokus)\
**Replies:** 6\
**Last updated:** [November 11, 2018, 11:08pm UTC](https://discourse.processing.org/t/all-sketches-heavily-stuttering-every-5-10-seconds/5384 "2018-11-11T23:08:40Z")

</div>

I have no idea what’s causing this, it doesn’t have anything to do with the code. Even the demo sketches are affected in exactly the same way. I’ve tried a clean java install and increasing available memory to 1024MB in …

---

## [Problem with slitscan effect for pre-recorded video](https://discourse.processing.org/t/problem-with-slitscan-effect-for-pre-recorded-video/5456)

<div class="topic-metadata">

**Author:** [@KarlKlimpe](https://discourse.processing.org/u/KarlKlimpe)\
**Replies:** 4\
**Last updated:** [November 11, 2018, 11:04pm UTC](https://discourse.processing.org/t/problem-with-slitscan-effect-for-pre-recorded-video/5456 "2018-11-11T23:04:08Z")

</div>

Hello everyone I am trying do slitscan effects, but instead of sourcing the feed from a webcam i want to apply the effect on pre-recorded video. I run into some problems with the copy command. I can load the sketch, b…

---

## [Problem while creating a brick breaker game](https://discourse.processing.org/t/problem-while-creating-a-brick-breaker-game/5416)

<div class="topic-metadata">

**Author:** [@fritzpal](https://discourse.processing.org/u/fritzpal)\
**Replies:** 2\
**Last updated:** [November 11, 2018, 6:25pm UTC](https://discourse.processing.org/t/problem-while-creating-a-brick-breaker-game/5416 "2018-11-11T18:25:21Z")

</div>

Hi, Can somebody help me display the bricks correctly. I can´t get it to work. I think the problem is the array and how I determine the position of the bricks. Thank you! Here\`s the main Program: SpielerFlaeche play…

---

## [Problems adding Papaya Library](https://discourse.processing.org/t/problems-adding-papaya-library/5372)

<div class="topic-metadata">

**Author:** [@Mick](https://discourse.processing.org/u/Mick)\
**Replies:** 2\
**Last updated:** [November 11, 2018, 6:21pm UTC](https://discourse.processing.org/t/problems-adding-papaya-library/5372 "2018-11-11T18:21:41Z")

</div>

Hi fellow programmers, I want to use statistics in my code and therefore I’m trying to add the Papaya library to Processing. I added the library to the library folder of processing, but for some reason it doesn’t work. …

---

## [How can i get and set a cookie from a web browser with client.write and client.read?](https://discourse.processing.org/t/how-can-i-get-and-set-a-cookie-from-a-web-browser-with-client-write-and-client-read/5443)

<div class="topic-metadata">

**Author:** [@Quix](https://discourse.processing.org/u/Quix)\
**Replies:** 1\
**Last updated:** [November 11, 2018, 5:24pm UTC](https://discourse.processing.org/t/how-can-i-get-and-set-a-cookie-from-a-web-browser-with-client-write-and-client-read/5443 "2018-11-11T17:24:06Z")

</div>

Hi i want to know if i can get a cookie from client.write and client.readstring? here is my code import processing.net.\*; import processing.video.\*; import java.io.File; Server myServer; int nb = 0; byte\[\] logo; void…

---

## [Loading data / Constructor problem](https://discourse.processing.org/t/loading-data-constructor-problem/5179)

<div class="topic-metadata">

**Author:** [@RC75018](https://discourse.processing.org/u/RC75018)\
**Replies:** 3\
**Last updated:** [November 11, 2018, 5:09pm UTC](https://discourse.processing.org/t/loading-data-constructor-problem/5179 "2018-11-11T17:09:32Z")

</div>

Hi Everyone, I am learning processing with Daniel @shiffman Book (learning processing + Youtube video) and got stuck at exercise 18-7 (Data input from text files). I can’t find the solution online, that is why i am ask…

---

## [Graphica DateTimeStamp](https://discourse.processing.org/t/graphica-datetimestamp/5450)

<div class="topic-metadata">

**Author:** [@pacolux](https://discourse.processing.org/u/pacolux)\
**Replies:** 1\
**Last updated:** [November 11, 2018, 3:58pm UTC](https://discourse.processing.org/t/graphica-datetimestamp/5450 "2018-11-11T15:58:20Z")

</div>

Does anyone know if the Graphica library can have a datetimestamp as one of its axis? I see years being used in an example but cannot seem to find datetime used. Tia!

---

## [Draw a curve that touches 3 points](https://discourse.processing.org/t/draw-a-curve-that-touches-3-points/5104)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 10\
**Last updated:** [November 11, 2018, 3:36pm UTC](https://discourse.processing.org/t/draw-a-curve-that-touches-3-points/5104 "2018-11-11T15:36:57Z")

</div>

Draw a curve that touches 3 points (1 starting point, 2 medium, 3 final) coordinates: 1 (10,10) 2 (100,200) (200,10) I must implement the curve function () without using libraries and manipulating pixels with pixel \[\] …

---

## [Toxiclibs + GPU (openGL) processing 3](https://discourse.processing.org/t/toxiclibs-gpu-opengl-processing-3/5378)

<div class="topic-metadata">

**Author:** [@bryan](https://discourse.processing.org/u/bryan)\
**Replies:** 14\
**Last updated:** [November 11, 2018, 2:32pm UTC](https://discourse.processing.org/t/toxiclibs-gpu-opengl-processing-3/5378 "2018-11-11T14:32:07Z")

</div>

Hi! Does anyone know how to create surfaces with toxiclibs using low level OpenGL functions? i’ve seen documentation but only for processing 2 or below, but can’t figure out how to make it work. with big surfaces the fr…

---

## [controlP5TextField+Keypressed event](https://discourse.processing.org/t/controlp5textfield-keypressed-event/5442)

<div class="topic-metadata">

**Author:** [@Gui](https://discourse.processing.org/u/Gui)\
**Replies:** 0\
**Last updated:** [November 11, 2018, 12:30pm UTC](https://discourse.processing.org/t/controlp5textfield-keypressed-event/5442 "2018-11-11T12:30:03Z")

</div>

Hey, so I’ve been having some problems with this: I want to have a box where I can write and the text appears while I write, so I used the TextField. The thing is, at the same time, when I press a key it’s supposed to ma…

---

## [Need help on a short animation](https://discourse.processing.org/t/need-help-on-a-short-animation/5438)

<div class="topic-metadata">

**Author:** [@Robin73](https://discourse.processing.org/u/Robin73)\
**Replies:** 2\
**Last updated:** [November 11, 2018, 12:24pm UTC](https://discourse.processing.org/t/need-help-on-a-short-animation/5438 "2018-11-11T12:24:44Z")

</div>

so i had in mind to make spawn 3000 pac man at the same time in random (x;y) and i want them to go on the right. But when i try only one spawn in random(x;y) and he is nice going on the right but i can’t make spawn 3000 …

---

## [Error in every ControlWindow function](https://discourse.processing.org/t/error-in-every-controlwindow-function/5398)

<div class="topic-metadata">

**Author:** [@sukh](https://discourse.processing.org/u/sukh)\
**Replies:** 3\
**Last updated:** [November 11, 2018, 11:20am UTC](https://discourse.processing.org/t/error-in-every-controlwindow-function/5398 "2018-11-11T11:20:32Z")

</div>

While running this line of code: controlWindow.hideCoordinates(); controlWindow.setTitle("Decoding Parameters"); It says: The function “hideCoordinates()” does not exist The function “setTitle(String)” does not exist

---

## [How to access all variables of a single class?](https://discourse.processing.org/t/how-to-access-all-variables-of-a-single-class/5409)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 5\
**Last updated:** [November 11, 2018, 11:14am UTC](https://discourse.processing.org/t/how-to-access-all-variables-of-a-single-class/5409 "2018-11-11T11:14:56Z")

</div>

Say, for example, I have this class: class thing{ float x; float y; String z; String w; boolean omega; int foo; thing(){} //A meh constructor, I know. .\_. } And I want to repeat a specific set of code on …

---

## [Problem with audio in a long video mp4 file](https://discourse.processing.org/t/problem-with-audio-in-a-long-video-mp4-file/5421)

<div class="topic-metadata">

**Author:** [@Treedom](https://discourse.processing.org/u/Treedom)\
**Replies:** 0\
**Last updated:** [November 11, 2018, 4:37am UTC](https://discourse.processing.org/t/problem-with-audio-in-a-long-video-mp4-file/5421 "2018-11-11T04:37:50Z")

</div>

The code below works with normally shorter MP4 files, however when I attempt to use the code for a very long MP4 of about 12 hours in length, the video plays without any problems however the audio does not play. I am new…

---

## [Is there a way to have an image on top of animation?](https://discourse.processing.org/t/is-there-a-way-to-have-an-image-on-top-of-animation/5419)

<div class="topic-metadata">

**Author:** [@josie](https://discourse.processing.org/u/josie)\
**Replies:** 5\
**Last updated:** [November 11, 2018, 4:38am UTC](https://discourse.processing.org/t/is-there-a-way-to-have-an-image-on-top-of-animation/5419 "2018-11-11T04:38:55Z")

</div>

Hi, I’m very new to processing, so I’m sorry if I make many mistakes! I have to use processing for a project and I was able to get this down: Lines\[\] lines = new Lines\[100\]; void setup(){ size(800,800); for(int i = …

---

## [Processing's windows overlap Windows's toolbar - avoidable?](https://discourse.processing.org/t/processings-windows-overlap-windowss-toolbar-avoidable/5180)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 3\
**Last updated:** [November 10, 2018, 7:34pm UTC](https://discourse.processing.org/t/processings-windows-overlap-windowss-toolbar-avoidable/5180 "2018-11-10T19:34:51Z")

</div>

How to avoid overlapping of windows created by Processing with Windows 8 toolbar? App sets window size with size() Makes window resizable with surface.setResizable(true) Monitors Processing’s width/height variables and…

---

## [How can I play this?](https://discourse.processing.org/t/how-can-i-play-this/5286)

<div class="topic-metadata">

**Author:** [@alk5603](https://discourse.processing.org/u/alk5603)\
**Replies:** 6\
**Last updated:** [November 10, 2018, 9:39pm UTC](https://discourse.processing.org/t/how-can-i-play-this/5286 "2018-11-10T21:39:06Z")

</div>

How can I play this?

---

## [ProcessingML (an OCaml implementation of Processing)](https://discourse.processing.org/t/processingml-an-ocaml-implementation-of-processing/5413)

<div class="topic-metadata">

**Author:** [@Vertmo](https://discourse.processing.org/u/Vertmo)\
**Replies:** 0\
**Last updated:** [November 10, 2018, 9:30pm UTC](https://discourse.processing.org/t/processingml-an-ocaml-implementation-of-processing/5413 "2018-11-10T21:30:20Z")

</div>

Hi ! I’ve been working on my own implementation of Processing, ProcessingML. It is based on the OCaml programming language, which is a (mostly) functional and statically typed programming language. My implementation is…

---

## [Can I create text tools?](https://discourse.processing.org/t/can-i-create-text-tools/5404)

<div class="topic-metadata">

**Author:** [@seo](https://discourse.processing.org/u/seo)\
**Replies:** 5\
**Last updated:** [November 10, 2018, 6:28pm UTC](https://discourse.processing.org/t/can-i-create-text-tools/5404 "2018-11-10T18:28:57Z")

</div>

Here is a text tool for MS Paint. Can you do something like this in processing?

---

## [Get Processing to provide Sources and Javadocs (As Jars) for it's libraries](https://discourse.processing.org/t/get-processing-to-provide-sources-and-javadocs-as-jars-for-its-libraries/5408)

<div class="topic-metadata">

**Author:** [@Angle](https://discourse.processing.org/u/Angle)\
**Replies:** 0\
**Last updated:** [November 10, 2018, 6:16pm UTC](https://discourse.processing.org/t/get-processing-to-provide-sources-and-javadocs-as-jars-for-its-libraries/5408 "2018-11-10T18:16:15Z")

</div>

I’m using processing libraries in Eclipse. They work, but there are no javadocs or sources to attach. Is there a way to get the processing app to provide these? I use it, but just to download libraries and view examples. …

---

## [Learning GLSL - Example](https://discourse.processing.org/t/learning-glsl-example/5407)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 0\
**Last updated:** [November 10, 2018, 5:01pm UTC](https://discourse.processing.org/t/learning-glsl-example/5407 "2018-11-10T17:01:47Z")

</div>

Hi everybody! im learning GLSL, and i want to learn how can i port this example from shaderToy to processing. What i want is that feedback effect, i not intersting in geometry. So, i made a simple sketch with a sphere. A…

---

## [Learn about matrices](https://discourse.processing.org/t/learn-about-matrices/5405)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 5:32pm UTC](https://discourse.processing.org/t/learn-about-matrices/5405 "2018-11-10T17:32:05Z")

</div>

Is there anyone that has some resources that he/she considers good when it comes to learn about matrices? I feel like I should have learned about them a long time ago but a lot of tutorials are really dry and don’t go f…

---

## [Loading created image into array(list) for further use (movement)](https://discourse.processing.org/t/loading-created-image-into-array-list-for-further-use-movement/5362)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 4\
**Last updated:** [November 10, 2018, 5:22pm UTC](https://discourse.processing.org/t/loading-created-image-into-array-list-for-further-use-movement/5362 "2018-11-10T17:22:51Z")

</div>

Howdy! This is my first post. I created this program that generates grids with colored squares. The colors are randomized. Each is a new object that I create with mousePressed(). When they are created they are get place…

---

## [Building a custom rangeslider-component](https://discourse.processing.org/t/building-a-custom-rangeslider-component/5399)

<div class="topic-metadata">

**Author:** [@timrodenbroeker](https://discourse.processing.org/u/timrodenbroeker)\
**Replies:** 3\
**Last updated:** [November 10, 2018, 2:26pm UTC](https://discourse.processing.org/t/building-a-custom-rangeslider-component/5399 "2018-11-10T14:26:09Z")

</div>

Hi coders! I’m trying to build a custom rangeslider and it drives me crazy. Most parts of the code work fine, but the function that updates the value of the slider when the mouse drags it returns slighty different value…

---

## [Can't acces class variables in function](https://discourse.processing.org/t/cant-acces-class-variables-in-function/5403)

<div class="topic-metadata">

**Author:** [@benja8151](https://discourse.processing.org/u/benja8151)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 2:21pm UTC](https://discourse.processing.org/t/cant-acces-class-variables-in-function/5403 "2018-11-10T14:21:49Z")

</div>

Hello, before I start, I must say I’m pretty much a total newbie when it comes to programming in Processing, or in Java in general. As you can see, I have two shape classes, rectangle and circle. I’m trying to implement…

---

## [Thread hangs when no delay is used](https://discourse.processing.org/t/thread-hangs-when-no-delay-is-used/5352)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 11\
**Last updated:** [November 10, 2018, 11:07am UTC](https://discourse.processing.org/t/thread-hangs-when-no-delay-is-used/5352 "2018-11-10T11:07:45Z")

</div>

When I remove delay(1) in the code below then last\_frame will always be equal to frameCount and there is no movement. Why is that? PVector v = new PVector(); void setup() { thread("whyOwhy"); } void whyOwhy() { …

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

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