# Processing

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

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

**Page:** 272

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [How do I draw something and then save it as an Image?](https://discourse.processing.org/t/how-do-i-draw-something-and-then-save-it-as-an-image/14033)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 14\
**Last updated:** [September 19, 2019, 10:08pm UTC](https://discourse.processing.org/t/how-do-i-draw-something-and-then-save-it-as-an-image/14033 "2019-09-19T22:08:21Z")

</div>

When I draw something on a custom offscreen PGraphics and then save the file it is a blank image with alpha 0 on all pixels. How is PImage and PGraphics supposed to be used to save an image drawn? Worth mentioning is t…

---

## [Extra rotation added while using Proscene](https://discourse.processing.org/t/extra-rotation-added-while-using-proscene/14036)

<div class="topic-metadata">

**Author:** [@simCoder](https://discourse.processing.org/u/simCoder)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 8:28pm UTC](https://discourse.processing.org/t/extra-rotation-added-while-using-proscene/14036 "2019-09-19T20:28:19Z")

</div>

Hello all! I am currently using the Proscene library to control 3D panning, rotation, and zooming, and one thing I noticed is that when rotating a scene by pressing on the left mouse button while dragging the mouse (or b…

---

## [Github: How to delete files or folder?](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 3\
**Last updated:** [September 19, 2019, 3:41pm UTC](https://discourse.processing.org/t/github-how-to-delete-files-or-folder/14059 "2019-09-19T15:41:10Z")

</div>

Github: How to delete files or folder? I don’t get it I use the browser version

---

## [Processing image not showing](https://discourse.processing.org/t/processing-image-not-showing/13986)

<div class="topic-metadata">

**Author:** [@uv\_100\_100](https://discourse.processing.org/u/uv_100_100)\
**Replies:** 9\
**Last updated:** [September 19, 2019, 5:12am UTC](https://discourse.processing.org/t/processing-image-not-showing/13986 "2019-09-19T05:12:22Z")

</div>

I am trying to make a Tic-tac-toe and all is good except for the fact that I want to show an image saying “X wins” until the user clicks the mouse. But somehow the mousePressed variable is true even when I don’t click an…

---

## [Urgent, comand ignored](https://discourse.processing.org/t/urgent-comand-ignored/14063)

<div class="topic-metadata">

**Author:** [@chaps421](https://discourse.processing.org/u/chaps421)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 3:32am UTC](https://discourse.processing.org/t/urgent-comand-ignored/14063 "2019-09-19T03:32:03Z")

</div>

I have a team maker, but it has a little animation of randomness" the team only can be 3 people and every time you press enter it puts the name in the team that it shows the problem comes when the team is full and it ch…

---

## [How do you parse a nested JSON file like below using Processing JSON object?](https://discourse.processing.org/t/how-do-you-parse-a-nested-json-file-like-below-using-processing-json-object/14053)

<div class="topic-metadata">

**Author:** [@advancecoder](https://discourse.processing.org/u/advancecoder)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 6:18pm UTC](https://discourse.processing.org/t/how-do-you-parse-a-nested-json-file-like-below-using-processing-json-object/14053 "2019-09-18T18:18:17Z")

</div>

How do you parse a nested JSON file like below using Processing JSON object? { "info": { "description": "COCO 2014 Dataset", "url": "http://cocodataset.org", "version": "1.0", "year": 2014, "contri…

---

## [Performance loss with PGraphics and SVG](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 25\
**Last updated:** [September 18, 2019, 5:09pm UTC](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897 "2019-09-18T17:09:03Z")

</div>

Hi there. I’m having a large issue with performance loss using PGraphics. The situation is: I’m importing an svg with 860 child Polygons. I need to do a color sampling for each and every child shape based on it’s centro…

---

## [Strange offset between shader and encoded data](https://discourse.processing.org/t/strange-offset-between-shader-and-encoded-data/14048)

<div class="topic-metadata">

**Author:** [@Xelo](https://discourse.processing.org/u/Xelo)\
**Replies:** 4\
**Last updated:** [September 18, 2019, 1:58pm UTC](https://discourse.processing.org/t/strange-offset-between-shader-and-encoded-data/14048 "2019-09-18T13:58:29Z")

</div>

Hey, I am working on a real-time 2d radiosity lighting demo similar to the inactive pixelflow demo in pure processing. This uses no external libraries, and does not use pixelflow itself. So far the pipeline runs smooth…

---

## [Rotating an ellipse](https://discourse.processing.org/t/rotating-an-ellipse/13927)

<div class="topic-metadata">

**Author:** [@Katerina\_P](https://discourse.processing.org/u/Katerina_P)\
**Replies:** 17\
**Last updated:** [September 18, 2019, 10:41am UTC](https://discourse.processing.org/t/rotating-an-ellipse/13927 "2019-09-18T10:41:25Z")

</div>

Hi guys, I’m trying to get my ellipse to spin around on its axis but it doesn’t seem to be working. this is the section of the code that i want to rotate: fill(#EBF233); ellipse(700, 75, 75, 75);

---

## [JBox2D moving dynamic object](https://discourse.processing.org/t/jbox2d-moving-dynamic-object/14001)

<div class="topic-metadata">

**Author:** [@parmex](https://discourse.processing.org/u/parmex)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 8:02am UTC](https://discourse.processing.org/t/jbox2d-moving-dynamic-object/14001 "2019-09-18T08:02:25Z")

</div>

Hi, i am using the JBox2D library, I have a problem. I want to use a little square that is a dynamic object and when i press A or D it moves on left and right; but if i am over the platform it fall like a normal dynamic…

---

## [Exporting to OBJ](https://discourse.processing.org/t/exporting-to-obj/11051)

<div class="topic-metadata">

**Author:** [@PixelMx](https://discourse.processing.org/u/PixelMx)\
**Replies:** 4\
**Last updated:** [September 18, 2019, 1:52am UTC](https://discourse.processing.org/t/exporting-to-obj/11051 "2019-09-18T01:52:37Z")

</div>

I used to use Nervous System to export to OBJ, but it does not work for Processing 3, I even installed Processing 2 and won’t work there either. If there’s no similar library now I’ll try to code it directly in python/bl…

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

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