# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?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

---

## [How do I save this as a video, without background?](https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174)

<div class="topic-metadata">

**Author:** [@noa\_noa](https://discourse.processing.org/u/noa_noa)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 7:57am UTC](https://discourse.processing.org/t/how-do-i-save-this-as-a-video-without-background/19174 "2020-03-31T07:57:20Z")

</div>

This is My code (where do i add the saveFrames()? or what do I add?: void setup() { background(600); size(800, 800); } void draw() { background(255); stroke(0); strokeWeight(1.4); scale(0.8); translat…

---

## [Shader displaying glitchy](https://discourse.processing.org/t/shader-displaying-glitchy/19134)

<div class="topic-metadata">

**Author:** [@opheliagame](https://discourse.processing.org/u/opheliagame)\
**Replies:** 4\
**Last updated:** [March 31, 2020, 5:09am UTC](https://discourse.processing.org/t/shader-displaying-glitchy/19134 "2020-03-31T05:09:26Z")

</div>

I have written a shader. In VSCode it looks like the one on the right. But on processing, it looks glitchy. Only the bottom left ‘block’ looks clean.

---

## [How to draw a flower, rotate petals](https://discourse.processing.org/t/how-to-draw-a-flower-rotate-petals/19143)

<div class="topic-metadata">

**Author:** [@tengtengloves](https://discourse.processing.org/u/tengtengloves)\
**Replies:** 23\
**Last updated:** [March 30, 2020, 10:44pm UTC](https://discourse.processing.org/t/how-to-draw-a-flower-rotate-petals/19143 "2020-03-30T22:44:55Z")

</div>

Hi all, I’m have no idea with coding but I really tried hard to fix it. I was stuck to draw on the flower petal code, I have tried for couple times but it not works. The flower petal couldn’t be rotated. Plus, when I r…

---

## [Frogger game (make the frog not to go outside)](https://discourse.processing.org/t/frogger-game-make-the-frog-not-to-go-outside/18825)

<div class="topic-metadata">

**Author:** [@nhghi](https://discourse.processing.org/u/nhghi)\
**Replies:** 8\
**Last updated:** [March 20, 2020, 5:26pm UTC](https://discourse.processing.org/t/frogger-game-make-the-frog-not-to-go-outside/18825 "2020-03-20T17:26:40Z")

</div>

hi, guys, I’m trying to make a new game. the basic idea is if my green frog will go around the canvas but it will not go outside of it. I created a objectInCanvas() function to see if the frog goes outside or not. so rig…

---

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

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

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