# Processing

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

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

**Page:** 225

---

## [Using loadImage with tiff](https://discourse.processing.org/t/using-loadimage-with-tiff/19205)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 0\
**Last updated:** [March 30, 2020, 8:07pm UTC](https://discourse.processing.org/t/using-loadimage-with-tiff/19205 "2020-03-30T20:07:42Z")

</div>

How do I load images that are .tiff format? loadImage() only works with ( .gif, .jpg, .tga, .png). I want to use tiff, not something else. Is there a different method, or a workaround? I saw loadImageIO() somewhere but i…

---

## [He\_Mesh documentation](https://discourse.processing.org/t/he-mesh-documentation/18798)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 9\
**Last updated:** [March 30, 2020, 7:06pm UTC](https://discourse.processing.org/t/he-mesh-documentation/18798 "2020-03-30T19:06:45Z")

</div>

hi all, please where can I find the HE\_Mesh library documentation, it disappeared when I updates and I can not find in the author website ! am I missing something ? thanx

---

## [How can I add an object every minute?](https://discourse.processing.org/t/how-can-i-add-an-object-every-minute/19191)

<div class="topic-metadata">

**Author:** [@sandyveer](https://discourse.processing.org/u/sandyveer)\
**Replies:** 2\
**Last updated:** [March 30, 2020, 4:33pm UTC](https://discourse.processing.org/t/how-can-i-add-an-object-every-minute/19191 "2020-03-30T16:33:57Z")

</div>

Hii, I’m relatively new to processing and am currently trying to recreate this abstract clock: https://www.youtube.com/watch?v=93Jf32V1\_FU I am lost as to how to add a new square randomly on the canvas every minute. And…

---

## [Camera not working in Mac Mojave](https://discourse.processing.org/t/camera-not-working-in-mac-mojave/19054)

<div class="topic-metadata">

**Author:** [@brewthom](https://discourse.processing.org/u/brewthom)\
**Replies:** 4\
**Last updated:** [March 30, 2020, 3:22pm UTC](https://discourse.processing.org/t/camera-not-working-in-mac-mojave/19054 "2020-03-30T15:22:28Z")

</div>

I’m trying to use the Processing video library examples (under Capture in library examples). I can get them working fine in windows 10, but no luck on Mac 10.14.6 (Mojave). Is this a known issue? To be clear, I’m using t…

---

## [Load different SVG files based on table data (Simple, Beginner!)](https://discourse.processing.org/t/load-different-svg-files-based-on-table-data-simple-beginner/19186)

<div class="topic-metadata">

**Author:** [@BenEvans](https://discourse.processing.org/u/BenEvans)\
**Replies:** 6\
**Last updated:** [March 30, 2020, 3:15pm UTC](https://discourse.processing.org/t/load-different-svg-files-based-on-table-data-simple-beginner/19186 "2020-03-30T15:15:46Z")

</div>

Hey community - thanks for being there. I have looked elsewhere, but haven’t found a solution to what ought to be extremely simple - apologies if my research was insufficient. FYI I already can: Load a table, get ints …

---

## [Year Error in Date Calculation](https://discourse.processing.org/t/year-error-in-date-calculation/19154)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 4\
**Last updated:** [March 30, 2020, 8:47am UTC](https://discourse.processing.org/t/year-error-in-date-calculation/19154 "2020-03-30T08:47:34Z")

</div>

I was printing dates along the x axis of a graph, and saw a year error. I’ve reduced the program to a minimum demo of the problem. It’s supposed to print the date for each day. The number of days in error varies from y…

---

## [Most efficient way to draw hyperbola?](https://discourse.processing.org/t/most-efficient-way-to-draw-hyperbola/17713)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 8\
**Last updated:** [March 29, 2020, 9:54pm UTC](https://discourse.processing.org/t/most-efficient-way-to-draw-hyperbola/17713 "2020-03-29T21:54:23Z")

</div>

TLDR: What’s easier for a computer: making a curve out of a polygon with a bunch of regular vertices, or making it out of a shape with a couple of quadratic vertices? So, as the title suggests, I need to generate a hype…

---

## [Create boundaries for tank](https://discourse.processing.org/t/create-boundaries-for-tank/6521)

<div class="topic-metadata">

**Author:** [@ari\_y](https://discourse.processing.org/u/ari_y)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 9:32pm UTC](https://discourse.processing.org/t/create-boundaries-for-tank/6521 "2020-03-29T21:32:58Z")

</div>

My assignment is to create a program that allows the user to drive a tank around the screen. It needs to have walls on at the edges of the screen and 2 boundaries that are each larger than the tank. When a tank is moved …

---

## [Need help with code for school](https://discourse.processing.org/t/need-help-with-code-for-school/19062)

<div class="topic-metadata">

**Author:** [@comrade](https://discourse.processing.org/u/comrade)\
**Replies:** 3\
**Last updated:** [March 29, 2020, 8:44pm UTC](https://discourse.processing.org/t/need-help-with-code-for-school/19062 "2020-03-29T20:44:11Z")

</div>

int x; int y; int wx; int wy; int s = 0; PImage sunf; PImage bee; void setup(){ size(1920,1080); x = (int)random(200,1700); y = (int)random(200, 800); bee = loadImage(“bee.png”); sunf = loadImage(“sunf.jpg”); …

---

## [Communication between apps](https://discourse.processing.org/t/communication-between-apps/18795)

<div class="topic-metadata">

**Author:** [@julianop](https://discourse.processing.org/u/julianop)\
**Replies:** 10\
**Last updated:** [March 29, 2020, 8:38pm UTC](https://discourse.processing.org/t/communication-between-apps/18795 "2020-03-29T20:38:23Z")

</div>

Is there a way of passing data between apps in Processing, such as OLE ?

---

## [Graph in processing](https://discourse.processing.org/t/graph-in-processing/5255)

<div class="topic-metadata">

**Author:** [@martijnroks](https://discourse.processing.org/u/martijnroks)\
**Replies:** 1\
**Last updated:** [March 29, 2020, 8:28pm UTC](https://discourse.processing.org/t/graph-in-processing/5255 "2020-03-29T20:28:32Z")

</div>

Hello, I need to make a graph with GPS information embedded into it. I need to have the let and long in the graph. We get the information from the arduino with the sensor GP20U7. The graph needs to show a realtime loc…

---

## [Setting map ranges suitably](https://discourse.processing.org/t/setting-map-ranges-suitably/19130)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [March 29, 2020, 8:11pm UTC](https://discourse.processing.org/t/setting-map-ranges-suitably/19130 "2020-03-29T20:11:23Z")

</div>

Hello everyone! can some one please explain to me why my map parameters of both Arduino and processing codes are not fluidly animating the array of pngs I have declared and then stopping with an ArrayIndexOutBoundsExcept…

---

## [Processing Max Msp. Sending data to Max](https://discourse.processing.org/t/processing-max-msp-sending-data-to-max/18987)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [March 29, 2020, 7:47pm UTC](https://discourse.processing.org/t/processing-max-msp-sending-data-to-max/18987 "2020-03-29T19:47:38Z")

</div>

Hello guys! I would like to send data to max (float and int). I made a small sketch based on the example of the library oscP5, but I don’t know at all, if we can send several int like that. There is a problem with flo…

---

## [Trying to get all objects in array to have collision](https://discourse.processing.org/t/trying-to-get-all-objects-in-array-to-have-collision/19137)

<div class="topic-metadata">

**Author:** [@Banana132](https://discourse.processing.org/u/Banana132)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 7:20pm UTC](https://discourse.processing.org/t/trying-to-get-all-objects-in-array-to-have-collision/19137 "2020-03-29T19:20:30Z")

</div>

For the past few days, I have been struggling to get all the objects in my arraylist to be able to collide with the player object, but I am just struggling to get it to work. Im just not sure how to reference the array i…

---

## [Help with assignment](https://discourse.processing.org/t/help-with-assignment/18573)

<div class="topic-metadata">

**Author:** [@Burgs](https://discourse.processing.org/u/Burgs)\
**Replies:** 10\
**Last updated:** [March 29, 2020, 5:42pm UTC](https://discourse.processing.org/t/help-with-assignment/18573 "2020-03-29T17:42:54Z")

</div>

In this programming assignment, you will write an active Processing program that uses nested loops to display a grid of balls that follows the mouse. The number of columns of balls will increase each time the mouse is c…

---

## [Minesweeper coding help](https://discourse.processing.org/t/minesweeper-coding-help/19027)

<div class="topic-metadata">

**Author:** [@quadri](https://discourse.processing.org/u/quadri)\
**Replies:** 1\
**Last updated:** [March 26, 2020, 10:01am UTC](https://discourse.processing.org/t/minesweeper-coding-help/19027 "2020-03-26T10:01:16Z")

</div>

Write a function called check\_surrounds with 4 inputs:  dim (a positive integer)  grid (a 2D numerical array containing only 1s and 0s of size dimxdim).  i (a positive integer between 1 and dim)  j (a positive in…

---

## [Coding a hole using PShape](https://discourse.processing.org/t/coding-a-hole-using-pshape/19135)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 5:26pm UTC](https://discourse.processing.org/t/coding-a-hole-using-pshape/19135 "2020-03-29T17:26:15Z")

</div>

Here is the code from the processing example /\*\* \* BeginEndContour \* \* How to cut a shape out of another using beginContour() and endContour() \*/ PShape s; void setup() { size(640, 360, P2D); // Make a shap…

---

## [Mousepressed variable does not exist?](https://discourse.processing.org/t/mousepressed-variable-does-not-exist/19144)

<div class="topic-metadata">

**Author:** [@rozer](https://discourse.processing.org/u/rozer)\
**Replies:** 5\
**Last updated:** [March 29, 2020, 4:47pm UTC](https://discourse.processing.org/t/mousepressed-variable-does-not-exist/19144 "2020-03-29T16:47:12Z")

</div>

Hello, When using the code below, the IDE marks mousePressed red and the error message is "expecting LPAREN, found ‘mousePressed’ Looking around did not help me so far. I am using version 3.5.4. Thanks, Stephan if (…

---

## [Missing Something Basic about if statements](https://discourse.processing.org/t/missing-something-basic-about-if-statements/19147)

<div class="topic-metadata">

**Author:** [@VytautasTheGreat](https://discourse.processing.org/u/VytautasTheGreat)\
**Replies:** 4\
**Last updated:** [March 29, 2020, 4:32pm UTC](https://discourse.processing.org/t/missing-something-basic-about-if-statements/19147 "2020-03-29T16:32:39Z")

</div>

Hi everyone. I’m a complete beginner so please forgive what is probably an obvious question. In the code below, I am creating two global booleans. I want one to toggle after each mouse click, and one to permanently fl…

---

## [App to Draw Straight Lines](https://discourse.processing.org/t/app-to-draw-straight-lines/19139)

<div class="topic-metadata">

**Author:** [@Tizzer](https://discourse.processing.org/u/Tizzer)\
**Replies:** 1\
**Last updated:** [March 29, 2020, 3:12pm UTC](https://discourse.processing.org/t/app-to-draw-straight-lines/19139 "2020-03-29T15:12:24Z")

</div>

Hi, I’m trying to write some code that will allow me to draw straight lines based on when I press (mousePressed) and release or drag the mouse. (Any of you who have used say AutoCad or similar will know the type of func…

---

## [Bezier SQL MySQL SSL / TLS security](https://discourse.processing.org/t/bezier-sql-mysql-ssl-tls-security/19117)

<div class="topic-metadata">

**Author:** [@gaujos87](https://discourse.processing.org/u/gaujos87)\
**Replies:** 4\
**Last updated:** [March 29, 2020, 5:08am UTC](https://discourse.processing.org/t/bezier-sql-mysql-ssl-tls-security/19117 "2020-03-29T05:08:03Z")

</div>

Hello Everyone, At the outset I would like to complement the entire Processing Team and associates for a fantastic and a capable open source development platform. I have used BezeirSQL Library for storing my data of a …

---

## [Gioco da definire](https://discourse.processing.org/t/gioco-da-definire/18681)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 28\
**Last updated:** [March 29, 2020, 12:41am UTC](https://discourse.processing.org/t/gioco-da-definire/18681 "2020-03-29T00:41:56Z")

</div>

Ciao a tutti! Sto lavorando su un nuovo gioco o comunque una sorta di intrattenimento interattivo, il progetto su cui sto lavorando è basato sul fare qualcosa che attiri l’attenzione del giocatore. Vorrei renderlo più …

---

## ["ammo" cannot be resolved to a variable \[total beginner\], please help!](https://discourse.processing.org/t/ammo-cannot-be-resolved-to-a-variable-total-beginner-please-help/19123)

<div class="topic-metadata">

**Author:** [@CodeNewbie123](https://discourse.processing.org/u/CodeNewbie123)\
**Replies:** 3\
**Last updated:** [March 28, 2020, 10:26pm UTC](https://discourse.processing.org/t/ammo-cannot-be-resolved-to-a-variable-total-beginner-please-help/19123 "2020-03-28T22:26:07Z")

</div>

I’m a little bit desperate. Why does Processing say “ammo cannot be resolved to a variable” (Row 52), although i declared the array already in setup? (Row 29) https://pastebin.com/T8M2T6Np I’ve tried my best, but I’m y…

---

## [Parsing a string to an integer](https://discourse.processing.org/t/parsing-a-string-to-an-integer/19102)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 4:39pm UTC](https://discourse.processing.org/t/parsing-a-string-to-an-integer/19102 "2020-03-28T16:39:55Z")

</div>

Hello everyone, I wrote a processing program where and array of png’s animate with the system variable mouseY using the map function. It works, but now I want to change the mouseY and animate with the ultrasonic data com…

---

## [Box2D speed control issue using revolute joints](https://discourse.processing.org/t/box2d-speed-control-issue-using-revolute-joints/18788)

<div class="topic-metadata">

**Author:** [@kenle](https://discourse.processing.org/u/kenle)\
**Replies:** 0\
**Last updated:** [March 19, 2020, 9:53am UTC](https://discourse.processing.org/t/box2d-speed-control-issue-using-revolute-joints/18788 "2020-03-19T09:53:18Z")

</div>

Hi there, I cannot figure out how to control the motor speed of revolute joints from Box2D using processing. I use the same principle as Shiffman (youtube guru) creating a windmill (see partly code in the bottom). Here…

---

## [Name in an Highscore](https://discourse.processing.org/t/name-in-an-highscore/18706)

<div class="topic-metadata">

**Author:** [@JohnGreen](https://discourse.processing.org/u/JohnGreen)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 3:37pm UTC](https://discourse.processing.org/t/name-in-an-highscore/18706 "2020-03-28T15:37:50Z")

</div>

Hi, I’m new to this forum, but I had to create a game using Processing and now I’m trying to add an Highscore, in which I’d like to put both name and score. I managed to add the score and I used ControlP5 to write the na…

---

## [Delay on first collision, but not subsequent ones](https://discourse.processing.org/t/delay-on-first-collision-but-not-subsequent-ones/18989)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 5\
**Last updated:** [March 28, 2020, 3:12pm UTC](https://discourse.processing.org/t/delay-on-first-collision-but-not-subsequent-ones/18989 "2020-03-28T15:12:42Z")

</div>

Hi all, I’m wondering if anyone can let me know why I get a considerable delay (a few seconds) when one object collides with another for the first time, but then after that there’s no delay. Here’s my code: PImage\[\] pl…

---

## [Adjusting window size AND shape size](https://discourse.processing.org/t/adjusting-window-size-and-shape-size/19025)

<div class="topic-metadata">

**Author:** [@Tina](https://discourse.processing.org/u/Tina)\
**Replies:** 3\
**Last updated:** [March 28, 2020, 12:28pm UTC](https://discourse.processing.org/t/adjusting-window-size-and-shape-size/19025 "2020-03-28T12:28:51Z")

</div>

I want to code my program so that regardless of what the window size is modified to, the shape (rectangle) will also change according to the new size. In other words, the rectangle size and position should adjust if the …

---

## [Looping through JSON properties](https://discourse.processing.org/t/looping-through-json-properties/19090)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 16\
**Last updated:** [March 28, 2020, 11:23am UTC](https://discourse.processing.org/t/looping-through-json-properties/19090 "2020-03-28T11:23:28Z")

</div>

I need to loop through a JSON file that looks like this: JSON"blocks":{ "vJb19r)WPw88AL7K#^ZI":{ "opcode":"control\_incr\_counter", "next":"IV.E7vBXTcdK0jZYX}…

---

## [Flow Field (Perlin noise)"Array Index Out Of Bounds Exception" Error](https://discourse.processing.org/t/flow-field-perlin-noise-array-index-out-of-bounds-exception-error/19098)

<div class="topic-metadata">

**Author:** [@niuuin](https://discourse.processing.org/u/niuuin)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 9:16am UTC](https://discourse.processing.org/t/flow-field-perlin-noise-array-index-out-of-bounds-exception-error/19098 "2020-03-28T09:16:45Z")

</div>

Hi everyone, I try to convert Coding Challenge #24: Perlin Noise Flow Field to processing，But encountered “ArrayIndexOutOfBoundsException” Error,This is my code: float inc = 0.1; int scl = 20; int cols, rows; float …

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

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