# Processing

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

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

**Page:** 365

---

## [\[SOLVED\] serial port write with no delay between bytes when sending hex values](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712)

<div class="topic-metadata">

**Author:** [@matt6ft9](https://discourse.processing.org/u/matt6ft9)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 3:27pm UTC](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712 "2018-09-21T15:27:58Z")

</div>

I’m trying to send hex data out of the FTDI serial port IC at 19200, 8N1. (windows 7, processing 3.3.6) When I use this code: public void button2(){ int i; int collect\[\] = {0x55,0x02,0x50,0xFE,0x20,0x20,0x20,0x20,0…

---

## [\[SOLVED\] Making the contents of a frame relative to its size](https://discourse.processing.org/t/solved-making-the-contents-of-a-frame-relative-to-its-size/3595)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 4\
**Last updated:** [September 21, 2018, 10:56am UTC](https://discourse.processing.org/t/solved-making-the-contents-of-a-frame-relative-to-its-size/3595 "2018-09-21T10:56:15Z")

</div>

Is there a way of making the contents in a frame relative to its size to make it completely resizable without losing functionality? I already have an idea of how to it but a small tutorial would be quite nice.

---

## [Clearing an ArrayList](https://discourse.processing.org/t/clearing-an-arraylist/3697)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 12\
**Last updated:** [September 21, 2018, 1:25am UTC](https://discourse.processing.org/t/clearing-an-arraylist/3697 "2018-09-21T01:25:25Z")

</div>

I’ve around this issue a few times. I have a particle system that contains an ArrayList of particles. I use a separate window for the interface programmed using Control P5. usually my particle system lies under a boolea…

---

## [\[SOLVED\] SinOsc in draw loop is very choppy (Sound Library)](https://discourse.processing.org/t/solved-sinosc-in-draw-loop-is-very-choppy-sound-library/3701)

<div class="topic-metadata">

**Author:** [@bobhurd](https://discourse.processing.org/u/bobhurd)\
**Replies:** 3\
**Last updated:** [September 20, 2018, 7:13pm UTC](https://discourse.processing.org/t/solved-sinosc-in-draw-loop-is-very-choppy-sound-library/3701 "2018-09-20T19:13:45Z")

</div>

I am a novice programmer having a problem with the Sound library. I am trying to use the SinOsc function to generate a smooth sine wave. I also want it to vary the pitch as it reads serial data (range 0 to 255) that is…

---

## [Setting all drum machine buttons to 0 with Minim Library](https://discourse.processing.org/t/setting-all-drum-machine-buttons-to-0-with-minim-library/3516)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 19\
**Last updated:** [September 20, 2018, 6:52pm UTC](https://discourse.processing.org/t/setting-all-drum-machine-buttons-to-0-with-minim-library/3516 "2018-09-20T18:52:51Z")

</div>

Hello everyone! I am using Processing Audio Library Minim and the example -\> Drum Machine I can post the code here, but it is an example of the library so I dont think its needed :stuck\_out\_tongue: Well, I am trying t…

---

## [Dragging a constrained object, and problems with conditional fill color](https://discourse.processing.org/t/dragging-a-constrained-object-and-problems-with-conditional-fill-color/3554)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 7\
**Last updated:** [September 20, 2018, 5:29pm UTC](https://discourse.processing.org/t/dragging-a-constrained-object-and-problems-with-conditional-fill-color/3554 "2018-09-20T17:29:51Z")

</div>

Hello. I have a sketch that draws a grid, and places a rectangular cursor which is constrained to the grid area, and snaps to the center of the nearest grid cell when the mouse is released. The center “Tile” for a grid c…

---

## [Using colors with variables](https://discourse.processing.org/t/using-colors-with-variables/3679)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 13\
**Last updated:** [September 20, 2018, 4:56pm UTC](https://discourse.processing.org/t/using-colors-with-variables/3679 "2018-09-20T16:56:12Z")

</div>

Hello. My problem is that when you press tab (to make the ellipse color be random) it works fine. But, when you change the size of the ellipse (with keys 1-3) the ellipse color isn’t random anymore, but on the last rando…

---

## [Eclipse setup and Processing core.jar for Libraries](https://discourse.processing.org/t/eclipse-setup-and-processing-core-jar-for-libraries/3686)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 1\
**Last updated:** [September 20, 2018, 2:13pm UTC](https://discourse.processing.org/t/eclipse-setup-and-processing-core-jar-for-libraries/3686 "2018-09-20T14:13:11Z")

</div>

Any advice for people who have used Eclipse with processing (especially for Library development) greatly appreciated. I’m curious about best practices – specifically, how you connect core.jar to Eclipse, and how/if that…

---

## [\[SOLVED\] Where are support files that are in the examples?](https://discourse.processing.org/t/solved-where-are-support-files-that-are-in-the-examples/3692)

<div class="topic-metadata">

**Author:** [@bobhurd](https://discourse.processing.org/u/bobhurd)\
**Replies:** 6\
**Last updated:** [September 20, 2018, 12:43pm UTC](https://discourse.processing.org/t/solved-where-are-support-files-that-are-in-the-examples/3692 "2018-09-20T12:43:57Z")

</div>

I am a novice programmer and brand new to the Processing language. I am trying to do the Processing code in the Examples webpage. I keep running across files that are referred to in the code that I can’t seem to find. …

---

## [Debugger - symbols next to variables](https://discourse.processing.org/t/debugger-symbols-next-to-variables/3688)

<div class="topic-metadata">

**Author:** [@buc](https://discourse.processing.org/u/buc)\
**Replies:** 2\
**Last updated:** [September 20, 2018, 11:58am UTC](https://discourse.processing.org/t/debugger-symbols-next-to-variables/3688 "2018-09-20T11:58:29Z")

</div>

Hi, can anybody tell me what the symbols next to the variables mean when using the debugger? Thanks a lot!

---

## [Need help with mouseY](https://discourse.processing.org/t/need-help-with-mousey/3680)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 1\
**Last updated:** [September 19, 2018, 8:40pm UTC](https://discourse.processing.org/t/need-help-with-mousey/3680 "2018-09-19T20:40:34Z")

</div>

Hello, below I have pasted my code. What I have been working on, but couldn’t figure out how to preform it, is to not be able to draw the ellipse (when pressing on the mouse) on the text at the top of the screen. I have …

---

## [Need help with PGraphics](https://discourse.processing.org/t/need-help-with-pgraphics/3678)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 2\
**Last updated:** [September 19, 2018, 8:13pm UTC](https://discourse.processing.org/t/need-help-with-pgraphics/3678 "2018-09-19T20:13:09Z")

</div>

Hello, I am fairly new to processing and I have a problem with my code. What I want the code to do is if the mouse is pressed, to draw on the surface, and if the mouse isn’t pressed, to not draw but to still having an el…

---

## [Problem with controlling Minim with Arduino + proximity sensor](https://discourse.processing.org/t/problem-with-controlling-minim-with-arduino-proximity-sensor/3559)

<div class="topic-metadata">

**Author:** [@marvast](https://discourse.processing.org/u/marvast)\
**Replies:** 3\
**Last updated:** [September 19, 2018, 7:40pm UTC](https://discourse.processing.org/t/problem-with-controlling-minim-with-arduino-proximity-sensor/3559 "2018-09-19T19:40:29Z")

</div>

Hi Forum Im very new to processing and am trying to help someone out with a project. this is based on code that i found and have tried to change to fit the needs for the project. the idea is to use a proximity sensor …

---

## [Save a color variable](https://discourse.processing.org/t/save-a-color-variable/3556)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 12\
**Last updated:** [September 19, 2018, 5:26pm UTC](https://discourse.processing.org/t/save-a-color-variable/3556 "2018-09-19T17:26:08Z")

</div>

hello , My question is simple, is it possible to save a color variable ? thank you.

---

## [Cutting cards in an image](https://discourse.processing.org/t/cutting-cards-in-an-image/3650)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 17\
**Last updated:** [September 19, 2018, 4:34pm UTC](https://discourse.processing.org/t/cutting-cards-in-an-image/3650 "2018-09-19T16:34:33Z")

</div>

Hi there, Currently I am selling Yu-Gi-Oh! cards on Ebay and each time, I need to scan them (8 at a time). My problem is the following : usually I trim them by hand so it’s tedious. :anguished: Then I said to me : why…

---

## [Two Cameras in one Sketch](https://discourse.processing.org/t/two-cameras-in-one-sketch/3663)

<div class="topic-metadata">

**Author:** [@jorgeeduardojonas](https://discourse.processing.org/u/jorgeeduardojonas)\
**Replies:** 2\
**Last updated:** [September 19, 2018, 2:21pm UTC](https://discourse.processing.org/t/two-cameras-in-one-sketch/3663 "2018-09-19T14:21:59Z")

</div>

Hello! I’m trying to control a fade between two cameras in the same application, the following code works, however, the first camera has some jitter (the endoscope), am I missing something? One camera is a Go Pro going…

---

## [Shared PVector values in Classes](https://discourse.processing.org/t/shared-pvector-values-in-classes/3662)

<div class="topic-metadata">

**Author:** [@blosh](https://discourse.processing.org/u/blosh)\
**Replies:** 3\
**Last updated:** [September 19, 2018, 8:34am UTC](https://discourse.processing.org/t/shared-pvector-values-in-classes/3662 "2018-09-19T08:34:59Z")

</div>

I have created a new Class, “Polygon” that uses a PVector to store the position on the screen that a shape is displayed. However, whenever I update the position of one the Polygons it updates the position of all the othe…

---

## [Timed Events On A Loop](https://discourse.processing.org/t/timed-events-on-a-loop/3631)

<div class="topic-metadata">

**Author:** [@Vigil](https://discourse.processing.org/u/Vigil)\
**Replies:** 1\
**Last updated:** [September 18, 2018, 5:59pm UTC](https://discourse.processing.org/t/timed-events-on-a-loop/3631 "2018-09-18T17:59:46Z")

</div>

Greetings Everyone! I found a timer class here on the forum and I have been tinkering with it. My goal is to have a series of events loop with the timer active and for the loop to be disabled and enabled. I am wondering …

---

## [How to make head wiggle?](https://discourse.processing.org/t/how-to-make-head-wiggle/3657)

<div class="topic-metadata">

**Author:** [@RienziDeal](https://discourse.processing.org/u/RienziDeal)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 10:34pm UTC](https://discourse.processing.org/t/how-to-make-head-wiggle/3657 "2018-09-18T22:34:36Z")

</div>

Hi this is my code void setup() { size(200,250); background(255); smooth(); ellipseMode(CENTER); rectMode(CENTER); } void draw() { background (255, 50,0); body(); head(); float x = 0; …

---

## [Run button not work](https://discourse.processing.org/t/run-button-not-work/3490)

<div class="topic-metadata">

**Author:** [@coiffierp](https://discourse.processing.org/u/coiffierp)\
**Replies:** 3\
**Last updated:** [September 18, 2018, 5:23pm UTC](https://discourse.processing.org/t/run-button-not-work/3490 "2018-09-18T17:23:22Z")

</div>

Hello, I can install processing on my computer windows 8 but when I click on the button “Run” nothing happens, the window does not open. I can put any code nothing happens, while on my computer with windows 10 when I cl…

---

## [Simplify object creation](https://discourse.processing.org/t/simplify-object-creation/3649)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 5:04pm UTC](https://discourse.processing.org/t/simplify-object-creation/3649 "2018-09-18T17:04:13Z")

</div>

Hello, My question is, can we simplify the following lines of code : objet av1 = new objet (100,100); objet av2 = new objet (200, 100); objet av3 = new objet (300, 100); objet av4 = new objet (400, 100); obje…

---

## [Integer cannot be cast into Float?](https://discourse.processing.org/t/integer-cannot-be-cast-into-float/3647)

<div class="topic-metadata">

**Author:** [@aaronshenhao](https://discourse.processing.org/u/aaronshenhao)\
**Replies:** 6\
**Last updated:** [September 18, 2018, 4:08pm UTC](https://discourse.processing.org/t/integer-cannot-be-cast-into-float/3647 "2018-09-18T16:08:30Z")

</div>

Hi everyone, I have a “Node” class which contains an ‘attributes’ variable. The variable contains a variety of data types associated with a String key. I’m using a HashMap to implement it. However, when I try and retrie…

---

## [Display Console in Text?](https://discourse.processing.org/t/display-console-in-text/3612)

<div class="topic-metadata">

**Author:** [@bardiel13th](https://discourse.processing.org/u/bardiel13th)\
**Replies:** 5\
**Last updated:** [September 18, 2018, 3:58pm UTC](https://discourse.processing.org/t/display-console-in-text/3612 "2018-09-18T15:58:43Z")

</div>

Hi, I’m trying to display the console in my application within a textarea (from controlp5, but this question applies even without the library) in my application, so I can monitor my application’s console after it is pack…

---

## [Change the output location of beginRecord?](https://discourse.processing.org/t/change-the-output-location-of-beginrecord/3643)

<div class="topic-metadata">

**Author:** [@Cam](https://discourse.processing.org/u/Cam)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 3:10pm UTC](https://discourse.processing.org/t/change-the-output-location-of-beginrecord/3643 "2018-09-18T15:10:06Z")

</div>

import processing.pdf.\*; class secondWindow extends PApplet { secondWindow() { super(); PApplet.runSketch(new String\[\] {this.getClass().getSimpleName()}, this); } void settings() { size(100, 100); } …

---

## [\[SOLVED\] P2D/P3D sketches won't start on fresh Ubuntu 18.04 installation](https://discourse.processing.org/t/solved-p2d-p3d-sketches-wont-start-on-fresh-ubuntu-18-04-installation/3568)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 33\
**Last updated:** [September 18, 2018, 3:08pm UTC](https://discourse.processing.org/t/solved-p2d-p3d-sketches-wont-start-on-fresh-ubuntu-18-04-installation/3568 "2018-09-18T15:08:39Z")

</div>

EDIT: Solution that worked for me is rolling back to from 3.4 to 3.3.6. Here’s the link to this version: I don’t have any prior experience with anything Linux, but I have been using Processing on Windows machines for…

---

## [How to capture live video online in (https://www.openprocessing.org/)](https://discourse.processing.org/t/how-to-capture-live-video-online-in-https-www-openprocessing-org/3623)

<div class="topic-metadata">

**Author:** [@diaaahmed](https://discourse.processing.org/u/diaaahmed)\
**Replies:** 2\
**Last updated:** [September 18, 2018, 1:19pm UTC](https://discourse.processing.org/t/how-to-capture-live-video-online-in-https-www-openprocessing-org/3623 "2018-09-18T13:19:48Z")

</div>

https://www.openprocessing.org/ Dear all, I am trying to capture a live video online by writing codes in openprocessing. Although the code work well in processing itself, it does not work in openprocessing and the mess…

---

## [Minim setting volume of an audioPlayer](https://discourse.processing.org/t/minim-setting-volume-of-an-audioplayer/3596)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 5\
**Last updated:** [September 18, 2018, 1:16am UTC](https://discourse.processing.org/t/minim-setting-volume-of-an-audioplayer/3596 "2018-09-18T01:16:43Z")

</div>

Hi, Quick question It’s been a long time I didn’t use sound with processing. I wanted to play a file and setting his volume, and I discovered the Sound libraries aren’t working with windows anymore. So I decided to go …

---

## [Autosave in your program](https://discourse.processing.org/t/autosave-in-your-program/3504)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 3\
**Last updated:** [September 17, 2018, 11:36pm UTC](https://discourse.processing.org/t/autosave-in-your-program/3504 "2018-09-17T23:36:50Z")

</div>

Hi. Just like me you might want some code in your tool that saves the file you are working on in a set interval. I searched the forum but there was no topic like this before. A little research in the java documentation…

---

## [Accessing a webcam via network library](https://discourse.processing.org/t/accessing-a-webcam-via-network-library/3603)

<div class="topic-metadata">

**Author:** [@bardiel13th](https://discourse.processing.org/u/bardiel13th)\
**Replies:** 2\
**Last updated:** [September 17, 2018, 8:20pm UTC](https://discourse.processing.org/t/accessing-a-webcam-via-network-library/3603 "2018-09-17T20:20:50Z")

</div>

Hi Processing group! I’m working on a project which uses the networking library in processing. Basically, the Client program draws on a canvas, and the coordinates are sent back to the Server program, which then takes …

---

## [Drawing Problem](https://discourse.processing.org/t/drawing-problem/3536)

<div class="topic-metadata">

**Author:** [@PhysicsFreak](https://discourse.processing.org/u/PhysicsFreak)\
**Replies:** 3\
**Last updated:** [September 17, 2018, 7:33pm UTC](https://discourse.processing.org/t/drawing-problem/3536 "2018-09-17T19:33:07Z")

</div>

Okay, I made a program that uses a accelerometer on a Arduino Circuit Playground that tracks where the accelerometer is heading, and now in need to turn the “point(x,y);” into a drawing, where it places a point where the…

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

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