# Latest

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

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

**Page:** 56

---

## [Key and coded key shift combo (cmd + something)](https://discourse.processing.org/t/key-and-coded-key-shift-combo-cmd-something/43199)

<div class="topic-metadata">

**Author:** [@Leo\_Aguiar](https://discourse.processing.org/u/Leo_Aguiar)\
**Replies:** 14\
**Last updated:** [November 19, 2023, 8:02am UTC](https://discourse.processing.org/t/key-and-coded-key-shift-combo-cmd-something/43199 "2023-11-19T08:02:43Z")

</div>

Hi I am attempting to make a simple sketch that draws two different shapes depending on what keys a user presses. The first part of the code detects when the lowercase ‘o’ is pressed and draws a small ellipse. The second…

---

## [How to use extended code completion?](https://discourse.processing.org/t/how-to-use-extended-code-completion/43245)

<div class="topic-metadata">

**Author:** [@laya](https://discourse.processing.org/u/laya)\
**Replies:** 2\
**Last updated:** [November 18, 2023, 9:53am UTC](https://discourse.processing.org/t/how-to-use-extended-code-completion/43245 "2023-11-18T09:53:42Z")

</div>

I type “for” and then ctrl+space, but it does not autocompletes. Please help.

---

## [Issue with alpha in P2D Renderer](https://discourse.processing.org/t/issue-with-alpha-in-p2d-renderer/43137)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 6:56pm UTC](https://discourse.processing.org/t/issue-with-alpha-in-p2d-renderer/43137 "2023-11-17T18:56:46Z")

</div>

Hello Processing Community, I’ve encountered a challenging issue while working with the P2D renderer in Processing, specifically when trying to layer semi-transparent shapes over a white background. The expected result …

---

## [Trigonometric confusion over simple diagonals](https://discourse.processing.org/t/trigonometric-confusion-over-simple-diagonals/43233)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 5\
**Last updated:** [November 17, 2023, 6:25pm UTC](https://discourse.processing.org/t/trigonometric-confusion-over-simple-diagonals/43233 "2023-11-17T18:25:48Z")

</div>

Hello, I am coding a sketch to generate diagonals. The diagonals all start from the left side of the canvas from a random vertical position. Then the diagonal should be traced from a random angle. The range of possible …

---

## [Always fullScreen in presentation mode or executable](https://discourse.processing.org/t/always-fullscreen-in-presentation-mode-or-executable/43217)

<div class="topic-metadata">

**Author:** [@GSA\_IxD](https://discourse.processing.org/u/GSA_IxD)\
**Replies:** 9\
**Last updated:** [November 17, 2023, 4:27pm UTC](https://discourse.processing.org/t/always-fullscreen-in-presentation-mode-or-executable/43217 "2023-11-17T16:27:02Z")

</div>

I have a weird problem in latest (4.3) Processing in MacOS Big in that I want the sketch to run in a window but can’t make it not be fullscreen even though I uncheck this when I export. Never used to behave like this. Is…

---

## [Voxel Game Memory Problems](https://discourse.processing.org/t/voxel-game-memory-problems/43231)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 3:02pm UTC](https://discourse.processing.org/t/voxel-game-memory-problems/43231 "2023-11-17T15:02:48Z")

</div>

Hi! I recoded my voxel game, and now it gets 700 Fps with as many chunks as i want, the only problem is memory. 32 chunks that are meshed take up almost 2 gb (a chunk is 32x32x32) without the mesh data load it takes up a…

---

## [Weird P3D Error](https://discourse.processing.org/t/weird-p3d-error/43220)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 2\
**Last updated:** [November 17, 2023, 3:56pm UTC](https://discourse.processing.org/t/weird-p3d-error/43220 "2023-11-17T15:56:37Z")

</div>

Hello! My P3D game has the function voxel(x, y, z, img\_front, img\_back, img\_right, img\_left, img\_top, img\_bottom). If i use the same image as input (for all voxel calls in a chunk), the framerate is very stable at 60fps…

---

## [Broadcast to AWS](https://discourse.processing.org/t/broadcast-to-aws/43042)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 5\
**Last updated:** [November 17, 2023, 12:16am UTC](https://discourse.processing.org/t/broadcast-to-aws/43042 "2023-11-17T00:16:04Z")

</div>

Hello I need guidance for a new project that fell on my lap. I need to stream a float array from processing to AWS and then broadcast it to multiple mobile app clients. I’m clueless about this. Never been on this side…

---

## [There is lag when running on a smartphone](https://discourse.processing.org/t/there-is-lag-when-running-on-a-smartphone/43230)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [November 16, 2023, 11:25pm UTC](https://discourse.processing.org/t/there-is-lag-when-running-on-a-smartphone/43230 "2023-11-16T23:25:37Z")

</div>

There is lag when running on a smartphone. hello. Nice to meet you. I created a WEB with ‘p5’. When accessing through the smartphone’s ‘Internet’ or ‘Chrome’ URL When entering ‘Webpage’ through ‘App’ on smartphone Wh…

---

## [P5 'mousePressed()' function error](https://discourse.processing.org/t/p5-mousepressed-function-error/43221)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 3\
**Last updated:** [November 16, 2023, 5:55pm UTC](https://discourse.processing.org/t/p5-mousepressed-function-error/43221 "2023-11-16T17:55:40Z")

</div>

p5 ‘mousePressed()’ function error hello. Nice to meet you. Please refer to the video. https://www.youtube.com/shorts/n2i0YRm-yJY WEB was implemented through ‘p5’. Image change was performed through ‘mousePressed()’…

---

## [Applying a texture to a .obj shape in P3D](https://discourse.processing.org/t/applying-a-texture-to-a-obj-shape-in-p3d/43225)

<div class="topic-metadata">

**Author:** [@Sayoregg](https://discourse.processing.org/u/Sayoregg)\
**Replies:** 5\
**Last updated:** [November 16, 2023, 5:06pm UTC](https://discourse.processing.org/t/applying-a-texture-to-a-obj-shape-in-p3d/43225 "2023-11-16T17:06:44Z")

</div>

Hello, I am trying to load in a model with a texture in processing. I managed to load in the shape itself, but even after applying a texture to it the model is just fully black. I followed the setTexture() example with…

---

## [How to make multiple enemies affect health](https://discourse.processing.org/t/how-to-make-multiple-enemies-affect-health/43209)

<div class="topic-metadata">

**Author:** [@3xotic109](https://discourse.processing.org/u/3xotic109)\
**Replies:** 4\
**Last updated:** [November 16, 2023, 5:32am UTC](https://discourse.processing.org/t/how-to-make-multiple-enemies-affect-health/43209 "2023-11-16T05:32:17Z")

</div>

//Declared Global Variables final static float MOVE\_SPEED = 7.5; final static float SPRITE\_SCALE = 50.0/64; final static float SPRITE\_SCALE1 = 50.0/1920; final static float SPRITE\_SCALE2 =50.0/45; final static float SPRI…

---

## [Using javax.swing import JOptionPane issues](https://discourse.processing.org/t/using-javax-swing-import-joptionpane-issues/43215)

<div class="topic-metadata">

**Author:** [@dwu09](https://discourse.processing.org/u/dwu09)\
**Replies:** 6\
**Last updated:** [November 15, 2023, 4:33pm UTC](https://discourse.processing.org/t/using-javax-swing-import-joptionpane-issues/43215 "2023-11-15T16:33:19Z")

</div>

Hi, trying to use the JOptionpane in Processing and get following message: java.lang.reflect.InaccessibleObjectException: Unable to make public abstract javax.swing.TransferHandler javax.swing.TransferHandler$HasGetTra…

---

## [Need help understanding why array in console.log is not displayed as expected](https://discourse.processing.org/t/need-help-understanding-why-array-in-console-log-is-not-displayed-as-expected/43213)

<div class="topic-metadata">

**Author:** [@jjjochennn](https://discourse.processing.org/u/jjjochennn)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 9:53am UTC](https://discourse.processing.org/t/need-help-understanding-why-array-in-console-log-is-not-displayed-as-expected/43213 "2023-11-15T09:53:50Z")

</div>

Hello! the console.log in my p5 script is not showing what I expect and I do not understand, why. Basically I want to create a random square matrix of zeroes and ones, but in the (rare) case the function returns only z…

---

## [Ways to Erase Part of a Line? (Preserve background)](https://discourse.processing.org/t/ways-to-erase-part-of-a-line-preserve-background/43207)

<div class="topic-metadata">

**Author:** [@cottonchipper](https://discourse.processing.org/u/cottonchipper)\
**Replies:** 5\
**Last updated:** [November 15, 2023, 1:44am UTC](https://discourse.processing.org/t/ways-to-erase-part-of-a-line-preserve-background/43207 "2023-11-15T01:44:59Z")

</div>

In Setup I’ve got a gradient being applied to the entire canvas. In Draw, I’m drawing some lines using a wide strokeWeight. I’d like to be able to erase part of the line and have the gradient below show through. Is ther…

---

## [Update Processing 3.5.4 to 4.3 window size](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197)

<div class="topic-metadata">

**Author:** [@meirbns](https://discourse.processing.org/u/meirbns)\
**Replies:** 9\
**Last updated:** [November 14, 2023, 7:54pm UTC](https://discourse.processing.org/t/update-processing-3-5-4-to-4-3-window-size/43197 "2023-11-14T19:54:36Z")

</div>

---

## [How to draw a line in p5 v1.0 webgl (bezier)](https://discourse.processing.org/t/how-to-draw-a-line-in-p5-v1-0-webgl-bezier/43195)

<div class="topic-metadata">

**Author:** [@chaseLoop](https://discourse.processing.org/u/chaseLoop)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 3:50pm UTC](https://discourse.processing.org/t/how-to-draw-a-line-in-p5-v1-0-webgl-bezier/43195 "2023-11-14T15:50:28Z")

</div>

I’m stuck with P5 v1.0’s webgl mode where each line turns out to be a plane. How to remove the white fill for the lines? I tried noFill() which doesn’t work. Also tried filling with a color at full transparency. That wor…

---

## [How to animate properly arcs according to time with millis()? (draw letters animation)](https://discourse.processing.org/t/how-to-animate-properly-arcs-according-to-time-with-millis-draw-letters-animation/42986)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 38\
**Last updated:** [November 14, 2023, 1:57pm UTC](https://discourse.processing.org/t/how-to-animate-properly-arcs-according-to-time-with-millis-draw-letters-animation/42986 "2023-11-14T13:57:39Z")

</div>

Hello, Here is my attempt to animate arcs with millis(). It is not smooth, it jumps… Not what it should be! Thanks a lot in advance. Best, L float startTime; void setup() { size(400, 400); startTime=millis(); }…

---

## [IDE Console Window Single Line Select](https://discourse.processing.org/t/ide-console-window-single-line-select/43200)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 7\
**Last updated:** [November 13, 2023, 3:20pm UTC](https://discourse.processing.org/t/ide-console-window-single-line-select/43200 "2023-11-13T15:20:43Z")

</div>

I have just discovered that if you treble-click on the console window, it selects the current line (and then you can copy it with ^c). Other features: double click selects one word. F8 lets you use the up and down arr…

---

## [How to reduce an abstract 2D trajectory to segments between points in a given set?](https://discourse.processing.org/t/how-to-reduce-an-abstract-2d-trajectory-to-segments-between-points-in-a-given-set/43159)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 9\
**Last updated:** [November 13, 2023, 7:45am UTC](https://discourse.processing.org/t/how-to-reduce-an-abstract-2d-trajectory-to-segments-between-points-in-a-given-set/43159 "2023-11-13T07:45:00Z")

</div>

Hello, I am looking for the right tools/algorithms to code some movements/trajectories in 2D. The idea is to have abstract movements and translate them to sequences of line segments (polylines?) linking points selected …

---

## [How does P5 webgl vertex fill work](https://discourse.processing.org/t/how-does-p5-webgl-vertex-fill-work/43192)

<div class="topic-metadata">

**Author:** [@chaseLoop](https://discourse.processing.org/u/chaseLoop)\
**Replies:** 2\
**Last updated:** [November 12, 2023, 10:44am UTC](https://discourse.processing.org/t/how-does-p5-webgl-vertex-fill-work/43192 "2023-11-12T10:44:25Z")

</div>

Hi, I intend to fill some custom flat shape with different color for different vertex in p5js Webgl mode, but some vertex color doesn’t show up as intended. In this example below i’m expecting the upper right corner to b…

---

## [P2D Window can't be resized](https://discourse.processing.org/t/p2d-window-cant-be-resized/43194)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 0\
**Last updated:** [November 12, 2023, 12:20am UTC](https://discourse.processing.org/t/p2d-window-cant-be-resized/43194 "2023-11-12T00:20:12Z")

</div>

Hello! My P2D Window doesn’t seem to be resizable :frowning: It doesn’t show a cursor when hovering the window edges (im on windows) with no renderer it works! -Libby

---

## [Two problems in code (table sheet)](https://discourse.processing.org/t/two-problems-in-code-table-sheet/43181)

<div class="topic-metadata">

**Author:** [@kusspuss](https://discourse.processing.org/u/kusspuss)\
**Replies:** 14\
**Last updated:** [November 11, 2023, 7:08pm UTC](https://discourse.processing.org/t/two-problems-in-code-table-sheet/43181 "2023-11-11T19:08:39Z")

</div>

Table table; int numRows = 30; // Number of rows int numCols = 7; // Number of columns float cellWidth = 100; // Adjustable cell width float cellHeight = 27; // Adjustable cell height float tableWidth, tableHeight; // …

---

## [Ellipse Loop + Animation (raining color lines)](https://discourse.processing.org/t/ellipse-loop-animation-raining-color-lines/43174)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 29\
**Last updated:** [November 11, 2023, 1:03pm UTC](https://discourse.processing.org/t/ellipse-loop-animation-raining-color-lines/43174 "2023-11-11T13:03:41Z")

</div>

Hi there! I am trying to draw a lot of drops falling across the screen, from diferents heights. I can draw a loop with many drops and I can animate one drop, but I can not mix both :sweat\_smile: could you please help m…

---

## [Receive shared data or file from another app?](https://discourse.processing.org/t/receive-shared-data-or-file-from-another-app/43185)

<div class="topic-metadata">

**Author:** [@anon15123282](https://discourse.processing.org/u/anon15123282)\
**Replies:** 0\
**Last updated:** [November 11, 2023, 11:55am UTC](https://discourse.processing.org/t/receive-shared-data-or-file-from-another-app/43185 "2023-11-11T11:55:38Z")

</div>

Hey guys, anyone of you know how to configure or code a sketch with APDE to receive shared data or file(s) from another app? I know how to setup the intent in my sketch to open a file from my sketch itself via the file…

---

## [Cull faces in P3D](https://discourse.processing.org/t/cull-faces-in-p3d/43127)

<div class="topic-metadata">

**Author:** [@Noodlybanan](https://discourse.processing.org/u/Noodlybanan)\
**Replies:** 4\
**Last updated:** [November 10, 2023, 10:04pm UTC](https://discourse.processing.org/t/cull-faces-in-p3d/43127 "2023-11-10T22:04:02Z")

</div>

Hi! I was wondering if it is possible to set a face, to only be visible from one angle, as it would increase performance also known as culling faces. Thanks for all your advice :slight\_smile: Im programming a voxel engi…

---

## [Merida / Mexico](https://discourse.processing.org/t/merida-mexico/43182)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 0\
**Last updated:** [November 10, 2023, 7:25pm UTC](https://discourse.processing.org/t/merida-mexico/43182 "2023-11-10T19:25:24Z")

</div>

Someone in Merida / Mexico right now…? Or exhibition running?

---

## [Circles are the same color - Using Classes](https://discourse.processing.org/t/circles-are-the-same-color-using-classes/43122)

<div class="topic-metadata">

**Author:** [@DavevaD](https://discourse.processing.org/u/DavevaD)\
**Replies:** 5\
**Last updated:** [November 10, 2023, 1:07am UTC](https://discourse.processing.org/t/circles-are-the-same-color-using-classes/43122 "2023-11-10T01:07:04Z")

</div>

Hi All, My homework this week is about Classes. I can’t figure out how to get each of the three circles to be a different color. I am trying to make one red circle, one green circle, and one blue circle. They are all…

---

## [Canvas being redrawn at 200x200 px](https://discourse.processing.org/t/canvas-being-redrawn-at-200x200-px/43177)

<div class="topic-metadata">

**Author:** [@DavevaD](https://discourse.processing.org/u/DavevaD)\
**Replies:** 2\
**Last updated:** [November 9, 2023, 7:30pm UTC](https://discourse.processing.org/t/canvas-being-redrawn-at-200x200-px/43177 "2023-11-09T19:30:05Z")

</div>

Hi All, For some reason this sketch keeps displaying a canvas at 200x200px when I want it to be 500x500. The image is not scaled down, it just shows the top, left corner. When first building this sketch with just one …

---

## [Target an existing canvas in the DOM instead of creating a new one](https://discourse.processing.org/t/target-an-existing-canvas-in-the-dom-instead-of-creating-a-new-one/43179)

<div class="topic-metadata">

**Author:** [@mima](https://discourse.processing.org/u/mima)\
**Replies:** 1\
**Last updated:** [November 9, 2023, 6:19pm UTC](https://discourse.processing.org/t/target-an-existing-canvas-in-the-dom-instead-of-creating-a-new-one/43179 "2023-11-09T18:19:21Z")

</div>

I have an HTML page with a \<canvas\> node already in it. I’d like to connect a p5js sketch to it and draw in it. I’ve seen how to target instance container (examples | p5.js) but in these example a \<div\> tag is targeted…

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

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