# Latest

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

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

**Page:** 303

---

## [Music visualizer processing (minim library)](https://discourse.processing.org/t/music-visualizer-processing-minim-library/24067)

<div class="topic-metadata">

**Author:** [@sabrufran](https://discourse.processing.org/u/sabrufran)\
**Replies:** 2\
**Last updated:** [September 28, 2020, 12:33pm UTC](https://discourse.processing.org/t/music-visualizer-processing-minim-library/24067 "2020-09-28T12:33:08Z")

</div>

hi, i’m new to Processing and i’m interested in being able to synchronize the sketch with the audio specifically that the height of the “mountains” grows in sync with the audio. I made this sketch following the video: ht…

---

## [Redrawing Pimage with point() after rotate() creates weird pixel patterns](https://discourse.processing.org/t/redrawing-pimage-with-point-after-rotate-creates-weird-pixel-patterns/24034)

<div class="topic-metadata">

**Author:** [@erk](https://discourse.processing.org/u/erk)\
**Replies:** 6\
**Last updated:** [September 28, 2020, 11:55am UTC](https://discourse.processing.org/t/redrawing-pimage-with-point-after-rotate-creates-weird-pixel-patterns/24034 "2020-09-28T11:55:12Z")

</div>

I try to mirror a PImage, using parts of the code found here: https://thecodingtrain.com/CodingChallenges/155-kaleidoscope-snowflake.html The difference is, that i use point() to draw the single pixels of the picture. I…

---

## [How do I generate colour based on my JSON data in p5.js?](https://discourse.processing.org/t/how-do-i-generate-colour-based-on-my-json-data-in-p5-js/24148)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 2\
**Last updated:** [September 28, 2020, 11:24am UTC](https://discourse.processing.org/t/how-do-i-generate-colour-based-on-my-json-data-in-p5-js/24148 "2020-09-28T11:24:25Z")

</div>

Hi everyone! I’m trying to figure out how I can generate colour that will respond to my JSON data. Heres the code so far and I’ve highlighted the bits at the end to show my attempt, but obviously it hasn’t worked. The …

---

## [MousePressed function not working?](https://discourse.processing.org/t/mousepressed-function-not-working/24187)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 10:59am UTC](https://discourse.processing.org/t/mousepressed-function-not-working/24187 "2020-09-28T10:59:00Z")

</div>

Hey everyone, so somehow my mousePressed function isn’t changing the days of the week text whenever I mousepress, but it is starting a new sketch… Don’t know whats preventing the text from changing? If anyone can figure…

---

## [Question for "try()"](https://discourse.processing.org/t/question-for-try/24151)

<div class="topic-metadata">

**Author:** [@JoLi](https://discourse.processing.org/u/JoLi)\
**Replies:** 4\
**Last updated:** [September 28, 2020, 11:10am UTC](https://discourse.processing.org/t/question-for-try/24151 "2020-09-28T11:10:59Z")

</div>

Any Ideas, why this is not working? Processing 3.5.4, Windows 10

---

## [Rectangle not moving](https://discourse.processing.org/t/rectangle-not-moving/24161)

<div class="topic-metadata">

**Author:** [@Tobias](https://discourse.processing.org/u/Tobias)\
**Replies:** 9\
**Last updated:** [September 28, 2020, 11:10am UTC](https://discourse.processing.org/t/rectangle-not-moving/24161 "2020-09-28T11:10:02Z")

</div>

Hi. I am new to processing and I am trying to make Pong. I want both the paddles to be able to move at once. Since keyPressed only allows for one button press at a time, i tried to add a boolean for each button press in…

---

## [Importing SVG to p5.js sketch](https://discourse.processing.org/t/importing-svg-to-p5-js-sketch/24072)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 16\
**Last updated:** [September 28, 2020, 8:00am UTC](https://discourse.processing.org/t/importing-svg-to-p5-js-sketch/24072 "2020-09-28T08:00:39Z")

</div>

Hi, everyone ! Is there any way to load an SVG(this SVG’s background is transparent, I need to import with transparency) to my p5 sketch ? I appreciate every help, thanks ! YK.

---

## [I need help drawing pictures](https://discourse.processing.org/t/i-need-help-drawing-pictures/24185)

<div class="topic-metadata">

**Author:** [@Poorman](https://discourse.processing.org/u/Poorman)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 7:23am UTC](https://discourse.processing.org/t/i-need-help-drawing-pictures/24185 "2020-09-28T07:23:33Z")

</div>

Im a processing beginner Please tell me how ty

---

## [It looks like you're mixing "active" and "static" modes](https://discourse.processing.org/t/it-looks-like-youre-mixing-active-and-static-modes/24159)

<div class="topic-metadata">

**Author:** [@COZ](https://discourse.processing.org/u/COZ)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 2:00am UTC](https://discourse.processing.org/t/it-looks-like-youre-mixing-active-and-static-modes/24159 "2020-09-28T02:00:55Z")

</div>

Hello, complete begginer here. Just making my way through some tutorials and i’ve been hit with the error (the subject title). I know it’s defining static and active states, which can’t be both at the same time. But i c…

---

## [How to make a createCapture (video cam) responsive in p5js](https://discourse.processing.org/t/how-to-make-a-createcapture-video-cam-responsive-in-p5js/24138)

<div class="topic-metadata">

**Author:** [@Jinsel](https://discourse.processing.org/u/Jinsel)\
**Replies:** 1\
**Last updated:** [September 28, 2020, 1:40am UTC](https://discourse.processing.org/t/how-to-make-a-createcapture-video-cam-responsive-in-p5js/24138 "2020-09-28T01:40:52Z")

</div>

I wanna make my video cam be responsive on the webpage, so how to make it?

---

## [Surface.setSize() error](https://discourse.processing.org/t/surface-setsize-error/24144)

<div class="topic-metadata">

**Author:** [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Replies:** 6\
**Last updated:** [September 28, 2020, 1:20am UTC](https://discourse.processing.org/t/surface-setsize-error/24144 "2020-09-28T01:20:26Z")

</div>

Hello, i’m trying to setSize of my window and discover a strange behaviour. try this code. On my MacOS 10.14.6 and Processing 3.5.3 It’s suppose to open a window with 10px in height… It does not! it open a window w…

---

## [Trying to create a font, getting error: IllegalArgumentException: loadFont() is for .vlw files, try createFont()](https://discourse.processing.org/t/trying-to-create-a-font-getting-error-illegalargumentexception-loadfont-is-for-vlw-files-try-createfont/24174)

<div class="topic-metadata">

**Author:** [@adl](https://discourse.processing.org/u/adl)\
**Replies:** 2\
**Last updated:** [September 27, 2020, 10:23pm UTC](https://discourse.processing.org/t/trying-to-create-a-font-getting-error-illegalargumentexception-loadfont-is-for-vlw-files-try-createfont/24174 "2020-09-27T22:23:21Z")

</div>

I used tools, create fonts option from menu to create font , the system created data folder with the font file name. the code is below. What am I missing? / PFont font1; void setup(){ size(500,500); font1=loadFon…

---

## [P5js in an epub3 on kobo ereader?](https://discourse.processing.org/t/p5js-in-an-epub3-on-kobo-ereader/9266)

<div class="topic-metadata">

**Author:** [@mrbbp](https://discourse.processing.org/u/mrbbp)\
**Replies:** 3\
**Last updated:** [September 27, 2020, 9:06pm UTC](https://discourse.processing.org/t/p5js-in-an-epub3-on-kobo-ereader/9266 "2020-09-27T21:06:12Z")

</div>

Hello, I’m starting playing with kobo ereader and epub 3 format. I’ts xhtml5, on kobo ereader with the kepub.epub js are running. I’m able to run basic script and attempt to use P5js, to use it canvas abilities… I’ve…

---

## [Nested for loops---help please!](https://discourse.processing.org/t/nested-for-loops-help-please/24129)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 17\
**Last updated:** [September 27, 2020, 8:49pm UTC](https://discourse.processing.org/t/nested-for-loops-help-please/24129 "2020-09-27T20:49:01Z")

</div>

I have an assignment that states the following–Create a program using nested for statements that will produce 5 rows, 7 in each column of diagonals as shown. You will need to size the frame 450 x 450. Determine your coo…

---

## [Juggling Game Bug](https://discourse.processing.org/t/juggling-game-bug/24172)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 3\
**Last updated:** [September 27, 2020, 8:47pm UTC](https://discourse.processing.org/t/juggling-game-bug/24172 "2020-09-27T20:47:39Z")

</div>

Hello, I am experiencing a weird bug in my game where the ball seems to get caught in a conditional that throws it out of my display screen. I am not really sure why this is happening because my logic seems to be correct…

---

## [Buffering videos fully before playing them](https://discourse.processing.org/t/buffering-videos-fully-before-playing-them/24080)

<div class="topic-metadata">

**Author:** [@agidron](https://discourse.processing.org/u/agidron)\
**Replies:** 8\
**Last updated:** [September 27, 2020, 7:37pm UTC](https://discourse.processing.org/t/buffering-videos-fully-before-playing-them/24080 "2020-09-27T19:37:49Z")

</div>

Hello! I’m relatively new to JS and P5 with limited coding background, and I’m learning as I go. This is my first post here. I’m building a website that needs to stream several videos simultaneously for a music/video p…

---

## [Multiple levels](https://discourse.processing.org/t/multiple-levels/24164)

<div class="topic-metadata">

**Author:** [@koenterheegde57](https://discourse.processing.org/u/koenterheegde57)\
**Replies:** 0\
**Last updated:** [September 27, 2020, 6:20pm UTC](https://discourse.processing.org/t/multiple-levels/24164 "2020-09-27T18:20:50Z")

</div>

Hi guys, I’m making a fun game in which you have to get a rocket as high as possible. I have made the first ‘level’ and I now want to add more levels. The transition from level 1 to level 2 works fine, but backwards is…

---

## [Hi guys, the console is showing me the result "undefined" about the api](https://discourse.processing.org/t/hi-guys-the-console-is-showing-me-the-result-undefined-about-the-api/24154)

<div class="topic-metadata">

**Author:** [@kappo25](https://discourse.processing.org/u/kappo25)\
**Replies:** 2\
**Last updated:** [September 27, 2020, 3:30pm UTC](https://discourse.processing.org/t/hi-guys-the-console-is-showing-me-the-result-undefined-about-the-api/24154 "2020-09-27T15:30:45Z")

</div>

var weather; function setup() { loadJSON( 'https://restcountries.eu/rest/v2/capital/tallinn', gotData ); } function gotData(data) { weather = data; } function draw() { background(0); if (weather) { …

---

## [Code not working in p5.js with JSON data?](https://discourse.processing.org/t/code-not-working-in-p5-js-with-json-data/24152)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 2:30pm UTC](https://discourse.processing.org/t/code-not-working-in-p5-js-with-json-data/24152 "2020-09-27T14:30:04Z")

</div>

I’m trying to tell the system to let the number value stored within my JSON file to determine the size of the ellipse. I referenced this https://editor.p5js.org/bavazzanos1/sketches/Bkkdrs11M MY CODE SO FAR: var data; …

---

## [How do I draw a circle based on my JSON data information in p5.js?](https://discourse.processing.org/t/how-do-i-draw-a-circle-based-on-my-json-data-information-in-p5-js/24146)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 2\
**Last updated:** [September 27, 2020, 11:18am UTC](https://discourse.processing.org/t/how-do-i-draw-a-circle-based-on-my-json-data-information-in-p5-js/24146 "2020-09-27T11:18:31Z")

</div>

So, I’m trying to grab data from my JSON file to my code and display the circle size according to the number on my JSON file. So far this is the code. var data; var instagram, snapchat, messenger, facebook, email, ins…

---

## [How to create a function out of a shape](https://discourse.processing.org/t/how-to-create-a-function-out-of-a-shape/23911)

<div class="topic-metadata">

**Author:** [@eco.pm2](https://discourse.processing.org/u/eco.pm2)\
**Replies:** 14\
**Last updated:** [September 27, 2020, 3:12am UTC](https://discourse.processing.org/t/how-to-create-a-function-out-of-a-shape/23911 "2020-09-27T03:12:20Z")

</div>

Hi I would like to move the ‘shuttle’ over and under the ellipses with a mouse command at first. Where could I find a tutorial video for that please? I was wondering if the 'shuttle could become a ‘shuttleShape’, as …

---

## [\[Android\] How to prevent 'BACK button'?](https://discourse.processing.org/t/android-how-to-prevent-back-button/24133)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [September 26, 2020, 11:29pm UTC](https://discourse.processing.org/t/android-how-to-prevent-back-button/24133 "2020-09-26T23:29:24Z")

</div>

Tool : Processing3.5.3 / Android mode Android SDK 10 Android mode 3.0.1 How to prevent ‘BACK button’ ? import android.app.Activity; import android.content.DialogInterface; import android.app.Activity; import andr…

---

## [Window cannot properly resize on Linux, GNOME](https://discourse.processing.org/t/window-cannot-properly-resize-on-linux-gnome/24141)

<div class="topic-metadata">

**Author:** [@sashakoshka](https://discourse.processing.org/u/sashakoshka)\
**Replies:** 1\
**Last updated:** [September 26, 2020, 8:02pm UTC](https://discourse.processing.org/t/window-cannot-properly-resize-on-linux-gnome/24141 "2020-09-26T20:02:03Z")

</div>

I am running Pop!\_OS 20.04 LTS, with GNOME version 3.36.3 When I run a resizable sketch, resizing it will often only resize the window, and fill the empty space with junk data, while keeping the sketch the same size. Of…

---

## [Adding objects to the canvas fom within the mousePressed() method](https://discourse.processing.org/t/adding-objects-to-the-canvas-fom-within-the-mousepressed-method/24121)

<div class="topic-metadata">

**Author:** [@nestor0920](https://discourse.processing.org/u/nestor0920)\
**Replies:** 8\
**Last updated:** [September 26, 2020, 6:33pm UTC](https://discourse.processing.org/t/adding-objects-to-the-canvas-fom-within-the-mousepressed-method/24121 "2020-09-26T18:33:16Z")

</div>

I’m trying to create a sketch where after setup the canvas is only changed when the user adds some geometrical objects by pressing the mouse. So it seems inappropriate to me to even implement the draw() method. To my un…

---

## [To go beyond the limit of your screen](https://discourse.processing.org/t/to-go-beyond-the-limit-of-your-screen/24136)

<div class="topic-metadata">

**Author:** [@yanze03](https://discourse.processing.org/u/yanze03)\
**Replies:** 9\
**Last updated:** [September 26, 2020, 5:21pm UTC](https://discourse.processing.org/t/to-go-beyond-the-limit-of-your-screen/24136 "2020-09-26T17:21:52Z")

</div>

Hi, I am trying to make a program where the size of my screen is a bit to small. I am trying to make it so that when I pusch a button or scroll a scrollbar the X coordinate of the canvas moves. This would mean that the…

---

## [How do I get the mousePressed function to change to different words each time on p5.js?](https://discourse.processing.org/t/how-do-i-get-the-mousepressed-function-to-change-to-different-words-each-time-on-p5-js/24134)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 4\
**Last updated:** [September 26, 2020, 11:50am UTC](https://discourse.processing.org/t/how-do-i-get-the-mousepressed-function-to-change-to-different-words-each-time-on-p5-js/24134 "2020-09-26T11:50:51Z")

</div>

Hi everyone! Was wondering how do I get the text to change every time I mousePress it. E.g. Sunday, then to Monday, then to Tuesday and so forth until it get to Saturday? Any help will be much appreciated Would I use …

---

## [Unable to get JSON file to work in p5.js](https://discourse.processing.org/t/unable-to-get-json-file-to-work-in-p5-js/24116)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 7\
**Last updated:** [September 26, 2020, 7:28am UTC](https://discourse.processing.org/t/unable-to-get-json-file-to-work-in-p5-js/24116 "2020-09-26T07:28:11Z")

</div>

I’m trying to load my p5.js sketch, but the sketch keeps coming up as loading. Then when I check to see, there is an error message saying"Uncaught (in promise) SyntaxError: Unexpected token / in JSON at position 0", whic…

---

## [\[SOLUTION\] How to find out my IP address in smartphone WIFI status](https://discourse.processing.org/t/solution-how-to-find-out-my-ip-address-in-smartphone-wifi-status/24131)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 6:01am UTC](https://discourse.processing.org/t/solution-how-to-find-out-my-ip-address-in-smartphone-wifi-status/24131 "2020-09-26T06:01:23Z")

</div>

How to find out my IP address in smartphone WIFI status Share the source code. import android.net.wifi.WifiManager; import android.content.Intent; import android.app.Activity; import android.content.Context; impor…

---

## [Exporting DXF is mirrored - CMM Arm](https://discourse.processing.org/t/exporting-dxf-is-mirrored-cmm-arm/13995)

<div class="topic-metadata">

**Author:** [@Bryan1](https://discourse.processing.org/u/Bryan1)\
**Replies:** 18\
**Last updated:** [September 25, 2020, 9:32pm UTC](https://discourse.processing.org/t/exporting-dxf-is-mirrored-cmm-arm/13995 "2020-09-25T21:32:18Z")

</div>

I am working on building a CMM Arm with the end goal of exporting a 3D .DXF file of the object measured as well as a point cloud file (simple Tab Delimited Text file). I am having trouble with exporting the DXF as its sa…

---

## [Writing a small Programming Language](https://discourse.processing.org/t/writing-a-small-programming-language/24095)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 9\
**Last updated:** [September 25, 2020, 7:51pm UTC](https://discourse.processing.org/t/writing-a-small-programming-language/24095 "2020-09-25T19:51:54Z")

</div>

hey guys, For a couple of years now iv’e been wanting to write a small programming language in HEBREW for my young (now 7) and curious daughter. Iv’e researched some and I feel like I know what has to be learned, but…

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

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