# Latest

**URL:** https://discourse.processing.org/latest.md?page=331

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

**Page:** 332

---

## [Mouse inside custome shape](https://discourse.processing.org/t/mouse-inside-custome-shape/22110)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 6:05pm UTC](https://discourse.processing.org/t/mouse-inside-custome-shape/22110 "2020-06-23T18:05:03Z")

</div>

Hi, i’m trying to get into programming again and a stubbled upon a little problem. I was trying to create a hexagon but I can’t figure out a smart way to detect when my mouse is inside of the shape. Any good ideas? voi…

---

## [Accuracy of float numbers](https://discourse.processing.org/t/accuracy-of-float-numbers/22096)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 5:12pm UTC](https://discourse.processing.org/t/accuracy-of-float-numbers/22096 "2020-06-23T17:12:44Z")

</div>

The map function should produce a float (see code below). If one looks at the first 10 results, with i first and then i mapped between 85.0 and 170.0, we have: 85 85.0 86 87.0 87 89.0 88 91.0 89 93.0 90 95.0 91 97…

---

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

---

## [Smooth rendering of the line movement](https://discourse.processing.org/t/smooth-rendering-of-the-line-movement/22077)

<div class="topic-metadata">

**Author:** [@holyjc827](https://discourse.processing.org/u/holyjc827)\
**Replies:** 2\
**Last updated:** [June 23, 2020, 6:12am UTC](https://discourse.processing.org/t/smooth-rendering-of-the-line-movement/22077 "2020-06-23T06:12:24Z")

</div>

Hello, I have been trying to make each compass line rotate smoothly, as per noise function value. However, no matter what I try, it moves like a second hand of the clock, rather than a smooth movement of rotation. Could …

---

## [How do I createFont from .ttf files in apde?](https://discourse.processing.org/t/how-do-i-createfont-from-ttf-files-in-apde/22079)

<div class="topic-metadata">

**Author:** [@Why\_I\_Use\_Processing](https://discourse.processing.org/u/Why_I_Use_Processing)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 4:59am UTC](https://discourse.processing.org/t/how-do-i-createfont-from-ttf-files-in-apde/22079 "2020-06-23T04:59:43Z")

</div>

I know that there is a createFont option in processing’s pc version and that does the conversion of .ttf files to .vlw files. But while using apde I cant even use any external font files and only use the system built it…

---

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

---

## [Error with p5.js web editor](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047)

<div class="topic-metadata">

**Author:** [@Neonix](https://discourse.processing.org/u/Neonix)\
**Replies:** 4\
**Last updated:** [June 22, 2020, 2:22am UTC](https://discourse.processing.org/t/error-with-p5-js-web-editor/22047 "2020-06-22T02:22:28Z")

</div>

Hello everybody. I was just working on a sketch when, by accident, I pressed some keys in my keyboard (don’t know if this has to do with it but it happened immediately after so I think it does) and now every time I star…

---

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

---

## [\[INSTALL\_FAILED\_OLDER\_SDK\] Error while creating a watch face](https://discourse.processing.org/t/install-failed-older-sdk-error-while-creating-a-watch-face/22030)

<div class="topic-metadata">

**Author:** [@enginteymur](https://discourse.processing.org/u/enginteymur)\
**Replies:** 2\
**Last updated:** [June 21, 2020, 12:09pm UTC](https://discourse.processing.org/t/install-failed-older-sdk-error-while-creating-a-watch-face/22030 "2020-06-21T12:09:52Z")

</div>

Hello, I am a beginner at Processing and I try to create a watch face on Processing 3.5.4, it runs perfectly as an APK and it is a clock app. I try to use this app on my SmartWatch as a watch face. Processing provides 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…

---

## [How can I transfer REAL-TIME data between Android and PC?](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929)

<div class="topic-metadata">

**Author:** [@iamjustcurious](https://discourse.processing.org/u/iamjustcurious)\
**Replies:** 3\
**Last updated:** [June 20, 2020, 7:58pm UTC](https://discourse.processing.org/t/how-can-i-transfer-real-time-data-between-android-and-pc/21929 "2020-06-20T19:58:37Z")

</div>

Hi. So basically I want to transfer real-time data(string, int, boolean…) between Android sketch and PC(laptop) sketch. How can I do it?

---

## [Using mouse in p5 is a bit complicated](https://discourse.processing.org/t/using-mouse-in-p5-is-a-bit-complicated/21990)

<div class="topic-metadata">

**Author:** [@ARNAV\_A\_GUPTA](https://discourse.processing.org/u/ARNAV_A_GUPTA)\
**Replies:** 16\
**Last updated:** [June 20, 2020, 7:21pm UTC](https://discourse.processing.org/t/using-mouse-in-p5-is-a-bit-complicated/21990 "2020-06-20T19:21:49Z")

</div>

tell me of anything that I can use that is executed in only one frame when mouse is pressed within the if condition…

---

## [Can I load an image of a buffer and add it to a sprite](https://discourse.processing.org/t/can-i-load-an-image-of-a-buffer-and-add-it-to-a-sprite/22018)

<div class="topic-metadata">

**Author:** [@ARNAV\_A\_GUPTA](https://discourse.processing.org/u/ARNAV_A_GUPTA)\
**Replies:** 2\
**Last updated:** [June 20, 2020, 7:19pm UTC](https://discourse.processing.org/t/can-i-load-an-image-of-a-buffer-and-add-it-to-a-sprite/22018 "2020-06-20T19:19:56Z")

</div>

I don’t know how to do it, the simple way is not working, is there any way to so it?? I am getting error like pathOfIndex is not defined on my loadImage line. Plz help me fast…

---

## [There's a bug in the createGraphics() part](https://discourse.processing.org/t/theres-a-bug-in-the-creategraphics-part/22019)

<div class="topic-metadata">

**Author:** [@ARNAV\_A\_GUPTA](https://discourse.processing.org/u/ARNAV_A_GUPTA)\
**Replies:** 2\
**Last updated:** [June 20, 2020, 7:18pm UTC](https://discourse.processing.org/t/theres-a-bug-in-the-creategraphics-part/22019 "2020-06-20T19:18:19Z")

</div>

I think I’ve found a bug in the buffer part. If you change the background of canvas, the buffer images don’t work…

---

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

[Previous page](https://discourse.processing.org/latest.md?page=330)

[Next page](https://discourse.processing.org/latest.md?page=332)
