# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=444

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

**Page:** 445

---

## [Changing shape colors in loops](https://discourse.processing.org/t/changing-shape-colors-in-loops/14117)

<div class="topic-metadata">

**Author:** [@Adrian1998](https://discourse.processing.org/u/Adrian1998)\
**Replies:** 4\
**Last updated:** [September 24, 2019, 5:37am UTC](https://discourse.processing.org/t/changing-shape-colors-in-loops/14117 "2019-09-24T05:37:34Z")

</div>

I am currently trying to change the color of my shapes in a loop, I want the color to change a little each time a ellipse is printed, I don’t know why it is not working it just makes the ellipses all the same color, I ca…

---

## [Unable to print in command line(built)](https://discourse.processing.org/t/unable-to-print-in-command-line-built/4223)

<div class="topic-metadata">

**Author:** [@Bunnygamers](https://discourse.processing.org/u/Bunnygamers)\
**Replies:** 9\
**Last updated:** [October 23, 2018, 10:07pm UTC](https://discourse.processing.org/t/unable-to-print-in-command-line-built/4223 "2018-10-23T22:07:43Z")

</div>

I was trying to build a command line application that prints in the command line(windows) but print(); and println(); don’t do anything in the CMD, is there anyway to do that? (it is probably very obvious but I am noob …

---

## [Individual Box Gradient in HSB](https://discourse.processing.org/t/individual-box-gradient-in-hsb/14132)

<div class="topic-metadata">

**Author:** [@nathanchun](https://discourse.processing.org/u/nathanchun)\
**Replies:** 10\
**Last updated:** [September 23, 2019, 10:01pm UTC](https://discourse.processing.org/t/individual-box-gradient-in-hsb/14132 "2019-09-23T22:01:27Z")

</div>

I was assigned to code a gradient of 100 different squares in a 100x100 window with each square being 10x10. I know how to code for a vertical or horizontal gradient but I don’t know how to make a gradient that appears t…

---

## [Keep sketch proportioned while using x++ y++](https://discourse.processing.org/t/keep-sketch-proportioned-while-using-x-y/14113)

<div class="topic-metadata">

**Author:** [@las6525](https://discourse.processing.org/u/las6525)\
**Replies:** 4\
**Last updated:** [September 23, 2019, 7:13pm UTC](https://discourse.processing.org/t/keep-sketch-proportioned-while-using-x-y/14113 "2019-09-23T19:13:02Z")

</div>

Hi all, super newbie here with a few questions! How do I troubleshoot my code where parts of my sketch are moving in one direction and other parts move in another direction? I am applying x++ and y++ to the entire sketc…

---

## [Do any of the video libraries work on Raspberry pi](https://discourse.processing.org/t/do-any-of-the-video-libraries-work-on-raspberry-pi/14123)

<div class="topic-metadata">

**Author:** [@michaelkpierce](https://discourse.processing.org/u/michaelkpierce)\
**Replies:** 2\
**Last updated:** [September 23, 2019, 4:12pm UTC](https://discourse.processing.org/t/do-any-of-the-video-libraries-work-on-raspberry-pi/14123 "2019-09-23T16:12:31Z")

</div>

Has anyone had any luck with either of the libraries? I have tried examples from both. The examples from the standard library just shows a black. No errors. The GL library example throws an error. I’m running a rasp…

---

## [Condition for angle range spanning 0](https://discourse.processing.org/t/condition-for-angle-range-spanning-0/14125)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 6\
**Last updated:** [September 23, 2019, 3:52pm UTC](https://discourse.processing.org/t/condition-for-angle-range-spanning-0/14125 "2019-09-23T15:52:10Z")

</div>

Hello. I am trying to write a condition that will test if the mouse heading is within an angle range, and I’m having trouble figuring out how to make it work for cases when the angle range spans 0. The idea is that an a…

---

## [Missing the right curly bracket](https://discourse.processing.org/t/missing-the-right-curly-bracket/14105)

<div class="topic-metadata">

**Author:** [@pica](https://discourse.processing.org/u/pica)\
**Replies:** 11\
**Last updated:** [September 23, 2019, 8:24am UTC](https://discourse.processing.org/t/missing-the-right-curly-bracket/14105 "2019-09-23T08:24:50Z")

</div>

It said that I have missing right curly bracket in the last line how can i fix it? // usually one would probably make a generic Shape class and subclass different types (circle, polygon), but that // would mean at leas…

---

## [Motion Detection of Multiple Objects](https://discourse.processing.org/t/motion-detection-of-multiple-objects/14045)

<div class="topic-metadata">

**Author:** [@DietrickWiles](https://discourse.processing.org/u/DietrickWiles)\
**Replies:** 4\
**Last updated:** [September 23, 2019, 4:08am UTC](https://discourse.processing.org/t/motion-detection-of-multiple-objects/14045 "2019-09-23T04:08:57Z")

</div>

Hi, I’m working on a project where I’m using a top-down camera over a space and I need to be able to get multiple people’s positions and a single x and y value each based on their movement. People will be the only thing…

---

## [Automatically change size() to fullScreen()](https://discourse.processing.org/t/automatically-change-size-to-fullscreen/14103)

<div class="topic-metadata">

**Author:** [@jvolker](https://discourse.processing.org/u/jvolker)\
**Replies:** 2\
**Last updated:** [September 23, 2019, 12:33am UTC](https://discourse.processing.org/t/automatically-change-size-to-fullscreen/14103 "2019-09-23T00:33:49Z")

</div>

I’m looking for a preprocessor for Processing code that reliably changes size() calls into fullScreen() calls preserving the passed renderer. Does anyone know of a related project? Thanks. I would like to this to impro…

---

## [How to stop pull-to-refresh in p5.js Web Editor](https://discourse.processing.org/t/how-to-stop-pull-to-refresh-in-p5-js-web-editor/14058)

<div class="topic-metadata">

**Author:** [@rise](https://discourse.processing.org/u/rise)\
**Replies:** 7\
**Last updated:** [September 22, 2019, 8:54pm UTC](https://discourse.processing.org/t/how-to-stop-pull-to-refresh-in-p5-js-web-editor/14058 "2019-09-22T20:54:33Z")

</div>

Hi, I’ve created a webpage that involves some dragging and dropping features and I would like to disable the “pull-to-refresh” feature of the browser. I read that by adding the line “overscroll-behavior-y: contain;” to…

---

## [Unable to receive serial data from Arduino](https://discourse.processing.org/t/unable-to-receive-serial-data-from-arduino/14100)

<div class="topic-metadata">

**Author:** [@micoxon](https://discourse.processing.org/u/micoxon)\
**Replies:** 5\
**Last updated:** [September 22, 2019, 6:44pm UTC](https://discourse.processing.org/t/unable-to-receive-serial-data-from-arduino/14100 "2019-09-22T18:44:22Z")

</div>

Hi fellows, I’m trying for weeks to transmit data from an Arduino Leonardo to a Processing program via the serial port. I first took over programs that I used, back in 2011, with an Arduino Duemilanove and Processing 1…

---

## [Processing seemingly capped at 35% cpu](https://discourse.processing.org/t/processing-seemingly-capped-at-35-cpu/11872)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 44\
**Last updated:** [September 22, 2019, 4:37pm UTC](https://discourse.processing.org/t/processing-seemingly-capped-at-35-cpu/11872 "2019-09-22T16:37:20Z")

</div>

Is this a feature or is there some way of changing this? No matter what I throw at it, programs which would eat cpu in p5.js, never go above 35% cpu. Don’t get me wrong there is clearly asignificant loss in performance …

---

## [Save Image as SVG](https://discourse.processing.org/t/save-image-as-svg/14108)

<div class="topic-metadata">

**Author:** [@mikolaskoa](https://discourse.processing.org/u/mikolaskoa)\
**Replies:** 0\
**Last updated:** [September 22, 2019, 2:22pm UTC](https://discourse.processing.org/t/save-image-as-svg/14108 "2019-09-22T14:22:13Z")

</div>

Hello, I would like to save the canvas as SVG. I found this: https://editor.p5js.org/dannyrozin/sketches/r1djoVow7 But it does not work for Canvas content created as Image f.e. http://www.mikolaskova.cz/testscreen/10/ …

---

## [Get perpendicular angle](https://discourse.processing.org/t/get-perpendicular-angle/14067)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 13\
**Last updated:** [September 22, 2019, 3:09am UTC](https://discourse.processing.org/t/get-perpendicular-angle/14067 "2019-09-22T03:09:10Z")

</div>

This is kind of an embarrassing one. I’m trying to draw a perpendicular line to two given vectors and I can’t work it out for the life of me. I suppose what I’m receiving with atan (or PVector.getAngle) is not what I …

---

## [How to put random dots inside a square?](https://discourse.processing.org/t/how-to-put-random-dots-inside-a-square/14102)

<div class="topic-metadata">

**Author:** [@woluk](https://discourse.processing.org/u/woluk)\
**Replies:** 2\
**Last updated:** [September 22, 2019, 5:44am UTC](https://discourse.processing.org/t/how-to-put-random-dots-inside-a-square/14102 "2019-09-22T05:44:06Z")

</div>

Hi, Sorry if my question sounds dumb, I just started using Processing. I am trying to create a square that pops randomly on the screen with a different number each time. So far, I managed to create the squares, to make…

---

## [Who Stole my cat's food?](https://discourse.processing.org/t/who-stole-my-cats-food/13895)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 25\
**Last updated:** [September 22, 2019, 1:02am UTC](https://discourse.processing.org/t/who-stole-my-cats-food/13895 "2019-09-22T01:02:55Z")

</div>

I am trying to build a system that will monitor my cat’s food bowl. Squirrels and rats steal from there all the time. System overview: An arduino with motion detectors is overlooking the bowl. When presence is detect…

---

## [Why my enemy doesn't work?](https://discourse.processing.org/t/why-my-enemy-doesnt-work/13494)

<div class="topic-metadata">

**Author:** [@carolina\_moreira](https://discourse.processing.org/u/carolina_moreira)\
**Replies:** 22\
**Last updated:** [September 21, 2019, 8:11pm UTC](https://discourse.processing.org/t/why-my-enemy-doesnt-work/13494 "2019-09-21T20:11:01Z")

</div>

Hello good afternoon I wanted to ask for help on a game I’m developing :smiley: It’s a snake game but the enemy isn’t working it was supposed to touch the enemy and the game is over. And the game does not open in openpr…

---

## [Blurred Image instead of pixels visible](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071)

<div class="topic-metadata">

**Author:** [@mikolaskoa](https://discourse.processing.org/u/mikolaskoa)\
**Replies:** 4\
**Last updated:** [September 21, 2019, 4:59pm UTC](https://discourse.processing.org/t/blurred-image-instead-of-pixels-visible/14071 "2019-09-21T16:59:32Z")

</div>

Hello, how can I make the pixels of an image stay sharp on screen? When I create them directly with the set-Method, they stay sharp. When creating an image - they get blurred (which is usefull if there are gradients,…

---

## [Passing preferences as arguments to java-processing](https://discourse.processing.org/t/passing-preferences-as-arguments-to-java-processing/13916)

<div class="topic-metadata">

**Author:** [@jvolker](https://discourse.processing.org/u/jvolker)\
**Replies:** 3\
**Last updated:** [September 21, 2019, 11:47am UTC](https://discourse.processing.org/t/passing-preferences-as-arguments-to-java-processing/13916 "2019-09-21T11:47:05Z")

</div>

I’m looking for a way to pass run.present.bgcolor=#666666 run.present.stop.color=#cccccc as arguments to processing-java CLI. Is the only way to change them in preferences.txt or are there ways to pass them on the com…

---

## [Byte size shortened](https://discourse.processing.org/t/byte-size-shortened/13765)

<div class="topic-metadata">

**Author:** [@moimat56](https://discourse.processing.org/u/moimat56)\
**Replies:** 7\
**Last updated:** [September 21, 2019, 9:07am UTC](https://discourse.processing.org/t/byte-size-shortened/13765 "2019-09-21T09:07:49Z")

</div>

Hello, i’m trying to rebuild a float number sent on a serial line. I had trouble working on a bitwise operation. Code : I expected a byte to be 8bits of length but I can only fill the array with 4bits values (Ex : …

---

## [Error Loading Shader in Android Studio](https://discourse.processing.org/t/error-loading-shader-in-android-studio/14086)

<div class="topic-metadata">

**Author:** [@Towelie](https://discourse.processing.org/u/Towelie)\
**Replies:** 2\
**Last updated:** [September 21, 2019, 7:08am UTC](https://discourse.processing.org/t/error-loading-shader-in-android-studio/14086 "2019-09-21T07:08:08Z")

</div>

Hello, My code snippet is below. First off just in case it is relevant, I moved my .glsl file to the main res folder to get around an error with having path separators in the file name. It seems to accept that now but…

---

## [TouchScreens and mousereleased()](https://discourse.processing.org/t/touchscreens-and-mousereleased/6135)

<div class="topic-metadata">

**Author:** [@metype](https://discourse.processing.org/u/metype)\
**Replies:** 3\
**Last updated:** [September 21, 2019, 4:38am UTC](https://discourse.processing.org/t/touchscreens-and-mousereleased/6135 "2019-09-21T04:38:12Z")

</div>

When using a mouse and keyboard this code works fine and draws like it is supposed to, but when using a touchscreen and taking my finger off of the screen, the mouseReleased() function never seems to get called. color c…

---

## [P3D Vector Spherical Geometry Ball](https://discourse.processing.org/t/p3d-vector-spherical-geometry-ball/14083)

<div class="topic-metadata">

**Author:** [@ChristmasCC](https://discourse.processing.org/u/ChristmasCC)\
**Replies:** 8\
**Last updated:** [September 21, 2019, 4:25am UTC](https://discourse.processing.org/t/p3d-vector-spherical-geometry-ball/14083 "2019-09-21T04:25:19Z")

</div>

I want to create a Ball that could go bigger and smaller according to the Music Frequency. (I don’t want to use the sphere(), because it doesn’t create the dot points) I made it work. But, it is a little bit laggy. At t…

---

## [Building an API in Processing?](https://discourse.processing.org/t/building-an-api-in-processing/14017)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.processing.org/u/eric)\
**Replies:** 9\
**Last updated:** [September 20, 2019, 6:04pm UTC](https://discourse.processing.org/t/building-an-api-in-processing/14017 "2019-09-20T18:04:55Z")

</div>

I’ve researched API’s briefly, and my overall goal would be much simpler if I could build an API in Processing from a program that I’ve already built and then access that through an iOS app that I plan on building after.…

---

## [Vida - a simple p5js library for motion detection](https://discourse.processing.org/t/vida-a-simple-p5js-library-for-motion-detection/7560)

<div class="topic-metadata">

**Author:** [@yaniki](https://discourse.processing.org/u/yaniki)\
**Replies:** 7\
**Last updated:** [September 20, 2019, 4:13pm UTC](https://discourse.processing.org/t/vida-a-simple-p5js-library-for-motion-detection/7560 "2019-09-20T16:13:39Z")

</div>

Dear Friends I would like to introduce a new library for p5js: Vida is a simple library that adds camera (or video) based motion detection and blob tracking functionality to p5js. The library allows motion detection ba…

---

## [Heatmap and raw data](https://discourse.processing.org/t/heatmap-and-raw-data/14074)

<div class="topic-metadata">

**Author:** [@Barbara](https://discourse.processing.org/u/Barbara)\
**Replies:** 4\
**Last updated:** [September 20, 2019, 4:12pm UTC](https://discourse.processing.org/t/heatmap-and-raw-data/14074 "2019-09-20T16:12:03Z")

</div>

Good morning Please, I only need to understand if I could consider an heatmap correspondent to a human gene microarray as raw data or if it is just an analysis… thanks in advance

---

## [How to create real time data measuring GUI from processing?](https://discourse.processing.org/t/how-to-create-real-time-data-measuring-gui-from-processing/14081)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [September 20, 2019, 8:11am UTC](https://discourse.processing.org/t/how-to-create-real-time-data-measuring-gui-from-processing/14081 "2019-09-20T08:11:02Z")

</div>

I need to create a graphical user interface (GUI) with processing to obtain real time data measurements obtained from arduino serial communication? How can I do it on processing software?? Any examples or tutorials??

---

## [Counting people's numbers](https://discourse.processing.org/t/counting-peoples-numbers/14049)

<div class="topic-metadata">

**Author:** [@jeeees2](https://discourse.processing.org/u/jeeees2)\
**Replies:** 4\
**Last updated:** [September 20, 2019, 4:40am UTC](https://discourse.processing.org/t/counting-peoples-numbers/14049 "2019-09-20T04:40:04Z")

</div>

Hi, I’m a beginner in processing. I count the number of people with a Kinect program. It recognizes the current number of people and the previous number of people in real time. But there’s a problem. From zero to one,…

---

## [Having problem with video library](https://discourse.processing.org/t/having-problem-with-video-library/14065)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 5\
**Last updated:** [September 20, 2019, 4:01am UTC](https://discourse.processing.org/t/having-problem-with-video-library/14065 "2019-09-20T04:01:42Z")

</div>

when ever I am trying to use the video library it is showing an error message: a library used by this sketch is not installed properly. UnsatisfiedLinkError: can’t load library gio-2.0 (gio-2.0|libgio-2.0|libgio-2.0-0…

---

## [Need help figuring out how to make triangle and custom shape follow cursor](https://discourse.processing.org/t/need-help-figuring-out-how-to-make-triangle-and-custom-shape-follow-cursor/14021)

<div class="topic-metadata">

**Author:** [@Adrian1998](https://discourse.processing.org/u/Adrian1998)\
**Replies:** 4\
**Last updated:** [September 19, 2019, 10:39pm UTC](https://discourse.processing.org/t/need-help-figuring-out-how-to-make-triangle-and-custom-shape-follow-cursor/14021 "2019-09-19T22:39:48Z")

</div>

So I am very confused on how to make a triangle and a custom shape follow my cursor, with ellipses and rectangles it is very simple because I can just switch the x and y values to mouseX and mouse Y, but with a triangle…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=443)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=445)
