# Processing

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

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

**Page:** 327

---

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

---

## [Make button disappear when clicked](https://discourse.processing.org/t/make-button-disappear-when-clicked/7916)

<div class="topic-metadata">

**Author:** [@madsstella](https://discourse.processing.org/u/madsstella)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 3:20am UTC](https://discourse.processing.org/t/make-button-disappear-when-clicked/7916 "2019-01-29T03:20:49Z")

</div>

I know this is simple, probably. I just can’t figure it out on my own :frowning: I want to make an interactive character builder through asking questions and choosing options. I got the start menu up, with a button that …

---

## [Trying to draw grid of rotated rectangles -- not centering?](https://discourse.processing.org/t/trying-to-draw-grid-of-rotated-rectangles-not-centering/7906)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 3\
**Last updated:** [January 29, 2019, 3:07am UTC](https://discourse.processing.org/t/trying-to-draw-grid-of-rotated-rectangles-not-centering/7906 "2019-01-29T03:07:44Z")

</div>

I am trying to simply draw a centered grid of 5 rectangles but (1) the grid is not centered and (2) it draws 6. Can anyone help me out on what I’m doing wrong? int margin = 150; int rectH = 60; int rectW = 20; int n\_rec…

---

## [Multiple Objects question](https://discourse.processing.org/t/multiple-objects-question/7910)

<div class="topic-metadata">

**Author:** [@CodeTime](https://discourse.processing.org/u/CodeTime)\
**Replies:** 2\
**Last updated:** [January 29, 2019, 1:47am UTC](https://discourse.processing.org/t/multiple-objects-question/7910 "2019-01-29T01:47:58Z")

</div>

So I am trying to make chess with my limited knowledge and got stuck at a part. I have two objects (two white pawns) on the board but if I move them, they leave behind themselves as they are dragged across the screen. Th…

---

## [Convert java bufferedimage to PImage](https://discourse.processing.org/t/convert-java-bufferedimage-to-pimage/3059)

<div class="topic-metadata">

**Author:** [@sulin](https://discourse.processing.org/u/sulin)\
**Replies:** 12\
**Last updated:** [January 28, 2019, 10:44pm UTC](https://discourse.processing.org/t/convert-java-bufferedimage-to-pimage/3059 "2019-01-28T22:44:55Z")

</div>

I am using processing.core in java to work with layered psd images using TwelveMonkeys imageIO plugins. I can successfully read and display the layers of the image using swift but cant seem to figure out how to convert t…

---

## [The package “META” does not exist. You might be missing a library](https://discourse.processing.org/t/the-package-meta-does-not-exist-you-might-be-missing-a-library/7912)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 0\
**Last updated:** [January 28, 2019, 9:25pm UTC](https://discourse.processing.org/t/the-package-meta-does-not-exist-you-might-be-missing-a-library/7912 "2019-01-28T21:25:43Z")

</div>

I try to use the library byte-buddy. Located here: https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy/1.9.2 In VSCode it works fine but now I want to use it in processing. When dragging it on a sketch (so it…

---

## [Inverse matrix and linear equation](https://discourse.processing.org/t/inverse-matrix-and-linear-equation/7711)

<div class="topic-metadata">

**Author:** [@Feltopi](https://discourse.processing.org/u/Feltopi)\
**Replies:** 5\
**Last updated:** [January 27, 2019, 10:59pm UTC](https://discourse.processing.org/t/inverse-matrix-and-linear-equation/7711 "2019-01-27T22:59:31Z")

</div>

Hello there, is there any way to make inverse matrix to solve linear equation, or any other way of doing it? Im new to programing and processing itself, but i would like to make a program to building statics, which inv…

---

## [How to embed a Processing sketch onto an HTML](https://discourse.processing.org/t/how-to-embed-a-processing-sketch-onto-an-html/7265)

<div class="topic-metadata">

**Author:** [@delorean](https://discourse.processing.org/u/delorean)\
**Replies:** 6\
**Last updated:** [January 28, 2019, 2:21pm UTC](https://discourse.processing.org/t/how-to-embed-a-processing-sketch-onto-an-html/7265 "2019-01-28T14:21:47Z")

</div>

Hi everyone, I’m very new to processing and programming, I hope you can help, I have bee trying to embed a Processing sketch onto an HTML using this information: https://cs.nyu.edu/~kapp/cs101/processing\_on\_the\_web/ th…

---

## [\[SOLVED\] Strange behavior using PGraphics as a recursive draw buffer](https://discourse.processing.org/t/solved-strange-behavior-using-pgraphics-as-a-recursive-draw-buffer/7699)

<div class="topic-metadata">

**Author:** [@picunrelated](https://discourse.processing.org/u/picunrelated)\
**Replies:** 9\
**Last updated:** [January 28, 2019, 10:05am UTC](https://discourse.processing.org/t/solved-strange-behavior-using-pgraphics-as-a-recursive-draw-buffer/7699 "2019-01-28T10:05:13Z")

</div>

Recently, I’ve been attempting to recreate a lot of my old Adobe Flash visualizations using Processing. Unfortunately, certain things seem to be much more difficult in Processing, at least for me right now. One thing I…

---

## [GLSL Shader on 3D Ring not working](https://discourse.processing.org/t/glsl-shader-on-3d-ring-not-working/7757)

<div class="topic-metadata">

**Author:** [@pblancos](https://discourse.processing.org/u/pblancos)\
**Replies:** 11\
**Last updated:** [January 28, 2019, 9:09am UTC](https://discourse.processing.org/t/glsl-shader-on-3d-ring-not-working/7757 "2019-01-28T09:09:07Z")

</div>

I’m try to map GLSL texture shader to 3D ring, I’ve got little working, but I think i’m miss some translation to 3D (i think), as it’s mapping it to 2D. I try use fragment from processing site. Where am I going wrong? s…

---

## [Functions that don't have to be called](https://discourse.processing.org/t/functions-that-dont-have-to-be-called/7829)

<div class="topic-metadata">

**Author:** [@germaine](https://discourse.processing.org/u/germaine)\
**Replies:** 4\
**Last updated:** [January 28, 2019, 4:14am UTC](https://discourse.processing.org/t/functions-that-dont-have-to-be-called/7829 "2019-01-28T04:14:24Z")

</div>

I’m used to writing functions and then calling them in draw() or setup(), but in other people’s sketches, I’ve found functions that clearly run but don’t seem to be called or referenced anywhere else in the code. Am I ju…

---

## [Issue communicating with Arduino](https://discourse.processing.org/t/issue-communicating-with-arduino/7847)

<div class="topic-metadata">

**Author:** [@Ryan12](https://discourse.processing.org/u/Ryan12)\
**Replies:** 2\
**Last updated:** [January 28, 2019, 5:36am UTC](https://discourse.processing.org/t/issue-communicating-with-arduino/7847 "2019-01-28T05:36:00Z")

</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 …

---

## [Narrowing down numbers for a guessing game](https://discourse.processing.org/t/narrowing-down-numbers-for-a-guessing-game/7754)

<div class="topic-metadata">

**Author:** [@dennisreyes](https://discourse.processing.org/u/dennisreyes)\
**Replies:** 3\
**Last updated:** [January 28, 2019, 2:50am UTC](https://discourse.processing.org/t/narrowing-down-numbers-for-a-guessing-game/7754 "2019-01-28T02:50:24Z")

</div>

Hi! I have a project in which I need to make a number guessing game. I’ve already figured how to the code for asking the user to guess lower or higher but another component was that the game should be able to narrow down…

---

## [Strange Behavior Triggered by image() Function](https://discourse.processing.org/t/strange-behavior-triggered-by-image-function/7638)

<div class="topic-metadata">

**Author:** [@JackWitherell](https://discourse.processing.org/u/JackWitherell)\
**Replies:** 19\
**Last updated:** [January 28, 2019, 1:30am UTC](https://discourse.processing.org/t/strange-behavior-triggered-by-image-function/7638 "2019-01-28T01:30:51Z")

</div>

Hey there. First post, haven’t figured out if there’s anywhere else I could go for similar questions, thought I should ask here before creating an issue on Processing’s github issues board. I’ve found some really strang…

---

## [New Functions in PROCESSING 3.5](https://discourse.processing.org/t/new-functions-in-processing-3-5/7723)

<div class="topic-metadata">

**Author:** [@jonzamarripa](https://discourse.processing.org/u/jonzamarripa)\
**Replies:** 8\
**Last updated:** [January 27, 2019, 8:32pm UTC](https://discourse.processing.org/t/new-functions-in-processing-3-5/7723 "2019-01-27T20:32:35Z")

</div>

I just updated my processing to 3.5 and I saw that they added circle () and square() Does anyone know the syntax and parameters of these functions? I think it’s exciting to have these new features.

---

## [Shape function draws nothing when given width and height](https://discourse.processing.org/t/shape-function-draws-nothing-when-given-width-and-height/7877)

<div class="topic-metadata">

**Author:** [@resbot](https://discourse.processing.org/u/resbot)\
**Replies:** 2\
**Last updated:** [January 27, 2019, 2:37pm UTC](https://discourse.processing.org/t/shape-function-draws-nothing-when-given-width-and-height/7877 "2019-01-27T14:37:16Z")

</div>

I am defining a custom PShape and attempting to redraw it a variable sizes. When I simply use the command shape(shapename, x, y) it draws correctly. When I use shape(shapename, a, b, c, d) where c and d are the width a…

---

## [Map point onto 135-degree line then onto x- and y-axis intercepts](https://discourse.processing.org/t/map-point-onto-135-degree-line-then-onto-x-and-y-axis-intercepts/7870)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 3\
**Last updated:** [January 27, 2019, 2:20pm UTC](https://discourse.processing.org/t/map-point-onto-135-degree-line-then-onto-x-and-y-axis-intercepts/7870 "2019-01-27T14:20:46Z")

</div>

Given any point on the screen (mouseX, mouseY) I need to draw a triangle bordered by a 135-degree line through that point (slope == -1) and by the left and bottom axes. In other words, anchored on the bottom-left corner…

---

## [Function to return int( from beginner) stuck](https://discourse.processing.org/t/function-to-return-int-from-beginner-stuck/7871)

<div class="topic-metadata">

**Author:** [@angelman](https://discourse.processing.org/u/angelman)\
**Replies:** 4\
**Last updated:** [January 27, 2019, 11:58am UTC](https://discourse.processing.org/t/function-to-return-int-from-beginner-stuck/7871 "2019-01-27T11:58:41Z")

</div>

This is my code. so it prints out the random numbers. But what I want is; like rate1 = first call to RateChoose(); rate2 = second call to RateChoose(); rate3 = third call void RateChoose(){int rate0 = 0; for (int…

---

## [How to REMOVE Title Bar](https://discourse.processing.org/t/how-to-remove-title-bar/7537)

<div class="topic-metadata">

**Author:** [@santosh](https://discourse.processing.org/u/santosh)\
**Replies:** 9\
**Last updated:** [January 27, 2019, 9:51am UTC](https://discourse.processing.org/t/how-to-remove-title-bar/7537 "2019-01-27T09:51:29Z")

</div>

How to REMOVE Title Bar???

---

## [Why can't I set PShape's stroke with P2D](https://discourse.processing.org/t/why-cant-i-set-pshapes-stroke-with-p2d/7859)

<div class="topic-metadata">

**Author:** [@kikinnaz](https://discourse.processing.org/u/kikinnaz)\
**Replies:** 3\
**Last updated:** [January 27, 2019, 7:41am UTC](https://discourse.processing.org/t/why-cant-i-set-pshapes-stroke-with-p2d/7859 "2019-01-27T07:41:51Z")

</div>

Hi everyone, I was wondering whether I overlooked an important piece of information or whether it is a bug. When I create my PShape and set it a stroke color, it is completely ignored when using P2D and I cannot find a …

---

## [Two syntax questions about arrays and classes](https://discourse.processing.org/t/two-syntax-questions-about-arrays-and-classes/7869)

<div class="topic-metadata">

**Author:** [@femke.blanco](https://discourse.processing.org/u/femke.blanco)\
**Replies:** 2\
**Last updated:** [January 27, 2019, 12:40am UTC](https://discourse.processing.org/t/two-syntax-questions-about-arrays-and-classes/7869 "2019-01-27T00:40:53Z")

</div>

Hi Apologies if these are newbie questions. I have just begun processing. (The full code is at the end of the post.) Question 1: When initialising an array with a “for” loop, why do I have to do so within void setup…

---

## [Is 2D DXF Export possible (w/ arcs)? Interested for laser engraving](https://discourse.processing.org/t/is-2d-dxf-export-possible-w-arcs-interested-for-laser-engraving/1467)

<div class="topic-metadata">

**Author:** [@thehans](https://discourse.processing.org/u/thehans)\
**Replies:** 3\
**Last updated:** [January 26, 2019, 10:17pm UTC](https://discourse.processing.org/t/is-2d-dxf-export-possible-w-arcs-interested-for-laser-engraving/1467 "2019-01-26T22:17:10Z")

</div>

I have a design which consists of just arc paths, and I want to laser engrave that onto a surface. I made a processing sketch to generate the pattern using PDF Export library. The PDF looked just how I wanted. But the…

---

## [OpenCV "FindContours" wont get me the number of Points](https://discourse.processing.org/t/opencv-findcontours-wont-get-me-the-number-of-points/7749)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 10\
**Last updated:** [January 26, 2019, 8:41pm UTC](https://discourse.processing.org/t/opencv-findcontours-wont-get-me-the-number-of-points/7749 "2019-01-26T20:41:00Z")

</div>

I am using the example “findContours” from the Open CV library. Here I found the reference for the library. http://atduskgreg.github.io/opencv-processing/reference/gab/opencv/Contour.html I am trying to determine how …

---

## [Trigonometry instead of rotate()](https://discourse.processing.org/t/trigonometry-instead-of-rotate/7848)

<div class="topic-metadata">

**Author:** [@Ov3rM1nD](https://discourse.processing.org/u/Ov3rM1nD)\
**Replies:** 4\
**Last updated:** [January 26, 2019, 8:31pm UTC](https://discourse.processing.org/t/trigonometry-instead-of-rotate/7848 "2019-01-26T20:31:23Z")

</div>

Hello everybody. I’m making my own Triangle class that builds triangle objects with some unique features like collision detection, rotate (), centerMode () (which can be VERTEX, CENTROID, CIRCUNCENTER, etc), and a few ot…

---

## [Boolean in parameters](https://discourse.processing.org/t/boolean-in-parameters/7853)

<div class="topic-metadata">

**Author:** [@Dinator14](https://discourse.processing.org/u/Dinator14)\
**Replies:** 3\
**Last updated:** [January 26, 2019, 5:54am UTC](https://discourse.processing.org/t/boolean-in-parameters/7853 "2019-01-26T05:54:15Z")

</div>

On the void dead(boolean hit) I get the yellow message saying how the value of the parameter hit is not being used. I’ve realized that putting hit in a conditional statement such as in void show does not bring up this me…

---

## [java.lang.RuntimeException: java.lang.OutOfMemoryError: GC overhead limit exceeded](https://discourse.processing.org/t/java-lang-runtimeexception-java-lang-outofmemoryerror-gc-overhead-limit-exceeded/7826)

<div class="topic-metadata">

**Author:** [@mictadlo](https://discourse.processing.org/u/mictadlo)\
**Replies:** 1\
**Last updated:** [January 26, 2019, 3:54am UTC](https://discourse.processing.org/t/java-lang-runtimeexception-java-lang-outofmemoryerror-gc-overhead-limit-exceeded/7826 "2019-01-26T03:54:10Z")

</div>

Hi, I ran MizBee on processing 2 and got the following error: java.lang.RuntimeException: java.lang.OutOfMemoryError: GC overhead limit exceeded at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:5…

---

## [CRC8, CRC16 and conversion to little endian (udp)](https://discourse.processing.org/t/crc8-crc16-and-conversion-to-little-endian-udp/7646)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 1\
**Last updated:** [January 25, 2019, 5:21pm UTC](https://discourse.processing.org/t/crc8-crc16-and-conversion-to-little-endian-udp/7646 "2019-01-25T17:21:40Z")

</div>

Just starting to code for the DJI Tello quadrocopter (see https://github.com/f41ardu/TelloProcessing/tree/master ), cause you can control Tello in an SDK mode sending commands. But to make most out of this little gadget…

---

## [TexCoord postProcessing shader problem](https://discourse.processing.org/t/texcoord-postprocessing-shader-problem/7690)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 9\
**Last updated:** [January 25, 2019, 9:03am UTC](https://discourse.processing.org/t/texcoord-postprocessing-shader-problem/7690 "2019-01-25T09:03:37Z")

</div>

hello! im trying to implement some ligth effect to a sphere. the idea is that it seems to emit light in a volumetric way, in the direction of the normal vectors. but i dont know exactly how can i do it. my fragment shad…

---

## [Library to apply BandPass filter for EEG signals in Processing](https://discourse.processing.org/t/library-to-apply-bandpass-filter-for-eeg-signals-in-processing/4972)

<div class="topic-metadata">

**Author:** [@Tanvi](https://discourse.processing.org/u/Tanvi)\
**Replies:** 8\
**Last updated:** [January 25, 2019, 5:34am UTC](https://discourse.processing.org/t/library-to-apply-bandpass-filter-for-eeg-signals-in-processing/4972 "2019-01-25T05:34:53Z")

</div>

Hi, I want to filter my incoming EEG data in processing before plotting. I explored the “Sound” library of processing (https://processing.org/reference/libraries/sound/index.html), but I think this is specifically for au…

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

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