# Latest

**URL:** https://discourse.processing.org/latest.md?page=529

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

**Page:** 530

---

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

---

## [While (mouseIsPressed) infinite loop nasty](https://discourse.processing.org/t/while-mouseispressed-infinite-loop-nasty/7962)

<div class="topic-metadata">

**Author:** [@hellonearthis](https://discourse.processing.org/u/hellonearthis)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 6:06pm UTC](https://discourse.processing.org/t/while-mouseispressed-infinite-loop-nasty/7962 "2019-01-30T18:06:12Z")

</div>

I was trying to use a while statement in the draw loop. I was thinking it would stop the draw loop until the mouse was released, but it just goes into an infinite loop. let redoLines = true function draw() { while …

---

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

---

## [Is there any way to use specular light?](https://discourse.processing.org/t/is-there-any-way-to-use-specular-light/7855)

<div class="topic-metadata">

**Author:** [@sanketsingh24](https://discourse.processing.org/u/sanketsingh24)\
**Replies:** 2\
**Last updated:** [January 30, 2019, 12:25pm UTC](https://discourse.processing.org/t/is-there-any-way-to-use-specular-light/7855 "2019-01-30T12:25:22Z")

</div>

I can see there is ambient, directional and point light implemented and documented, but I can’t find specular light, although specular material is there.

---

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

---

## [Android error message](https://discourse.processing.org/t/android-error-message/7939)

<div class="topic-metadata">

**Author:** [@Banansplitt](https://discourse.processing.org/u/Banansplitt)\
**Replies:** 3\
**Last updated:** [January 30, 2019, 9:07am UTC](https://discourse.processing.org/t/android-error-message/7939 "2019-01-30T09:07:57Z")

</div>

I am new to processing for android. There is obviously a lot of stuff wrong with my sketch but I can’t figure out what the error messages mean. It would mean the world to me if anyone could help. Heres the errors Android…

---

## [How to get Arduino sensor data by using APDE in android mobile](https://discourse.processing.org/t/how-to-get-arduino-sensor-data-by-using-apde-in-android-mobile/7957)

<div class="topic-metadata">

**Author:** [@Towhid](https://discourse.processing.org/u/Towhid)\
**Replies:** 0\
**Last updated:** [January 30, 2019, 7:07am UTC](https://discourse.processing.org/t/how-to-get-arduino-sensor-data-by-using-apde-in-android-mobile/7957 "2019-01-30T07:07:24Z")

</div>

Hi, I install the processing android app APDE in my phone. I run some example code those are run in preview mode/ APK perfectly. But i want to connect my Arduino UNO/ NANO by OTG cable and need to control my devices and…

---

## [Building problem](https://discourse.processing.org/t/building-problem/2732)

<div class="topic-metadata">

**Author:** [@draxan](https://discourse.processing.org/u/draxan)\
**Replies:** 15\
**Last updated:** [January 30, 2019, 6:10am UTC](https://discourse.processing.org/t/building-problem/2732 "2019-01-30T06:10:45Z")

</div>

Hi, After I press Run on device I get these errors: :app:preBuild UP-TO-DATE :app:preDebugBuild :app:compileDebugAidl :app:compileDebugRenderscript :app:checkDebugManifest :app:generateDebugBuildConfig :app:prepareLint…

---

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

---

## [Php & p5.js problem](https://discourse.processing.org/t/php-p5-js-problem/7947)

<div class="topic-metadata">

**Author:** [@bossman](https://discourse.processing.org/u/bossman)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 9:27pm UTC](https://discourse.processing.org/t/php-p5-js-problem/7947 "2019-01-29T21:27:22Z")

</div>

i work on wordpress plugin and p5.js. But i don’t combine php and p5.js . My example codes is under the text.Please help me ! \<?php function information\_Collect(){ ?\> \<script type="text/javascript" src="http…

---

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

---

## [Increasing a triangle's size based on cursor's position](https://discourse.processing.org/t/increasing-a-triangles-size-based-on-cursors-position/7889)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.processing.org/u/sim)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 6:31pm UTC](https://discourse.processing.org/t/increasing-a-triangles-size-based-on-cursors-position/7889 "2019-01-29T18:31:21Z")

</div>

I’m trying to create a triangle which will be its smallest size at the top of the canvas and largest at the bottom. so far I have the code to just simply create a triangle that follows my mouse cursor but I don’t know h…

---

## [The usage of modulo: How can I correctly implement it?](https://discourse.processing.org/t/the-usage-of-modulo-how-can-i-correctly-implement-it/7494)

<div class="topic-metadata">

**Author:** [@anon98404100](https://discourse.processing.org/u/anon98404100)\
**Replies:** 5\
**Last updated:** [January 29, 2019, 6:22pm UTC](https://discourse.processing.org/t/the-usage-of-modulo-how-can-i-correctly-implement-it/7494 "2019-01-29T18:22:29Z")

</div>

In my way of learning P5.js I enountered the ‘Modulo’ function. I did some reading into it, but I fail to understand HOW I should be looking at it and using it. I have a number ‘generator’ that generates the number 1 to…

---

## [Cannot export application](https://discourse.processing.org/t/cannot-export-application/7474)

<div class="topic-metadata">

**Author:** [@Qraven](https://discourse.processing.org/u/Qraven)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 5:56pm UTC](https://discourse.processing.org/t/cannot-export-application/7474 "2019-01-29T17:56:53Z")

</div>

Hi, so I am trying to export a really simple app which just prints a circle at a random color in a place where the mouse is pressed, but when I try to export it using the export application in console it shows that: B…

---

## [Mousepressed in certain area (toggle on/off)](https://discourse.processing.org/t/mousepressed-in-certain-area-toggle-on-off/7936)

<div class="topic-metadata">

**Author:** [@airimints](https://discourse.processing.org/u/airimints)\
**Replies:** 1\
**Last updated:** [January 29, 2019, 4:26pm UTC](https://discourse.processing.org/t/mousepressed-in-certain-area-toggle-on-off/7936 "2019-01-29T16:26:22Z")

</div>

I’m new to processing and this should be really easy to solve but I’m kind of stuck. So basicially, this is a snippet of my programm. What I want to achieve is that if I click on a button, it shows another picture and i…

---

## [GL Video error with Processing 3.5.2, macOS 10.13.6](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852)

<div class="topic-metadata">

**Author:** [@robertkb](https://discourse.processing.org/u/robertkb)\
**Replies:** 4\
**Last updated:** [January 29, 2019, 4:14pm UTC](https://discourse.processing.org/t/gl-video-error-with-processing-3-5-2-macos-10-13-6/7852 "2019-01-29T16:14:34Z")

</div>

I got the following error using P3.3.7, and updating just now to 3.5.2 did not help; the sketch did work in macOS 10.13.4- it printed the device enumeration warning, but did not crash as it does now; the sketch also runs…

---

## [PCD @ San Marino!](https://discourse.processing.org/t/pcd-san-marino/7931)

<div class="topic-metadata">

**Author:** [@DanieleT](https://discourse.processing.org/u/DanieleT)\
**Replies:** 0\
**Last updated:** [January 29, 2019, 1:18pm UTC](https://discourse.processing.org/t/pcd-san-marino/7931 "2019-01-29T13:18:43Z")

</div>

Continuing the discussion from PCD @ Worldwide: Hi folks, ENGLISH confirmed PCD @ San Marino next week, Saturday February 9th at the design school of the University of the Republic of San Marino design.UNIRSM I’ve ju…

---

## [Need of advice to improve GLCapture code (and large buffer)](https://discourse.processing.org/t/need-of-advice-to-improve-glcapture-code-and-large-buffer/6605)

<div class="topic-metadata">

**Author:** [@PierreMuth](https://discourse.processing.org/u/PierreMuth)\
**Replies:** 5\
**Last updated:** [January 29, 2019, 1:10pm UTC](https://discourse.processing.org/t/need-of-advice-to-improve-glcapture-code-and-large-buffer/6605 "2019-01-29T13:10:13Z")

</div>

Hi community, I’m quite used to Java, however I’m starting with Processing. My aim is to make a realtime slit-scan effect, with the Pi camera (V2) and RPi3. The following code is working, and I’m yet impressed by the …

[Previous page](https://discourse.processing.org/latest.md?page=528)

[Next page](https://discourse.processing.org/latest.md?page=530)
