# Latest

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

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

**Page:** 323

---

## [I need Help with seekbar](https://discourse.processing.org/t/i-need-help-with-seekbar/22610)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:17pm UTC](https://discourse.processing.org/t/i-need-help-with-seekbar/22610 "2020-07-19T23:17:00Z")

</div>

Hello, I have a question. I wanted to know if I could make another window in the pop-up menu ("⋮") and because the text size can be set with a seekbar (slider) can someone help me? Like this (https://github.com/Emmanue…

---

## [Diagonal line - gap](https://discourse.processing.org/t/diagonal-line-gap/22724)

<div class="topic-metadata">

**Author:** [@Niprro](https://discourse.processing.org/u/Niprro)\
**Replies:** 4\
**Last updated:** [July 19, 2020, 3:24pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724 "2020-07-19T15:24:05Z")

</div>

Trying to make a diagonal line from 0,0 to 600,600 Please help me understand why is there a gap at the end of my line. Why is the line ending before the last bottom right point on the canvas ? void setup () { size (6…

---

## [3D room map by TFmini Lidar](https://discourse.processing.org/t/3d-room-map-by-tfmini-lidar/22709)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 6\
**Last updated:** [July 19, 2020, 2:26pm UTC](https://discourse.processing.org/t/3d-room-map-by-tfmini-lidar/22709 "2020-07-19T14:26:11Z")

</div>

Hi, I’m a beginner so I hope this time I worte as should. I’m trying to simulate room with TFmini lidar by using arduino Mega with serial port communication. The simulation is not good at all. I need help. My Arduino…

---

## [TFmini lidar simulation](https://discourse.processing.org/t/tfmini-lidar-simulation/22608)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:45am UTC](https://discourse.processing.org/t/tfmini-lidar-simulation/22608 "2020-07-19T11:45:50Z")

</div>

Hi, I’m a begginer and I’m tring to create a room simulation with my TFmini Lidar, the device works with serial communication. I diffeculties with my code, I’m trying to read from arduino and plot 3D as is. \</\> import…

---

## [3D simulation by TFmini lidar](https://discourse.processing.org/t/3d-simulation-by-tfmini-lidar/22708)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:38am UTC](https://discourse.processing.org/t/3d-simulation-by-tfmini-lidar/22708 "2020-07-19T11:38:52Z")

</div>

Hi, I’m a beginner , I’m trying to simulate 3D room map by TFmini LIDAR. I connected the sensor to arduino mega 2560 to communication pins. Moreover, I control 2 servo’s inorder to scan the room. This is my arduino cod…

---

## [Each argument is accessed by a MIDI controller. Camera eyeX,Y,Z control](https://discourse.processing.org/t/each-argument-is-accessed-by-a-midi-controller-camera-eyex-y-z-control/22716)

<div class="topic-metadata">

**Author:** [@sq20](https://discourse.processing.org/u/sq20)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 9:48am UTC](https://discourse.processing.org/t/each-argument-is-accessed-by-a-midi-controller-camera-eyex-y-z-control/22716 "2020-07-19T09:48:39Z")

</div>

I’m trying to control the camera view using a MIDI controller. For each knob, we want to control it by attaching it to X, Y, and Z. But when I do X,Y,Z control in my code, when I touch the X knob, other knobs such as Y…

---

## [Calling WebGL functions from p5.js](https://discourse.processing.org/t/calling-webgl-functions-from-p5-js/22714)

<div class="topic-metadata">

**Author:** [@CND](https://discourse.processing.org/u/CND)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 4:04am UTC](https://discourse.processing.org/t/calling-webgl-functions-from-p5-js/22714 "2020-07-19T04:04:39Z")

</div>

---

## [Webcam is not working on my mac pro](https://discourse.processing.org/t/webcam-is-not-working-on-my-mac-pro/22705)

<div class="topic-metadata">

**Author:** [@yejincolor](https://discourse.processing.org/u/yejincolor)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 12:52am UTC](https://discourse.processing.org/t/webcam-is-not-working-on-my-mac-pro/22705 "2020-07-19T00:52:53Z")

</div>

In p5js editor, I wanted to test the example called “capture” to turn on my webcam on my mac pro. The code must be correct since I used the example that already existed, but the camera is not turning on and I do not know…

---

## [Is it possible to draw main graphics on a PGraphics?](https://discourse.processing.org/t/is-it-possible-to-draw-main-graphics-on-a-pgraphics/10055)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 13\
**Last updated:** [July 18, 2020, 8:55pm UTC](https://discourse.processing.org/t/is-it-possible-to-draw-main-graphics-on-a-pgraphics/10055 "2020-07-18T20:55:46Z")

</div>

Is it possible to draw g on a PGraphics? It should be done in P3D and it should be done without using loadPixels(); So something like this: PGraphics pg; void setup() { size(512, 512, P3D); pg = createGraphi…

---

## [Is Processing 4 more performant than Processing 3.x in graphics?](https://discourse.processing.org/t/is-processing-4-more-performant-than-processing-3-x-in-graphics/21307)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 2\
**Last updated:** [July 18, 2020, 8:48pm UTC](https://discourse.processing.org/t/is-processing-4-more-performant-than-processing-3-x-in-graphics/21307 "2020-07-18T20:48:08Z")

</div>

Hi comunity! I have a question… Is processing 4 significatively more performant than processign 3.x in P2D and P3D render modes?

---

## [Desperate for Help, due in 2 days! Beginner & Confused, Rotating STRING text](https://discourse.processing.org/t/desperate-for-help-due-in-2-days-beginner-confused-rotating-string-text/22692)

<div class="topic-metadata">

**Author:** [@Sugar](https://discourse.processing.org/u/Sugar)\
**Replies:** 7\
**Last updated:** [July 18, 2020, 7:56pm UTC](https://discourse.processing.org/t/desperate-for-help-due-in-2-days-beginner-confused-rotating-string-text/22692 "2020-07-18T19:56:28Z")

</div>

Hi there, I am an Intern to an artist, and I have 0 experience coding, and frankly, I’m hating every second of it. But I have been tasked for Monday (July 20th 2020) to create a code for the show where the words “Press”…

---

## [Quaternions and Euler Rotations Exploration](https://discourse.processing.org/t/quaternions-and-euler-rotations-exploration/11262)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 1\
**Last updated:** [July 17, 2020, 5:55am UTC](https://discourse.processing.org/t/quaternions-and-euler-rotations-exploration/11262 "2020-07-17T05:55:30Z")

</div>

Hello, I did an exploration of rotations with quaternions and Euler angles and sharing the “bare bones” code I wrote. The original project (a year ago) got out of hand and I really need to clean up the code and referen…

---

## [Hour of code using type-in programs](https://discourse.processing.org/t/hour-of-code-using-type-in-programs/22700)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [July 18, 2020, 1:22am UTC](https://discourse.processing.org/t/hour-of-code-using-type-in-programs/22700 "2020-07-18T01:22:12Z")

</div>

In this post I’m challenging the common misconception that only block-based languages are appropriate for young coders… and I will present a new method heavily influenced by the golden age of home computers. This method …

---

## [Calling updatePixels() from a separate thread doesn't update the main window](https://discourse.processing.org/t/calling-updatepixels-from-a-separate-thread-doesnt-update-the-main-window/22696)

<div class="topic-metadata">

**Author:** [@Underslash](https://discourse.processing.org/u/Underslash)\
**Replies:** 2\
**Last updated:** [July 18, 2020, 1:10am UTC](https://discourse.processing.org/t/calling-updatepixels-from-a-separate-thread-doesnt-update-the-main-window/22696 "2020-07-18T01:10:37Z")

</div>

Exactly what the title says, when I run updatePixels() from a function thats running in a thread, it doesn’t update the pixels, but calling updatePixels() from the function which I ran the thread from updates it. Example…

---

## [Which Processing API?](https://discourse.processing.org/t/which-processing-api/22698)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [July 18, 2020, 12:59am UTC](https://discourse.processing.org/t/which-processing-api/22698 "2020-07-18T00:59:32Z")

</div>

Dear teachers, I assume you’re all using processing API in your classroom / coding club. I’d like to ask you: which processing library or environment are you using? Are you using bare bone p5.js sketches, processing Ja…

---

## [Same program - Two Implementations ❤](https://discourse.processing.org/t/same-program-two-implementations/22697)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [July 18, 2020, 12:54am UTC](https://discourse.processing.org/t/same-program-two-implementations/22697 "2020-07-18T00:54:23Z")

</div>

Hello friends, This article documents an experiment that I made to implement the same program on two different coding platforms for beginners: codeguppy.com Khan Academy What eased the porting between the platform is…

---

## [Could not run the sketch (Target VM failed to initialize). Kinect V2](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize-kinect-v2/22687)

<div class="topic-metadata">

**Author:** [@HugoD](https://discourse.processing.org/u/HugoD)\
**Replies:** 0\
**Last updated:** [July 17, 2020, 2:20pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize-kinect-v2/22687 "2020-07-17T14:20:30Z")

</div>

Hi, I’m getting this error when I run the examples from the OpenCV\_Processing library with a kinect V2. “Could not run the sketch (Target VM failed to initialize).” I’m using Windows 10 Pro 64-bit Intel® Core™ i7-975…

---

## [Draggable Images Triggering and Processing Sound](https://discourse.processing.org/t/draggable-images-triggering-and-processing-sound/22667)

<div class="topic-metadata">

**Author:** [@briangriffith](https://discourse.processing.org/u/briangriffith)\
**Replies:** 5\
**Last updated:** [July 17, 2020, 8:30pm UTC](https://discourse.processing.org/t/draggable-images-triggering-and-processing-sound/22667 "2020-07-17T20:30:52Z")

</div>

I am trying to figure out a way to do a fairly simple idea: I have two PNGs which are draggable across the canvas and I want each of them to trigger a loop. Beyond that, I want the position of the image to dictate the pa…

---

## [Pyramid Rect Pattern](https://discourse.processing.org/t/pyramid-rect-pattern/22689)

<div class="topic-metadata">

**Author:** [@chemicalite](https://discourse.processing.org/u/chemicalite)\
**Replies:** 7\
**Last updated:** [July 17, 2020, 8:15pm UTC](https://discourse.processing.org/t/pyramid-rect-pattern/22689 "2020-07-17T20:15:22Z")

</div>

Hello! I’m making a pyramid pattern with rects using for loops. It’s a bit hard to explain, but basically, I would like to divide a square canvas into four triangular quadrants and fill each side with pyramids made from…

---

## [Download file from FTP server?](https://discourse.processing.org/t/download-file-from-ftp-server/22651)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [July 17, 2020, 5:03pm UTC](https://discourse.processing.org/t/download-file-from-ftp-server/22651 "2020-07-17T17:03:05Z")

</div>

I feel like I’m missing something simple here. I just want to download and then display an image file from a remote, public FTP server. When I try to do so I get “The file xxx is missing or inaccessible, make sure the U…

---

## [Tint image with alpha transparency in WEBGL](https://discourse.processing.org/t/tint-image-with-alpha-transparency-in-webgl/22002)

<div class="topic-metadata">

**Author:** [@dfd0226](https://discourse.processing.org/u/dfd0226)\
**Replies:** 2\
**Last updated:** [July 17, 2020, 4:52pm UTC](https://discourse.processing.org/t/tint-image-with-alpha-transparency-in-webgl/22002 "2020-07-17T16:52:43Z")

</div>

Hi all! Background I’m trying to figure out how to set the alpha channel on an image using tint when the sketch is in WEBGL mode. I’m building a React app that integrates p5.js. My code uses a physics library to create…

---

## [Object Property Implementation](https://discourse.processing.org/t/object-property-implementation/22628)

<div class="topic-metadata">

**Author:** [@VegasBob](https://discourse.processing.org/u/VegasBob)\
**Replies:** 18\
**Last updated:** [July 17, 2020, 3:43pm UTC](https://discourse.processing.org/t/object-property-implementation/22628 "2020-07-17T15:43:51Z")

</div>

Just getting started with Java using the Processing IDE, and I can’t seem to find a way to properly code my Classes to produce properties that will behave like genuine properties - meaning that I can use: Employee.Name …

---

## [Imported SVG is PShape GROUP, cannot convert to ArrayList of PVector](https://discourse.processing.org/t/imported-svg-is-pshape-group-cannot-convert-to-arraylist-of-pvector/22642)

<div class="topic-metadata">

**Author:** [@loremipsum](https://discourse.processing.org/u/loremipsum)\
**Replies:** 2\
**Last updated:** [July 17, 2020, 2:06pm UTC](https://discourse.processing.org/t/imported-svg-is-pshape-group-cannot-convert-to-arraylist-of-pvector/22642 "2020-07-17T14:06:38Z")

</div>

I’ve been trying to read in a .svg i made in Illustrator. It imports/displays properly as a PShape, but I’m hoping to convert the shape into an ArrayList of PVectors so I can manipulate the shape. Here’s what I’ve done: …

---

## [Used p5py to show how a laser works](https://discourse.processing.org/t/used-p5py-to-show-how-a-laser-works/22497)

<div class="topic-metadata">

**Author:** [@renec112](https://discourse.processing.org/u/renec112)\
**Replies:** 8\
**Last updated:** [July 17, 2020, 7:28am UTC](https://discourse.processing.org/t/used-p5py-to-show-how-a-laser-works/22497 "2020-07-17T07:28:01Z")

</div>

I used the p5py package to explain and simulate how a laser obtains population inversion. Article is here on medium.

---

## [Did macOS Catalina (or something) break the Video library?](https://discourse.processing.org/t/did-macos-catalina-or-something-break-the-video-library/14699)

<div class="topic-metadata">

**Author:** [@E\_R](https://discourse.processing.org/u/E_R)\
**Replies:** 23\
**Last updated:** [July 17, 2020, 4:02am UTC](https://discourse.processing.org/t/did-macos-catalina-or-something-break-the-video-library/14699 "2020-07-17T04:02:33Z")

</div>

Hi, I am currently unable to run any code using processing.video's Capture object- including the basic Example sketches. It seems that instantiating the Capture object is where the crash occurs, and it happens regardle…

---

## [Designing the input](https://discourse.processing.org/t/designing-the-input/22451)

<div class="topic-metadata">

**Author:** [@ARNAV\_A\_GUPTA](https://discourse.processing.org/u/ARNAV_A_GUPTA)\
**Replies:** 6\
**Last updated:** [July 17, 2020, 12:00am UTC](https://discourse.processing.org/t/designing-the-input/22451 "2020-07-17T00:00:56Z")

</div>

i want to create an input whose width and increases with respect to how much you’ve written and to create another line… Can I do something like this??? I know I can do it for length… just by checking the input.value() …

---

## [Cull or Remove polygon backfaces with OpenGL](https://discourse.processing.org/t/cull-or-remove-polygon-backfaces-with-opengl/22673)

<div class="topic-metadata">

**Author:** [@CND](https://discourse.processing.org/u/CND)\
**Replies:** 0\
**Last updated:** [July 16, 2020, 10:00pm UTC](https://discourse.processing.org/t/cull-or-remove-polygon-backfaces-with-opengl/22673 "2020-07-16T22:00:29Z")

</div>

OpenGL has a command to cull backfaces “glCullFace”. I would like to know how to execute this. I want to view semi-wireframe images only showing framed front faces. This is a larger question on how to execute other Ope…

---

## [Lerp() not working as expected in animation between array position values](https://discourse.processing.org/t/lerp-not-working-as-expected-in-animation-between-array-position-values/22670)

<div class="topic-metadata">

**Author:** [@fpalla](https://discourse.processing.org/u/fpalla)\
**Replies:** 5\
**Last updated:** [July 16, 2020, 9:43pm UTC](https://discourse.processing.org/t/lerp-not-working-as-expected-in-animation-between-array-position-values/22670 "2020-07-16T21:43:47Z")

</div>

Hello forum/guys/people who understand js better than me, feels like kind of a noob question but I don’t think my knowledge at this point is sufficeint to figure out on my own. Either this or I’m blind to something. Rea…

---

## [Change background in order/ using values in array](https://discourse.processing.org/t/change-background-in-order-using-values-in-array/22665)

<div class="topic-metadata">

**Author:** [@anderbaer](https://discourse.processing.org/u/anderbaer)\
**Replies:** 5\
**Last updated:** [July 16, 2020, 8:29pm UTC](https://discourse.processing.org/t/change-background-in-order-using-values-in-array/22665 "2020-07-16T20:29:35Z")

</div>

int i = 0; int\[\] array = {250, 150, 100, 50, 0}; void setup() { size(500, 500); } void draw() { for (int i = 0; i \< array.length; i++) { if (array\[i\] == 0) { println(array); background(array\[i…

---

## [P5.js bug report (semicolons)](https://discourse.processing.org/t/p5-js-bug-report-semicolons/22542)

<div class="topic-metadata">

**Author:** [@DavidMatuszek](https://discourse.processing.org/u/DavidMatuszek)\
**Replies:** 5\
**Last updated:** [July 16, 2020, 7:48pm UTC](https://discourse.processing.org/t/p5-js-bug-report-semicolons/22542 "2020-07-16T19:48:04Z")

</div>

JavaScript does not require semicolons at the end of lines. For the most part, p5.js does not require semicolons at the end of lines. Nevertheless, it appears that lines not ending in semicolons are being counted as err…

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

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