# Processing

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

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

**Page:** 326

---

## [Class/Object as a PVector for Kinect repelling](https://discourse.processing.org/t/class-object-as-a-pvector-for-kinect-repelling/7966)

<div class="topic-metadata">

**Author:** [@wewantwok](https://discourse.processing.org/u/wewantwok)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 12:07pm UTC](https://discourse.processing.org/t/class-object-as-a-pvector-for-kinect-repelling/7966 "2019-02-03T12:07:21Z")

</div>

Hi! First time posting on here. I’m writing a Sketch for a Kinect camera to make an attractor/repeller for some particles. I started out with an attraction/repelling tutorial from Daniel Shiffmann and tried to combine …

---

## [PImage pixel array is an array of ints](https://discourse.processing.org/t/pimage-pixel-array-is-an-array-of-ints/8064)

<div class="topic-metadata">

**Author:** [@mchangxe](https://discourse.processing.org/u/mchangxe)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 8:37am UTC](https://discourse.processing.org/t/pimage-pixel-array-is-an-array-of-ints/8064 "2019-02-03T08:37:28Z")

</div>

im loading a jpg image and displaying the underlying pixel array. The picture has the same amount of pixels as the canvas, which is 438 x 1200. However when printing out the contents of the canvas’ pixel variable and t…

---

## [What is right method to pass led info from processing to arduino](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010)

<div class="topic-metadata">

**Author:** [@angelman](https://discourse.processing.org/u/angelman)\
**Replies:** 15\
**Last updated:** [February 2, 2019, 11:48pm UTC](https://discourse.processing.org/t/what-is-right-method-to-pass-led-info-from-processing-to-arduino/8010 "2019-02-02T23:48:55Z")

</div>

I am just a beginner. This my processing code; stil lhave a little trouble with the clear part of the input function . but main thing is the arduino write.out. My arduino code works. with the serial port. The processing…

---

## [Save and load string from text file](https://discourse.processing.org/t/save-and-load-string-from-text-file/7994)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 16\
**Last updated:** [February 2, 2019, 7:23pm UTC](https://discourse.processing.org/t/save-and-load-string-from-text-file/7994 "2019-02-02T19:23:36Z")

</div>

I’m trying to use loadString() and saveString() and convert the string to int and the other way around. But I get the errors "Type mismatch, “java.lang.String” does not match with “java.lang.String” on String loadHig…

---

## [Processing library for checkbox, combobox, Text Box, Command Button, ecc](https://discourse.processing.org/t/processing-library-for-checkbox-combobox-text-box-command-button-ecc/8022)

<div class="topic-metadata">

**Author:** [@aster](https://discourse.processing.org/u/aster)\
**Replies:** 8\
**Last updated:** [February 1, 2019, 7:48pm UTC](https://discourse.processing.org/t/processing-library-for-checkbox-combobox-text-box-command-button-ecc/8022 "2019-02-01T19:48:19Z")

</div>

Hello, Recently I have been using Visul Basic for Apllication (VBA) and I made a userForm with it. Even if i didn’t enjoyed too much VBA I fallen completely in love with the ease of use of some tools inside it, you can …

---

## [Toggle Text on controlP5](https://discourse.processing.org/t/toggle-text-on-controlp5/8014)

<div class="topic-metadata">

**Author:** [@Coolconor98](https://discourse.processing.org/u/Coolconor98)\
**Replies:** 2\
**Last updated:** [February 1, 2019, 5:51pm UTC](https://discourse.processing.org/t/toggle-text-on-controlp5/8014 "2019-02-01T17:51:04Z")

</div>

So I’m using a library called controlP5 for a project I’m doing. I’m making a menu where I use conrtolP5’s buttons and toggles. The buttons work fine but I’m having a problem with the toggles. The buttons have the nam…

---

## [Displaying image slows down program](https://discourse.processing.org/t/displaying-image-slows-down-program/8001)

<div class="topic-metadata">

**Author:** [@8BitRift](https://discourse.processing.org/u/8BitRift)\
**Replies:** 1\
**Last updated:** [February 1, 2019, 1:28am UTC](https://discourse.processing.org/t/displaying-image-slows-down-program/8001 "2019-02-01T01:28:38Z")

</div>

EDIT I figured out why the the program was slowing down but this has spawned a new question I have with the same title so ill just reword it. Why does rendering a copied image cripple framerate, for example: PImage ima…

---

## [Trying to make a button that switches tabs with Control P5. Currently it switches between tabs, but everything on that tab becomes unusable](https://discourse.processing.org/t/trying-to-make-a-button-that-switches-tabs-with-control-p5-currently-it-switches-between-tabs-but-everything-on-that-tab-becomes-unusable/8008)

<div class="topic-metadata">

**Author:** [@ryan123rudder](https://discourse.processing.org/u/ryan123rudder)\
**Replies:** 0\
**Last updated:** [January 31, 2019, 11:51pm UTC](https://discourse.processing.org/t/trying-to-make-a-button-that-switches-tabs-with-control-p5-currently-it-switches-between-tabs-but-everything-on-that-tab-becomes-unusable/8008 "2019-01-31T23:51:26Z")

</div>

I need a button on one page that switches to another tab. This would be in addition to the original tab button. With great difficulty, I have it in such a state that it switches to the right tab, but it makes everything …

---

## [Has anyone tried Py4J with Processing (Java) app?](https://discourse.processing.org/t/has-anyone-tried-py4j-with-processing-java-app/7218)

<div class="topic-metadata">

**Author:** [@HartzaQ](https://discourse.processing.org/u/HartzaQ)\
**Replies:** 5\
**Last updated:** [January 31, 2019, 2:17pm UTC](https://discourse.processing.org/t/has-anyone-tried-py4j-with-processing-java-app/7218 "2019-01-31T14:17:24Z")

</div>

It seems that it’s be possible to hook Python interpreter with a Java app with Py4J. Based on the example at Py4j webpage, I cannot see why it wouldn’t work with Processing app, but has anyone tried it? Reason why I’m i…

---

## [G4P: How can I make text inside editText field be Capital letter?](https://discourse.processing.org/t/g4p-how-can-i-make-text-inside-edittext-field-be-capital-letter/7984)

<div class="topic-metadata">

**Author:** [@sagagt505](https://discourse.processing.org/u/sagagt505)\
**Replies:** 3\
**Last updated:** [January 31, 2019, 9:06am UTC](https://discourse.processing.org/t/g4p-how-can-i-make-text-inside-edittext-field-be-capital-letter/7984 "2019-01-31T09:06:59Z")

</div>

Hello, I finally make some input field to insert my data but I need my text inside input field shows the only capital letter. No matter I input the text with a capital letter or not. Example: If I want to type text “hi”…

---

## [Issue with reading Arduino Port](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846)

<div class="topic-metadata">

**Author:** [@Ryan12](https://discourse.processing.org/u/Ryan12)\
**Replies:** 14\
**Last updated:** [January 30, 2019, 11:55pm UTC](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846 "2019-01-30T23:55:31Z")

</div>

I have a phototransistor and an LED, when I test in Arduino I do get readings from the phototransistor, but when trying to get the same readings in Processing I just get continuous 0’s. Can any one help? I’ve placed the …

---

## [NURBS surface with Toxiclibs](https://discourse.processing.org/t/nurbs-surface-with-toxiclibs/7747)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 9:58pm UTC](https://discourse.processing.org/t/nurbs-surface-with-toxiclibs/7747 "2019-01-30T21:58:38Z")

</div>

Hi all, I’m desperately trying to create a nurbs surface using the toxiclibs library. Because of the missing Java doc and also because of the complete lack of related example on the web I contacted Karsten Schmidt abou…

---

## [\[SOLVED\] Instantiating a particular class constructor using reflection](https://discourse.processing.org/t/solved-instantiating-a-particular-class-constructor-using-reflection/7968)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 22\
**Last updated:** [January 30, 2019, 9:46pm UTC](https://discourse.processing.org/t/solved-instantiating-a-particular-class-constructor-using-reflection/7968 "2019-01-30T21:46:50Z")

</div>

Hello again, oh great Java gurus! :star\_struck: I find myself having to instantiate a class from a string using one of its particular constructors. The api for getDeclaredConstructors() indicates this is possible, but t…

---

## [Size(); not working for me / Processing 3.5](https://discourse.processing.org/t/size-not-working-for-me-processing-3-5/7688)

<div class="topic-metadata">

**Author:** [@mike\_d](https://discourse.processing.org/u/mike_d)\
**Replies:** 10\
**Last updated:** [January 30, 2019, 7:19pm UTC](https://discourse.processing.org/t/size-not-working-for-me-processing-3-5/7688 "2019-01-30T19:19:45Z")

</div>

I’m preparing to deliver the Arduino CTC-101 program, which uses Processing to teach programming topics. One of the first modules introduces the size(); function, but it has no effect on my sketch. The sketch is super-s…

---

## [Instagram Scraping](https://discourse.processing.org/t/instagram-scraping/7967)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 4\
**Last updated:** [January 30, 2019, 6:20pm UTC](https://discourse.processing.org/t/instagram-scraping/7967 "2019-01-30T18:20:03Z")

</div>

Every now and than i get to play cat and mouse with Instagram API. Today I’ve stumbled this recent article Instagram Data Scraping from Public API I’ve followed the guidelines in processing and stumbled with a few probl…

---

## [Error convert slice&push from P5.js to Processing](https://discourse.processing.org/t/error-convert-slice-push-from-p5-js-to-processing/7964)

<div class="topic-metadata">

**Author:** [@miasoft](https://discourse.processing.org/u/miasoft)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 4:19pm UTC](https://discourse.processing.org/t/error-convert-slice-push-from-p5-js-to-processing/7964 "2019-01-30T16:19:49Z")

</div>

I want to convert Pong.js to Processing. I have two error: int\[\] walls=new int\[4\]; //= \[\]; //----------------------- .... //------------------------ void wallAdder() { if (millis()-lastAddTime \> wallInterval) { i…

---

## [Creating a table of sensor data from arduino?](https://discourse.processing.org/t/creating-a-table-of-sensor-data-from-arduino/7942)

<div class="topic-metadata">

**Author:** [@Dab](https://discourse.processing.org/u/Dab)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 3:31pm UTC](https://discourse.processing.org/t/creating-a-table-of-sensor-data-from-arduino/7942 "2019-01-30T15:31:57Z")

</div>

Hi there, im pretty new to the processing application, so bear with my knowledge. Ive got a mpu6050 reading out yaw ptich roll angles on the serial monitor on aurdino IDE, but i want to save the output to a .csv file. i…

---

## [TableRow returning NaN values](https://discourse.processing.org/t/tablerow-returning-nan-values/7955)

<div class="topic-metadata">

**Author:** [@morphogencc](https://discourse.processing.org/u/morphogencc)\
**Replies:** 4\
**Last updated:** [January 30, 2019, 3:39pm UTC](https://discourse.processing.org/t/tablerow-returning-nan-values/7955 "2019-01-30T15:39:12Z")

</div>

Hello – I’m working on a project that uses CSV data to drive the graphics; I created a Show Control class that reads all of the csv files in a folder, and then grabs the next available row from the current file to provid…

---

## [How to create better timers?](https://discourse.processing.org/t/how-to-create-better-timers/7938)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 4\
**Last updated:** [January 30, 2019, 3:17pm UTC](https://discourse.processing.org/t/how-to-create-better-timers/7938 "2019-01-30T15:17:24Z")

</div>

Hi! So I have experimented with timers before (on a basic level), but never got anything elegant. Actually I think my approach is pretty messy. I’m working on a small game at the moment, and want to add more objects to …

---

## [Keypressed strange behaviour : detects all keys despite the conditionals, execute codes it's not supposed to](https://discourse.processing.org/t/keypressed-strange-behaviour-detects-all-keys-despite-the-conditionals-execute-codes-its-not-supposed-to/7960)

<div class="topic-metadata">

**Author:** [@LascarCapable](https://discourse.processing.org/u/LascarCapable)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 12:53pm UTC](https://discourse.processing.org/t/keypressed-strange-behaviour-detects-all-keys-despite-the-conditionals-execute-codes-its-not-supposed-to/7960 "2019-01-30T12:53:29Z")

</div>

Hello there. Hopefully I am posting at the right place. I am trying to get a keyPressed function to work so it changes the mode of my program, thus changing the properties of the moving ellipses shown in the application…

---

## [ControlP5 has any copy and paste function in Textarea or input field?](https://discourse.processing.org/t/controlp5-has-any-copy-and-paste-function-in-textarea-or-input-field/7927)

<div class="topic-metadata">

**Author:** [@sagagt505](https://discourse.processing.org/u/sagagt505)\
**Replies:** 7\
**Last updated:** [January 30, 2019, 12:02pm UTC](https://discourse.processing.org/t/controlp5-has-any-copy-and-paste-function-in-textarea-or-input-field/7927 "2019-01-30T12:02:45Z")

</div>

How do I add copy & paste functionality to a Textarea or input field? Sample Code from ControlP5 cp5.addTextfield("word1") .setPosition(290,245) .setSize(240,25) .setFont(createFont("arial",16)) .setColorValue(#000…

---

## [Self rendering objects?](https://discourse.processing.org/t/self-rendering-objects/4427)

<div class="topic-metadata">

**Author:** [@GaizkaNaz](https://discourse.processing.org/u/GaizkaNaz)\
**Replies:** 11\
**Last updated:** [January 30, 2019, 11:49am UTC](https://discourse.processing.org/t/self-rendering-objects/4427 "2019-01-30T11:49:55Z")

</div>

Hello everybody! I’m working on my own GUI project. Can someone point me on the right direction to make “self rendering objects”? For example, ive got a class Buttons, i would like to make an instance of that class and…

---

## [How to make gui using qt for a processing 3 application?](https://discourse.processing.org/t/how-to-make-gui-using-qt-for-a-processing-3-application/7920)

<div class="topic-metadata">

**Author:** [@Geeky](https://discourse.processing.org/u/Geeky)\
**Replies:** 1\
**Last updated:** [January 30, 2019, 6:02am UTC](https://discourse.processing.org/t/how-to-make-gui-using-qt-for-a-processing-3-application/7920 "2019-01-30T06:02:27Z")

</div>

I’ve read about pySide of qt but I’m still confused about how can I make a user interface for a python or java based processing application specifically using qt.

---

## [How to smooth out frequencies while using fft for visualization?](https://discourse.processing.org/t/how-to-smooth-out-frequencies-while-using-fft-for-visualization/7903)

<div class="topic-metadata">

**Author:** [@Geeky](https://discourse.processing.org/u/Geeky)\
**Replies:** 3\
**Last updated:** [January 30, 2019, 5:08am UTC](https://discourse.processing.org/t/how-to-smooth-out-frequencies-while-using-fft-for-visualization/7903 "2019-01-30T05:08:43Z")

</div>

How can I smooth out frequencies to eliminate extra vibrations while processing a sound wave using minim and processing? Kindly check out this 3d visualizer demo video, I’m working on, for reference.

---

## [P2D Renderer slows sketch down to extreme framerate](https://discourse.processing.org/t/p2d-renderer-slows-sketch-down-to-extreme-framerate/7674)

<div class="topic-metadata">

**Author:** [@kleinesfilmroellchen](https://discourse.processing.org/u/kleinesfilmroellchen)\
**Replies:** 10\
**Last updated:** [January 30, 2019, 4:23am UTC](https://discourse.processing.org/t/p2d-renderer-slows-sketch-down-to-extreme-framerate/7674 "2019-01-30T04:23:53Z")

</div>

I have been writing a Processing application/sketch in Eclipse (due to external libraries and heavy OOP) and stumbled upon this problem: During the drawing process (initialized from a normal draw() method in my PApplet …

---

## [Clicking on one image and permanently hiding it](https://discourse.processing.org/t/clicking-on-one-image-and-permanently-hiding-it/7918)

<div class="topic-metadata">

**Author:** [@1schroeteeri](https://discourse.processing.org/u/1schroeteeri)\
**Replies:** 3\
**Last updated:** [January 30, 2019, 3:47am UTC](https://discourse.processing.org/t/clicking-on-one-image-and-permanently-hiding-it/7918 "2019-01-30T03:47:46Z")

</div>

(Hi, I’m relatively new to processing and I’ve searched around for an answer but haven’t found anything regarding this besides making the image disappear for a moment) I’m trying to remove permanently (or hide) one imag…

---

## [Did I found a bug?](https://discourse.processing.org/t/did-i-found-a-bug/7946)

<div class="topic-metadata">

**Author:** [@EricRogerGarcia](https://discourse.processing.org/u/EricRogerGarcia)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 8:32pm UTC](https://discourse.processing.org/t/did-i-found-a-bug/7946 "2019-01-29T20:32:20Z")

</div>

Hello, Trying do make a delta variable to store the time since the precedent frame I made this sketch. It seems to work fine but after about 1 minute my little sprite is stucked ??? … And now, it runs fullscreen ??? wi…

---

## [How to shorten code](https://discourse.processing.org/t/how-to-shorten-code/7883)

<div class="topic-metadata">

**Author:** [@jcop](https://discourse.processing.org/u/jcop)\
**Replies:** 5\
**Last updated:** [January 29, 2019, 7:23pm UTC](https://discourse.processing.org/t/how-to-shorten-code/7883 "2019-01-29T19:23:25Z")

</div>

I am having trouble trying to shorten this code. The code that is taking up the most space is the vertex which are the stars. Is there a way to shorten the code for the stars? void polygon(int n, float cx, float cy, flo…

---

## [PGraphics + noSmooth() + alpha = drawing artifacts](https://discourse.processing.org/t/pgraphics-nosmooth-alpha-drawing-artifacts/7892)

<div class="topic-metadata">

**Author:** [@Kevin](https://discourse.processing.org/u/Kevin)\
**Replies:** 3\
**Last updated:** [January 29, 2019, 6:06pm UTC](https://discourse.processing.org/t/pgraphics-nosmooth-alpha-drawing-artifacts/7892 "2019-01-29T18:06:53Z")

</div>

Note: I also asked this question on Stack Overflow here. I have this sample code: PGraphics pg; void setup() { size(400, 500); pg = createGraphics(width, height); pg.noSmooth(); pg.beginDraw(); pg.backgroun…

---

## [Push button image](https://discourse.processing.org/t/push-button-image/7880)

<div class="topic-metadata">

**Author:** [@Dolomiti](https://discourse.processing.org/u/Dolomiti)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 6:38pm UTC](https://discourse.processing.org/t/push-button-image/7880 "2019-01-29T18:38:24Z")

</div>

Is it possible to put a push button image ?. Control.lp5, from Sojamo libraries Thank you //cp5.addButton("columns\_1\_rows\_1") //position of button cp5.addButton("A") .setPosition(30, 170) //x and y coordin…

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

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