# Processing

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

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

**Page:** 199

---

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

<div class="topic-metadata">

**Author:** [@mirthe24](https://discourse.processing.org/u/mirthe24)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 4:27pm UTC](https://discourse.processing.org/t/why-doesnt-this-work/22097 "2020-06-23T16:27:24Z")

</div>

import processing.serial.\*; import processing.sound.\*; SoundFile file; Serial myPort; // Create object from Serial class String val; // Data received from the serial port //String antwoord = "A"; void setup() { s…

---

## [Just a question](https://discourse.processing.org/t/just-a-question/22100)

<div class="topic-metadata">

**Author:** [@MartinGo](https://discourse.processing.org/u/MartinGo)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 3:08pm UTC](https://discourse.processing.org/t/just-a-question/22100 "2020-06-23T15:08:35Z")

</div>

Hi, I have the following question. Is there a way to start Processing with the last open project, open? It looks like a silly question, but I open Processing a lot.

---

## [Can anyone explain why this doesn't work?](https://discourse.processing.org/t/can-anyone-explain-why-this-doesnt-work/22092)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 7\
**Last updated:** [June 23, 2020, 2:12pm UTC](https://discourse.processing.org/t/can-anyone-explain-why-this-doesnt-work/22092 "2020-06-23T14:12:38Z")

</div>

Hey! I’m new to java and processing. I decided to follow a snake game tutorial for processing on youtube. After making it, I added some stuff myself and I also want to add a pause screen. So wrote thes to pause the game …

---

## [Find only specific colors in a given range](https://discourse.processing.org/t/find-only-specific-colors-in-a-given-range/22090)

<div class="topic-metadata">

**Author:** [@Morzin](https://discourse.processing.org/u/Morzin)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 12:44pm UTC](https://discourse.processing.org/t/find-only-specific-colors-in-a-given-range/22090 "2020-06-23T12:44:44Z")

</div>

Hi, I’m trying to make a program that only finds and selects pixels from a specific palette. I came up with the idea that the program should only take into account pixels with an H value of 20 ° - 55 ° (I mean yellow) …

---

## [Slit-scan effect](https://discourse.processing.org/t/slit-scan-effect/22036)

<div class="topic-metadata">

**Author:** [@alexandruchitu](https://discourse.processing.org/u/alexandruchitu)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 12:35pm UTC](https://discourse.processing.org/t/slit-scan-effect/22036 "2020-06-23T12:35:50Z")

</div>

Hello ! I’m a newbie :slight\_smile: I want to make this effect with a video I already shoot I try with this code : import processing.video.\*; Movie myVideo; int video\_width = 3840; int video\_height = 216…

---

## [3d model animation](https://discourse.processing.org/t/3d-model-animation/22039)

<div class="topic-metadata">

**Author:** [@code\_X](https://discourse.processing.org/u/code_X)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 11:19am UTC](https://discourse.processing.org/t/3d-model-animation/22039 "2020-06-23T11:19:13Z")

</div>

Hello everyone, i am here to simply ask if it would be possible to load a 3d model, from blender perhaps, that is fully equipped with a skeletal mesh and all, then use processing to control the movement of the 3d model. …

---

## [Font Changes in Processing](https://discourse.processing.org/t/font-changes-in-processing/22061)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 8:45am UTC](https://discourse.processing.org/t/font-changes-in-processing/22061 "2020-06-23T08:45:51Z")

</div>

Hello, I wanna change font smoother. For Example: My texts’ font is ‘xx’. When My Mouse reaches to my text it’s font has to change to ‘xx bold’ smoother. When I remove My Mouse from my text it has to be in initial font…

---

## [Serial sample frequency analysis](https://discourse.processing.org/t/serial-sample-frequency-analysis/21560)

<div class="topic-metadata">

**Author:** [@MiguelSanches](https://discourse.processing.org/u/MiguelSanches)\
**Replies:** 8\
**Last updated:** [June 23, 2020, 7:38am UTC](https://discourse.processing.org/t/serial-sample-frequency-analysis/21560 "2020-06-23T07:38:57Z")

</div>

Hi everyone, I am currently doing some tests on hardware. I am using a teensy 3.2 to send a byte stream of 87 bytes every 3.125ms (corresponding to 320SPS). The code can be found below. Arduino code: long Loop\_start; …

---

## [First Page Game](https://discourse.processing.org/t/first-page-game/22033)

<div class="topic-metadata">

**Author:** [@marika20](https://discourse.processing.org/u/marika20)\
**Replies:** 2\
**Last updated:** [June 21, 2020, 11:38pm UTC](https://discourse.processing.org/t/first-page-game/22033 "2020-06-21T23:38:52Z")

</div>

Hi everyone, I have a question: does anyone know how to put some sort of timer to insert a game interface? I’m creating a game where there is an interface that must be shown initially and then disappear … does anyone kn…

---

## [Saving specific frames into one PDF, using frameCount and array](https://discourse.processing.org/t/saving-specific-frames-into-one-pdf-using-framecount-and-array/22060)

<div class="topic-metadata">

**Author:** [@vvvr](https://discourse.processing.org/u/vvvr)\
**Replies:** 3\
**Last updated:** [June 22, 2020, 10:48pm UTC](https://discourse.processing.org/t/saving-specific-frames-into-one-pdf-using-framecount-and-array/22060 "2020-06-22T22:48:01Z")

</div>

Hi, I am new to Processing and using the examples in the PDF library I am trying to write a code for one of my artworks. I need to save into one PDF a particular selection of frames. I have adapted the code for the exam…

---

## [PShape.rotateZ() bug?](https://discourse.processing.org/t/pshape-rotatez-bug/17509)

<div class="topic-metadata">

**Author:** [@Tim\_Mortimer](https://discourse.processing.org/u/Tim_Mortimer)\
**Replies:** 7\
**Last updated:** [June 22, 2020, 8:14pm UTC](https://discourse.processing.org/t/pshape-rotatez-bug/17509 "2020-06-22T20:14:54Z")

</div>

Hi. New to Processing & this forum. Been playing with the former about a week or so, really loving it. Loving the video tutorials & OpenProcessing site: between these 2 resources & the Coding Train channel on Youtube,…

---

## [How to use mouseClicked to only effect one object in ArrayList?](https://discourse.processing.org/t/how-to-use-mouseclicked-to-only-effect-one-object-in-arraylist/22067)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 2\
**Last updated:** [June 22, 2020, 4:13pm UTC](https://discourse.processing.org/t/how-to-use-mouseclicked-to-only-effect-one-object-in-arraylist/22067 "2020-06-22T16:13:20Z")

</div>

Hi all, I am trying to make a simple game involving legos. The premise is the user presses ‘d’ to add legos and can click on them to move them around. On hovering over a lego, it changes color, and on click, the lego fo…

---

## [Creating Joint upon Collision in Box2D](https://discourse.processing.org/t/creating-joint-upon-collision-in-box2d/21453)

<div class="topic-metadata">

**Author:** [@weijie](https://discourse.processing.org/u/weijie)\
**Replies:** 1\
**Last updated:** [May 31, 2020, 2:01pm UTC](https://discourse.processing.org/t/creating-joint-upon-collision-in-box2d/21453 "2020-05-31T14:01:30Z")

</div>

Hi everyone, Can I create a joint between 2 objects upon a collision in Box2D? Thanks!

---

## [Exporting high quality video](https://discourse.processing.org/t/exporting-high-quality-video/22056)

<div class="topic-metadata">

**Author:** [@TairGalili](https://discourse.processing.org/u/TairGalili)\
**Replies:** 1\
**Last updated:** [June 22, 2020, 12:12pm UTC](https://discourse.processing.org/t/exporting-high-quality-video/22056 "2020-06-22T12:12:59Z")

</div>

I am using processing right now and I would like to export my sketch as a video. I have used the SaveFrame() method, along with the movie Maker from processing. However, it seems like the quality of the video is low. Is …

---

## [How to add texture (with an image) to a line?](https://discourse.processing.org/t/how-to-add-texture-with-an-image-to-a-line/22048)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 1\
**Last updated:** [June 22, 2020, 1:01am UTC](https://discourse.processing.org/t/how-to-add-texture-with-an-image-to-a-line/22048 "2020-06-22T01:01:45Z")

</div>

So i have this code (its a function that creates a line in a line object): void dibujarLinea() //draw color line { pushMatrix(); pushStyle(); strokeCap(PROJECT); strokeWeight( grosor ); translate( x …

---

## [Collision of two rectangles](https://discourse.processing.org/t/collision-of-two-rectangles/22010)

<div class="topic-metadata">

**Author:** [@jeyeffkay](https://discourse.processing.org/u/jeyeffkay)\
**Replies:** 5\
**Last updated:** [June 21, 2020, 6:58pm UTC](https://discourse.processing.org/t/collision-of-two-rectangles/22010 "2020-06-21T18:58:21Z")

</div>

Hey guys, I am corrently working on a flappy bird like game and I want to now how it is possible to detect a collusion. Currently the bird is just a rectangle. So I want to know how I in general can check if the rectang…

---

## [Why is contour not working here](https://discourse.processing.org/t/why-is-contour-not-working-here/22038)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 1\
**Last updated:** [June 21, 2020, 6:09pm UTC](https://discourse.processing.org/t/why-is-contour-not-working-here/22038 "2020-06-21T18:09:50Z")

</div>

why is contour not working here? I would expect to see a cutout. size(100, 100); background(0); stroke(255); strokeWeight(2); line(33, 0, 85, 100); noStroke(); fill(102); beginShape(); vertex(10, 10); vertex(10, 100); v…

---

## [Incrementing inside a nested loop](https://discourse.processing.org/t/incrementing-inside-a-nested-loop/22034)

<div class="topic-metadata">

**Author:** [@pessotta](https://discourse.processing.org/u/pessotta)\
**Replies:** 3\
**Last updated:** [June 21, 2020, 1:02pm UTC](https://discourse.processing.org/t/incrementing-inside-a-nested-loop/22034 "2020-06-21T13:02:09Z")

</div>

Hello, I am trying to draw an array of rectangles in an incremented manner. I want them to increase as I click the mouse. Beginning with 2 they will increase horizontally, them move to the row below. I understand that t…

---

## [Load and Update pixels inside a function](https://discourse.processing.org/t/load-and-update-pixels-inside-a-function/21872)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 3\
**Last updated:** [June 21, 2020, 4:48am UTC](https://discourse.processing.org/t/load-and-update-pixels-inside-a-function/21872 "2020-06-21T04:48:05Z")

</div>

Inside the function line() there is an Load and Update pixels rigth? Is possible to use those functions (rect, line, point etc) but loading the pixels at the start of the draw function and updating at the end? I need t…

---

## [I want to know the trig maths for calculating the collision normal after collision](https://discourse.processing.org/t/i-want-to-know-the-trig-maths-for-calculating-the-collision-normal-after-collision/22017)

<div class="topic-metadata">

**Author:** [@Why\_I\_Use\_Processing](https://discourse.processing.org/u/Why_I_Use_Processing)\
**Replies:** 3\
**Last updated:** [June 20, 2020, 6:42pm UTC](https://discourse.processing.org/t/i-want-to-know-the-trig-maths-for-calculating-the-collision-normal-after-collision/22017 "2020-06-20T18:42:24Z")

</div>

I want that car shown below in the image to bounce off the tribune after collision. I already made the collision detections work, I just want to apply some physics after collision(collision normal, velocity component, e…

---

## [Making a shape move](https://discourse.processing.org/t/making-a-shape-move/22026)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 1\
**Last updated:** [June 20, 2020, 2:58pm UTC](https://discourse.processing.org/t/making-a-shape-move/22026 "2020-06-20T14:58:50Z")

</div>

I wonder why my plane is not moving. Lockdown for planes is over isn’t it? :wink: //noStroke(); //50 float planeX; float planeY; void setup() { size(1000,700); planeX = width/32; planeY = height/18; } v…

---

## [Mesh Library for Processing 3](https://discourse.processing.org/t/mesh-library-for-processing-3/21047)

<div class="topic-metadata">

**Author:** [@artpen](https://discourse.processing.org/u/artpen)\
**Replies:** 15\
**Last updated:** [June 20, 2020, 8:41am UTC](https://discourse.processing.org/t/mesh-library-for-processing-3/21047 "2020-06-20T08:41:54Z")

</div>

Hi Guys, I am new to Processing. I think :slight\_smile: Haven’t used it for a while. What is the good and fast mesh manipulation library nowadays? Which is steel in active development. I remember ToxicLib was amazing, …

---

## [Help with physarum simulation](https://discourse.processing.org/t/help-with-physarum-simulation/21276)

<div class="topic-metadata">

**Author:** [@musiciantriescoding](https://discourse.processing.org/u/musiciantriescoding)\
**Replies:** 6\
**Last updated:** [June 19, 2020, 7:55pm UTC](https://discourse.processing.org/t/help-with-physarum-simulation/21276 "2020-06-19T19:55:36Z")

</div>

Hello everyone! Recently, physarum simulations have become quite popular. Check out Sage Jenson’s simulations for some beautiful visuals (https://sagejenson.com/physarum). I tried to simulate physarum as well using the …

---

## [How do i make the movement function for the player count only once so that they can be executed one by one only once?](https://discourse.processing.org/t/how-do-i-make-the-movement-function-for-the-player-count-only-once-so-that-they-can-be-executed-one-by-one-only-once/21944)

<div class="topic-metadata">

**Author:** [@sokuv](https://discourse.processing.org/u/sokuv)\
**Replies:** 4\
**Last updated:** [June 18, 2020, 3:51pm UTC](https://discourse.processing.org/t/how-do-i-make-the-movement-function-for-the-player-count-only-once-so-that-they-can-be-executed-one-by-one-only-once/21944 "2020-06-18T15:51:25Z")

</div>

I have a game currently which has a player and some obstacles, I want to navigate this player with some commands, but the problem is that the command get executed but the rectangle does not get updated so I have to do so…

---

## [Random question about mnist datasets. Why does it come in ubyte ext rather than a traditional image ext?](https://discourse.processing.org/t/random-question-about-mnist-datasets-why-does-it-come-in-ubyte-ext-rather-than-a-traditional-image-ext/21994)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [June 19, 2020, 3:32pm UTC](https://discourse.processing.org/t/random-question-about-mnist-datasets-why-does-it-come-in-ubyte-ext-rather-than-a-traditional-image-ext/21994 "2020-06-19T15:32:31Z")

</div>

Apologies this is not necessarily related to processing, I just couldn’t find an answer online.

---

## [Processing Foundation's Video Library & Video Capture on Linux](https://discourse.processing.org/t/processing-foundations-video-library-video-capture-on-linux/21983)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 2\
**Last updated:** [June 19, 2020, 11:07am UTC](https://discourse.processing.org/t/processing-foundations-video-library-video-capture-on-linux/21983 "2020-06-19T11:07:56Z")

</div>

I was showing some students the wonderful AsciiVideo example that comes with the Processing IDE and it didn’t work on Linux. I remember having this problem a few years ago and reading about a GStreamer 1.0 so I found th…

---

## [Processing vs Rhino coordinates](https://discourse.processing.org/t/processing-vs-rhino-coordinates/21572)

<div class="topic-metadata">

**Author:** [@evilome](https://discourse.processing.org/u/evilome)\
**Replies:** 8\
**Last updated:** [June 19, 2020, 12:20pm UTC](https://discourse.processing.org/t/processing-vs-rhino-coordinates/21572 "2020-06-19T12:20:07Z")

</div>

Hello everyone, Understanding very little programming and facing a related problem and I need help for those who are available: I am working on the 3D animal head construction project from stainless wire using Rhino 6 +…

---

## [Switch case with two key pressed? Is it possible?](https://discourse.processing.org/t/switch-case-with-two-key-pressed-is-it-possible/21869)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [June 19, 2020, 11:09am UTC](https://discourse.processing.org/t/switch-case-with-two-key-pressed-is-it-possible/21869 "2020-06-19T11:09:26Z")

</div>

Hello. I would like to switch case with a combination of two letter or letter, one of each. I did like that, but it doesn’t work void keyPressed() { if (key=='5' && key=='T'){ println ("T55555TTTT5555"); …

---

## [Video Capture in linux with ARM processor](https://discourse.processing.org/t/video-capture-in-linux-with-arm-processor/13970)

<div class="topic-metadata">

**Author:** [@tcreed](https://discourse.processing.org/u/tcreed)\
**Replies:** 1\
**Last updated:** [June 18, 2020, 10:16pm UTC](https://discourse.processing.org/t/video-capture-in-linux-with-arm-processor/13970 "2020-06-18T22:16:44Z")

</div>

I have been using processing on Mac for some time with good success but am now trying to run a sketch on a Linux based depth camera, a Persee from Orbbec. I have Ubuntu Linux 14 installed on the camera which uses an ARM…

---

## [Mario game help!](https://discourse.processing.org/t/mario-game-help/21979)

<div class="topic-metadata">

**Author:** [@jasmine](https://discourse.processing.org/u/jasmine)\
**Replies:** 9\
**Last updated:** [June 18, 2020, 7:02pm UTC](https://discourse.processing.org/t/mario-game-help/21979 "2020-06-18T19:02:13Z")

</div>

How can I add enemies that the player needs to avoid int gameMode=0;//0 - menu, 1 - play game, 2 - instructions, 3 - character selection int selChar=1;//default character is “character 1” int level=1; color red=color(25…

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

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