# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=475

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

**Page:** 476

---

## [Mouse relative to Translations and Scale](https://discourse.processing.org/t/mouse-relative-to-translations-and-scale/11976)

<div class="topic-metadata">

**Author:** [@oOoOoO](https://discourse.processing.org/u/oOoOoO)\
**Replies:** 2\
**Last updated:** [June 12, 2019, 6:29pm UTC](https://discourse.processing.org/t/mouse-relative-to-translations-and-scale/11976 "2019-06-12T18:29:57Z")

</div>

Hello. I am trying to access the mouse position through mouseX and mouseY within a keypressed function, but I have translations and scales in the draw function of my sketch, and I think this is causing me to get a mouse …

---

## [Geomerative: Smooth Font Rendering](https://discourse.processing.org/t/geomerative-smooth-font-rendering/11978)

<div class="topic-metadata">

**Author:** [@heyarne](https://discourse.processing.org/u/heyarne)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 5:40pm UTC](https://discourse.processing.org/t/geomerative-smooth-font-rendering/11978 "2019-06-12T17:40:50Z")

</div>

Hi! I started playing around with the Geomerative library and I like it a lot. I intended to play around with different fonts and noticed that when polygonizing the outlines, the resulting shape looks a bit jagged. Here’…

---

## [\[SOLVED\] .hide() not working for buttons](https://discourse.processing.org/t/solved-hide-not-working-for-buttons/11962)

<div class="topic-metadata">

**Author:** [@NadeW](https://discourse.processing.org/u/NadeW)\
**Replies:** 4\
**Last updated:** [June 12, 2019, 8:31am UTC](https://discourse.processing.org/t/solved-hide-not-working-for-buttons/11962 "2019-06-12T08:31:31Z")

</div>

Hello I just started using Processing. I intend to have this code such that when the buttons are pressed, they disappear. However when I click, the buttons remain on screen. How do I fix this? Pardon my unusual way of c…

---

## [URGENT! Need help for test tomorrow!](https://discourse.processing.org/t/urgent-need-help-for-test-tomorrow/12004)

<div class="topic-metadata">

**Author:** [@KZ0202](https://discourse.processing.org/u/KZ0202)\
**Replies:** 1\
**Last updated:** [June 12, 2019, 4:27am UTC](https://discourse.processing.org/t/urgent-need-help-for-test-tomorrow/12004 "2019-06-12T04:27:58Z")

</div>

I have a test tomorrow and I don’t know what is wrong with my code. I am supposed to make one ellipse and a rectangle with a circle following the mouse. The circle is on top of the ellipse but behind the rectangle. How d…

---

## [Trying to create wave / cloth flow pattern](https://discourse.processing.org/t/trying-to-create-wave-cloth-flow-pattern/11795)

<div class="topic-metadata">

**Author:** [@noob](https://discourse.processing.org/u/noob)\
**Replies:** 10\
**Last updated:** [June 12, 2019, 2:37am UTC](https://discourse.processing.org/t/trying-to-create-wave-cloth-flow-pattern/11795 "2019-06-12T02:37:46Z")

</div>

Hello good people! I found this picture in the internet few weeks ago: and I have been trying to replicate this in p5.js but haven’t found the solution yet. This is my code: var woll = \[\]; function setup() { cre…

---

## [How to visualise in 2D in processing 1.5 and apply color to points](https://discourse.processing.org/t/how-to-visualise-in-2d-in-processing-1-5-and-apply-color-to-points/11996)

<div class="topic-metadata">

**Author:** [@alice](https://discourse.processing.org/u/alice)\
**Replies:** 6\
**Last updated:** [June 11, 2019, 11:19pm UTC](https://discourse.processing.org/t/how-to-visualise-in-2d-in-processing-1-5-and-apply-color-to-points/11996 "2019-06-11T23:19:38Z")

</div>

Hi everybody, I’m a beginner in processing and I hope someone can help me with a small question… I’ll leave you below the code that I have done ( the name is “test1” and it has a tab with the points, I sent you both). …

---

## [Apple Pencil in P5.js](https://discourse.processing.org/t/apple-pencil-in-p5-js/9384)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 3\
**Last updated:** [June 11, 2019, 11:16pm UTC](https://discourse.processing.org/t/apple-pencil-in-p5-js/9384 "2019-06-11T23:16:32Z")

</div>

Hey everyone, I just made a basic drawing app in p5.js with support for the Apple Pencil. It uses Pressure.js to handle the pointer events so it should work with other input devices too. Let me know if you try it with …

---

## [How to apply color pixels](https://discourse.processing.org/t/how-to-apply-color-pixels/11941)

<div class="topic-metadata">

**Author:** [@alice](https://discourse.processing.org/u/alice)\
**Replies:** 8\
**Last updated:** [June 11, 2019, 10:27pm UTC](https://discourse.processing.org/t/how-to-apply-color-pixels/11941 "2019-06-11T22:27:39Z")

</div>

Hi all, I’m new using processing and still learning, I hope someone can help me . I have this script of the reaction Diffusion, I just want to apply a color of the chemical A and B. Also how to import an image and appl…

---

## [Loading data into the processing](https://discourse.processing.org/t/loading-data-into-the-processing/11949)

<div class="topic-metadata">

**Author:** [@BallazX](https://discourse.processing.org/u/BallazX)\
**Replies:** 2\
**Last updated:** [June 11, 2019, 3:29pm UTC](https://discourse.processing.org/t/loading-data-into-the-processing/11949 "2019-06-11T15:29:40Z")

</div>

Hey, Im trying to load some data from a csv file. The data tab contains this code: Table data=loadTable("values.csv"); TableRow row=data.getRow(0); float x1=row.getInt(0); float y1=row.getInt(1); float x2=row.getInt…

---

## [Multiple inheritence: combining VerletParticle() with WB\_Point()](https://discourse.processing.org/t/multiple-inheritence-combining-verletparticle-with-wb-point/11921)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 3\
**Last updated:** [June 11, 2019, 1:27pm UTC](https://discourse.processing.org/t/multiple-inheritence-combining-verletparticle-with-wb-point/11921 "2019-06-11T13:27:00Z")

</div>

Hi all, I’m working on a sketch where a Cell class needs to inherit both from Toxiclibs’ VerletParticle() and Hemesh WB\_Point(). Ideally I would like the Cell object to share specific attributes from the two libraries (W…

---

## [Processing Videos - Glitch Art, Controllers & More](https://discourse.processing.org/t/processing-videos-glitch-art-controllers-more/11980)

<div class="topic-metadata">

**Author:** [@zooey105](https://discourse.processing.org/u/zooey105)\
**Replies:** 0\
**Last updated:** [June 10, 2019, 9:44pm UTC](https://discourse.processing.org/t/processing-videos-glitch-art-controllers-more/11980 "2019-06-10T21:44:48Z")

</div>

Hey guys, I know Daniel Shiffman’s got the Coding Train but was curious if anyone would be interested in checking out some of my more esoteric videos, like how to get a midi-controller hooked up to a sketch to get a pia…

---

## [How can I put a three second delay within an if loop?](https://discourse.processing.org/t/how-can-i-put-a-three-second-delay-within-an-if-loop/11965)

<div class="topic-metadata">

**Author:** [@Gaspaider](https://discourse.processing.org/u/Gaspaider)\
**Replies:** 4\
**Last updated:** [June 10, 2019, 8:59pm UTC](https://discourse.processing.org/t/how-can-i-put-a-three-second-delay-within-an-if-loop/11965 "2019-06-10T20:59:29Z")

</div>

Hey there! I know there have been questions very similar to this using millis() before but I can’t find a way to build those answers into my program. Timer is a variable for something else. I would like to add a three se…

---

## [On window resize, variable current value evaporates](https://discourse.processing.org/t/on-window-resize-variable-current-value-evaporates/11952)

<div class="topic-metadata">

**Author:** [@edward](https://discourse.processing.org/u/edward)\
**Replies:** 7\
**Last updated:** [June 10, 2019, 6:44pm UTC](https://discourse.processing.org/t/on-window-resize-variable-current-value-evaporates/11952 "2019-06-10T18:44:45Z")

</div>

My project will involve multiple text input boxes which must move and adjust position dynamically when I resize the window. This bare-to-basics code only includes two boxes, when the mouse is over a box, the box is high…

---

## [How to get a shape to change color when mouse is over it?](https://discourse.processing.org/t/how-to-get-a-shape-to-change-color-when-mouse-is-over-it/11974)

<div class="topic-metadata">

**Author:** [@benfitzy21](https://discourse.processing.org/u/benfitzy21)\
**Replies:** 1\
**Last updated:** [June 10, 2019, 4:39pm UTC](https://discourse.processing.org/t/how-to-get-a-shape-to-change-color-when-mouse-is-over-it/11974 "2019-06-10T16:39:33Z")

</div>

Can someone help, I have been sitting here trying to figure this out for 3 hours.

---

## [Change shape of color brightness](https://discourse.processing.org/t/change-shape-of-color-brightness/11030)

<div class="topic-metadata">

**Author:** [@hamzakhan](https://discourse.processing.org/u/hamzakhan)\
**Replies:** 4\
**Last updated:** [June 10, 2019, 11:33am UTC](https://discourse.processing.org/t/change-shape-of-color-brightness/11030 "2019-06-10T11:33:41Z")

</div>

How we can change shape of color brightness of below tutorial ? https://p5js.org/examples/color-brightness.html

---

## [Tentacles renders on polar to cartersian all out of whack](https://discourse.processing.org/t/tentacles-renders-on-polar-to-cartersian-all-out-of-whack/11957)

<div class="topic-metadata">

**Author:** [@Arif](https://discourse.processing.org/u/Arif)\
**Replies:** 1\
**Last updated:** [June 10, 2019, 6:22am UTC](https://discourse.processing.org/t/tentacles-renders-on-polar-to-cartersian-all-out-of-whack/11957 "2019-06-10T06:22:26Z")

</div>

Hey There, I just recently found p5.js and have gone through a whole bunch of tutorial videos by Daniel Shiffman. I have managed to Frankenstein this together. My goal is to have the tentacles hang on the vertices of t…

---

## [Help with user input dialogues](https://discourse.processing.org/t/help-with-user-input-dialogues/11955)

<div class="topic-metadata">

**Author:** [@rory](https://discourse.processing.org/u/rory)\
**Replies:** 1\
**Last updated:** [June 10, 2019, 3:29am UTC](https://discourse.processing.org/t/help-with-user-input-dialogues/11955 "2019-06-10T03:29:16Z")

</div>

Hello again, I’m making a “Geometry tutor” program which contains instructions, learn, and a practice section where the user can quiz themselves. I have been instructed to use a specific input file for the quiz question…

---

## [Modifing functions in classes using extends](https://discourse.processing.org/t/modifing-functions-in-classes-using-extends/11913)

<div class="topic-metadata">

**Author:** [@skyjoe66](https://discourse.processing.org/u/skyjoe66)\
**Replies:** 2\
**Last updated:** [June 9, 2019, 11:05pm UTC](https://discourse.processing.org/t/modifing-functions-in-classes-using-extends/11913 "2019-06-09T23:05:27Z")

</div>

i am making a game and am using nested classes to create block variations, but i want tree to have an addition to the drawing process (a progress bar). is there a way to use the same function call but have it run like no…

---

## [\[SOLVED\] Creating "FPS-like" mouse detection](https://discourse.processing.org/t/solved-creating-fps-like-mouse-detection/11946)

<div class="topic-metadata">

**Author:** [@koorkevani](https://discourse.processing.org/u/koorkevani)\
**Replies:** 3\
**Last updated:** [June 9, 2019, 10:57pm UTC](https://discourse.processing.org/t/solved-creating-fps-like-mouse-detection/11946 "2019-06-09T22:57:09Z")

</div>

I’m trying to recreate the controls of the game Minecraft. For those who don’t know, when you move the mouse, the direction you’re facing changes accordingly (if you’re moving the mouse upwards, it’s like looking upwards…

---

## [If/else statement not evaluating](https://discourse.processing.org/t/if-else-statement-not-evaluating/11927)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [June 9, 2019, 7:47pm UTC](https://discourse.processing.org/t/if-else-statement-not-evaluating/11927 "2019-06-09T19:47:05Z")

</div>

I’m trying to automate the maze search I’ve created (I know I keep posting about this one). So weird issue, I need to test if the paths have been explored so I created a variable that can be updated every time there is n…

---

## [Did anybody make a R.U.B.E loader for processing?](https://discourse.processing.org/t/did-anybody-make-a-r-u-b-e-loader-for-processing/11944)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 1\
**Last updated:** [June 9, 2019, 4:39pm UTC](https://discourse.processing.org/t/did-anybody-make-a-r-u-b-e-loader-for-processing/11944 "2019-06-09T16:39:45Z")

</div>

R.U.B.E is a really cool project. It’s a graphic visual editor for Box2D scenes and worlds. It really took me by surprise and the examples on the page are amazing. This editor can export all your scenes to Java (and ot…

---

## [Problem with socket.io](https://discourse.processing.org/t/problem-with-socket-io/11907)

<div class="topic-metadata">

**Author:** [@LittleBoxes](https://discourse.processing.org/u/LittleBoxes)\
**Replies:** 4\
**Last updated:** [June 9, 2019, 4:22pm UTC](https://discourse.processing.org/t/problem-with-socket-io/11907 "2019-06-09T16:22:34Z")

</div>

Hello, II would like to use socket.io to create a small multiplayer game. To try this lib, I try to install a Shared-canvas script found on the Coding Train site (tuto about websocket). It works well on a local server …

---

## [Line first coordinate is allways (0,0)](https://discourse.processing.org/t/line-first-coordinate-is-allways-0-0/11942)

<div class="topic-metadata">

**Author:** [@BallazX](https://discourse.processing.org/u/BallazX)\
**Replies:** 2\
**Last updated:** [June 9, 2019, 2:34pm UTC](https://discourse.processing.org/t/line-first-coordinate-is-allways-0-0/11942 "2019-06-09T14:34:37Z")

</div>

Hey All, I would like to draw some lines: void setup() { size(600, 600); noLoop(); } void draw(){ line(pmouseX, pmouseY, mouseX, mouseY); } void mouseClicked() { redraw(); } My problem is, that the first line …

---

## [Render SVG in P5.js](https://discourse.processing.org/t/render-svg-in-p5-js/11935)

<div class="topic-metadata">

**Author:** [@Alexandra](https://discourse.processing.org/u/Alexandra)\
**Replies:** 5\
**Last updated:** [June 9, 2019, 11:27am UTC](https://discourse.processing.org/t/render-svg-in-p5-js/11935 "2019-06-09T11:27:57Z")

</div>

Hi everyone! I’m checking out the graphics/shapes examples in P5 and found out that they are all raster-based. I’m wondering whether there’s a way to render SVG files inside P5. Thanks! Alexandra

---

## [Save data to "secure" or hidden file](https://discourse.processing.org/t/save-data-to-secure-or-hidden-file/11868)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 4\
**Last updated:** [June 9, 2019, 10:27am UTC](https://discourse.processing.org/t/save-data-to-secure-or-hidden-file/11868 "2019-06-09T10:27:30Z")

</div>

I have various auto saved & auto loaded settings in my app that I don’t want an end user messing with, what is the best way from preventing them doing this ? Is there a way to export data (a Table for example) to a form…

---

## [Need help! Beginner! How to capture image and use the image](https://discourse.processing.org/t/need-help-beginner-how-to-capture-image-and-use-the-image/11937)

<div class="topic-metadata">

**Author:** [@carriemarrie](https://discourse.processing.org/u/carriemarrie)\
**Replies:** 1\
**Last updated:** [June 9, 2019, 7:38am UTC](https://discourse.processing.org/t/need-help-beginner-how-to-capture-image-and-use-the-image/11937 "2019-06-09T07:38:26Z")

</div>

Hello! I am trying to make an app for my first coding course but I am having some problems. By far I have made the first page, using camera and saving the picture. But my next step would be to USE the image that I took a…

---

## [Code Circular Heat map with P5](https://discourse.processing.org/t/code-circular-heat-map-with-p5/10561)

<div class="topic-metadata">

**Author:** [@bram94](https://discourse.processing.org/u/bram94)\
**Replies:** 6\
**Last updated:** [June 8, 2019, 9:47pm UTC](https://discourse.processing.org/t/code-circular-heat-map-with-p5/10561 "2019-06-08T21:47:52Z")

</div>

Hi all, I am very new to P5 and want to code a circular heatmap inP5 based on data I have Something similar like shown in the figure. I already manage to do it in R, but really need to do it in p5 and already unsuces…

---

## [Add PGraphics to a custom method](https://discourse.processing.org/t/add-pgraphics-to-a-custom-method/11930)

<div class="topic-metadata">

**Author:** [@BallazX](https://discourse.processing.org/u/BallazX)\
**Replies:** 3\
**Last updated:** [June 8, 2019, 8:34pm UTC](https://discourse.processing.org/t/add-pgraphics-to-a-custom-method/11930 "2019-06-08T20:34:07Z")

</div>

Hi All, I’ve got this code: void myrect(float xa,float ya,float xb,float yb){ float x1=xa; if(xa\>xb) { while(xb\<x1){ x1--; point(x1,ya); point(x1,yb); } } else if(x1\<xb){ while(x1\<xb…

---

## [Using splice in an enhanced for loop](https://discourse.processing.org/t/using-splice-in-an-enhanced-for-loop/11931)

<div class="topic-metadata">

**Author:** [@ZachMcMkay](https://discourse.processing.org/u/ZachMcMkay)\
**Replies:** 1\
**Last updated:** [June 8, 2019, 8:26pm UTC](https://discourse.processing.org/t/using-splice-in-an-enhanced-for-loop/11931 "2019-06-08T20:26:20Z")

</div>

Is there an issue with splice not working properly when running an enhanced for loop? this is my code. for (p of pieces) { for (other of pieces) { if (p != other && p.col != other.col && p.capture(other)) { co…

---

## [Neophyte needs help converting P5 code to Processing](https://discourse.processing.org/t/neophyte-needs-help-converting-p5-code-to-processing/11884)

<div class="topic-metadata">

**Author:** [@lfb](https://discourse.processing.org/u/lfb)\
**Replies:** 12\
**Last updated:** [June 8, 2019, 7:24pm UTC](https://discourse.processing.org/t/neophyte-needs-help-converting-p5-code-to-processing/11884 "2019-06-08T19:24:16Z")

</div>

Hello, friends. I have a small P5 sketch that I want to convert to Processing. I’ve tried, I’ve tried but can’t bring it home. Getting frustrated. The problem happens mainly in one function that converts a string of 12 c…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=474)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=476)
