# Latest

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

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

**Page:** 614

---

## [The center of a rect() stroke](https://discourse.processing.org/t/the-center-of-a-rect-stroke/907)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 13\
**Last updated:** [June 22, 2018, 8:58am UTC](https://discourse.processing.org/t/the-center-of-a-rect-stroke/907 "2018-06-22T08:58:26Z")

</div>

Hi. Amplifying the image drawn with the code below, you will see a rectangle drawn with two ‘one-pixel-lines’ more, on the left and upper side of the rectangle, shown with the white lines, but just one-pixel-line on th…

---

## [Drag and drop local files into p5 skecthes](https://discourse.processing.org/t/drag-and-drop-local-files-into-p5-skecthes/1144)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 9\
**Last updated:** [June 22, 2018, 8:48am UTC](https://discourse.processing.org/t/drag-and-drop-local-files-into-p5-skecthes/1144 "2018-06-22T08:48:34Z")

</div>

Hi, I have a quick question. I would allow my sketch’s users to drag and drop an image file into the program window, and then use it. I can’t find any function for that in p5.js. What would be the easiest way to do that…

---

## [Iframes + multiple sketches + webstorage api](https://discourse.processing.org/t/iframes-multiple-sketches-webstorage-api/784)

<div class="topic-metadata">

**Author:** [@Mark](https://discourse.processing.org/u/Mark)\
**Replies:** 4\
**Last updated:** [June 22, 2018, 4:17am UTC](https://discourse.processing.org/t/iframes-multiple-sketches-webstorage-api/784 "2018-06-22T04:17:35Z")

</div>

I’m designing a psychology experiment that uses two very different sketches. I only want one to be seen at a time. Sketch #1 implements a sequencer using the p5.sound library, a single button, and a slider Sketch #2 di…

---

## [Smooth floating colors](https://discourse.processing.org/t/smooth-floating-colors/929)

<div class="topic-metadata">

**Author:** [@MLK](https://discourse.processing.org/u/MLK)\
**Replies:** 16\
**Last updated:** [June 22, 2018, 1:10am UTC](https://discourse.processing.org/t/smooth-floating-colors/929 "2018-06-22T01:10:43Z")

</div>

Im new to processing Can anyone help me make something like this to get startet

---

## [ArrayDisplay Control?](https://discourse.processing.org/t/arraydisplay-control/1011)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 2\
**Last updated:** [June 21, 2018, 10:24pm UTC](https://discourse.processing.org/t/arraydisplay-control/1011 "2018-06-21T22:24:10Z")

</div>

Hi, I keep wanting a quick way to show a an array of values, string/int/float, usually 2 dimensions. I’ve looked in ControlP5 and G4P hoping to find a multi-column listview or a grid. I worked for several years using …

---

## [Hiding ControlP5 controller](https://discourse.processing.org/t/hiding-controlp5-controller/1034)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 4\
**Last updated:** [June 21, 2018, 9:20pm UTC](https://discourse.processing.org/t/hiding-controlp5-controller/1034 "2018-06-21T21:20:51Z")

</div>

Is it possible to hide a controlP5 say with a key press or boolean within a key press? Am asking this because a controlP5 controller eg: slider, gets ‘created’ in setup() at the beginning and so there is no access to it…

---

## [How can I retrieve polygons with respective vertices from a PShape?](https://discourse.processing.org/t/how-can-i-retrieve-polygons-with-respective-vertices-from-a-pshape/986)

<div class="topic-metadata">

**Author:** [@cumulus](https://discourse.processing.org/u/cumulus)\
**Replies:** 2\
**Last updated:** [June 21, 2018, 6:54pm UTC](https://discourse.processing.org/t/how-can-i-retrieve-polygons-with-respective-vertices-from-a-pshape/986 "2018-06-21T18:54:09Z")

</div>

I would like to be able to retrieve all individual polygons from a PShape object (preferably an imported .obj) in order to know which vertices are linked to each other. for example if I was to import a simple tetrahedro…

---

## [Perlin Noise map](https://discourse.processing.org/t/perlin-noise-map/839)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 7\
**Last updated:** [June 21, 2018, 6:47pm UTC](https://discourse.processing.org/t/perlin-noise-map/839 "2018-06-21T18:47:26Z")

</div>

How would you generate a map with multiple biome’s and when two biome’s meet they have a smooth transition. Not sure where to start. Would you have multiple noise’s to generate the height of the terrain and the moisture …

---

## [Can someone tell me why does the powerup object its appearing always when i restart](https://discourse.processing.org/t/can-someone-tell-me-why-does-the-powerup-object-its-appearing-always-when-i-restart/1016)

<div class="topic-metadata">

**Author:** [@processing\_guy](https://discourse.processing.org/u/processing_guy)\
**Replies:** 4\
**Last updated:** [June 21, 2018, 5:43pm UTC](https://discourse.processing.org/t/can-someone-tell-me-why-does-the-powerup-object-its-appearing-always-when-i-restart/1016 "2018-06-21T17:43:32Z")

</div>

import ddf.minim.\*; PImage earth; PShape ball; PShape obs; PShape pow; PImage powerup; PImage universe; PImage Bball; PImage bricks; PImage wood; PImage smile; PImage basketball; PImage stone; PImage background1; PImage…

---

## [Radians vs. degrees](https://discourse.processing.org/t/radians-vs-degrees/1103)

<div class="topic-metadata">

**Author:** [@paulnaas](https://discourse.processing.org/u/paulnaas)\
**Replies:** 5\
**Last updated:** [June 21, 2018, 5:33pm UTC](https://discourse.processing.org/t/radians-vs-degrees/1103 "2018-06-21T17:33:02Z")

</div>

Hi everyone. Brand new to Processing. I’m working my way through the Make: Getting Started with Processing book, and I was wondering about radians vs. degrees. Is there an advantage to using one over the other? Does one…

---

## [Is there an "official" Processing jam/conference sort of thing?](https://discourse.processing.org/t/is-there-an-official-processing-jam-conference-sort-of-thing/1151)

<div class="topic-metadata">

**Author:** [@Carmine](https://discourse.processing.org/u/Carmine)\
**Replies:** 2\
**Last updated:** [June 21, 2018, 5:04pm UTC](https://discourse.processing.org/t/is-there-an-official-processing-jam-conference-sort-of-thing/1151 "2018-06-21T17:04:32Z")

</div>

Title says it all :slight\_smile: Is there an official Processing jam of some kind or some sort of all day conference event. Would be a great way to meet other people and other educators using it in their classes and also…

---

## [Is setUndecorated() possible?](https://discourse.processing.org/t/is-setundecorated-possible/1097)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 9\
**Last updated:** [June 21, 2018, 3:48pm UTC](https://discourse.processing.org/t/is-setundecorated-possible/1097 "2018-06-21T15:48:13Z")

</div>

I have 2 windows that I’m creating with the frames example of the controlP5 library. One works as the control window for sliders etc and the other the main sketch window where the artwork gets displayed. I have 2 monito…

---

## [Analysing image file make my browser stop working](https://discourse.processing.org/t/analysing-image-file-make-my-browser-stop-working/893)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 3\
**Last updated:** [June 21, 2018, 5:40am UTC](https://discourse.processing.org/t/analysing-image-file-make-my-browser-stop-working/893 "2018-06-21T05:40:03Z")

</div>

Hi, I’m making a sketch that load an image, rotate it a bit and display it. The program works well on my code editor, but it is not working on my browser. I first though there were some infinite loop, but after few res…

---

## [P5 value changed bug](https://discourse.processing.org/t/p5-value-changed-bug/1056)

<div class="topic-metadata">

**Author:** [@Galaxy](https://discourse.processing.org/u/Galaxy)\
**Replies:** 14\
**Last updated:** [June 21, 2018, 3:51am UTC](https://discourse.processing.org/t/p5-value-changed-bug/1056 "2018-06-21T03:51:21Z")

</div>

Every time i used p5.js, it says “You just changed the value of “something”, which was a p5 function. This could cause problems later if you’re not careful.”. It still works, but when i created a canvas, it showed 2 and …

---

## [Program crashes?](https://discourse.processing.org/t/program-crashes/1140)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 4\
**Last updated:** [June 21, 2018, 3:32am UTC](https://discourse.processing.org/t/program-crashes/1140 "2018-06-21T03:32:43Z")

</div>

Why does this program freeze? https://pastebin.com/VwKiqanB Please help! I’ve been trying to fix it, but no avail. -Grim

---

## [How to increase the masterVolume past 1?](https://discourse.processing.org/t/how-to-increase-the-mastervolume-past-1/1095)

<div class="topic-metadata">

**Author:** [@repgainer3](https://discourse.processing.org/u/repgainer3)\
**Replies:** 2\
**Last updated:** [June 21, 2018, 12:34am UTC](https://discourse.processing.org/t/how-to-increase-the-mastervolume-past-1/1095 "2018-06-21T00:34:51Z")

</div>

Hey, I’m trying to use p5.sound to make a web application that blasts text to speech (with p5.speech) onto my computer, I’ve tried “masterVolume(10000)”, and “myVoice.setVolume(10000)”. But they all cap at 1, is it possi…

---

## [A question on pixels and incrementing](https://discourse.processing.org/t/a-question-on-pixels-and-incrementing/888)

<div class="topic-metadata">

**Author:** [@MilesWilliams](https://discourse.processing.org/u/MilesWilliams)\
**Replies:** 5\
**Last updated:** [June 20, 2018, 8:15pm UTC](https://discourse.processing.org/t/a-question-on-pixels-and-incrementing/888 "2018-06-20T20:15:48Z")

</div>

Hello all, new to the world of Processing and have a quick question which I am hoping will have just as quick of an answer. So… Working with PVector objects, trying to get a understanding of motion within the Processin…

---

## [Adding images with absolute paths](https://discourse.processing.org/t/adding-images-with-absolute-paths/1132)

<div class="topic-metadata">

**Author:** [@gokulgupta1997](https://discourse.processing.org/u/gokulgupta1997)\
**Replies:** 1\
**Last updated:** [June 20, 2018, 7:49pm UTC](https://discourse.processing.org/t/adding-images-with-absolute-paths/1132 "2018-06-20T19:49:14Z")

</div>

How do i add absolute paths for an image ? is there any way to load images that are not stored in the default data path or is there any way to change the default data path to some other location for that sketch this i…

---

## [PDFBox with processing 3+](https://discourse.processing.org/t/pdfbox-with-processing-3/1091)

<div class="topic-metadata">

**Author:** [@crazylogic](https://discourse.processing.org/u/crazylogic)\
**Replies:** 1\
**Last updated:** [June 20, 2018, 5:36pm UTC](https://discourse.processing.org/t/pdfbox-with-processing-3/1091 "2018-06-20T17:36:25Z")

</div>

Hi all - Has anyone got an example where they’ve used PDFBox to import a PDF as graphics into processing 3 or higher? I see a few examples within the processing two forum but i’ve had zero luck making them work unfortun…

---

## [How to check if a color is close to another color?](https://discourse.processing.org/t/how-to-check-if-a-color-is-close-to-another-color/1018)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 3\
**Last updated:** [June 20, 2018, 4:30pm UTC](https://discourse.processing.org/t/how-to-check-if-a-color-is-close-to-another-color/1018 "2018-06-20T16:30:33Z")

</div>

I’m trying to check if a color is close to another color. Help! -Grim

---

## [G4P examples not readable](https://discourse.processing.org/t/g4p-examples-not-readable/1009)

<div class="topic-metadata">

**Author:** [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Replies:** 6\
**Last updated:** [June 20, 2018, 4:25pm UTC](https://discourse.processing.org/t/g4p-examples-not-readable/1009 "2018-06-20T16:25:20Z")

</div>

Hi folks, This post is related to G4P example, but also to lots of similar problems due to java script. Almost all web browsers deny the use of java script. I ,normally use Firefox, but I also tried IE, Edge, Chrome… …

---

## [How to active ControlEvent in ControlP5 - python Mode?](https://discourse.processing.org/t/how-to-active-controlevent-in-controlp5-python-mode/1113)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 9\
**Last updated:** [June 20, 2018, 12:50pm UTC](https://discourse.processing.org/t/how-to-active-controlevent-in-controlp5-python-mode/1113 "2018-06-20T12:50:08Z")

</div>

in Java language, here is the original code: import controlP5.\*; ControlP5 cp5; int myColor = color(0, 0, 0); int sliderValue = 100; int sliderTicks1 = 100; void setup() { size(700, 400); noStroke(); cp5 = new …

---

## [P5js (function) is not defined](https://discourse.processing.org/t/p5js-function-is-not-defined/1114)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 9\
**Last updated:** [June 20, 2018, 8:51am UTC](https://discourse.processing.org/t/p5js-function-is-not-defined/1114 "2018-06-20T08:51:07Z")

</div>

I’m having problems with this, and I don’t know what it means. Any help? -Grim

---

## [PApplet in Android mode](https://discourse.processing.org/t/papplet-in-android-mode/786)

<div class="topic-metadata">

**Author:** [@MGlolenstine](https://discourse.processing.org/u/MGlolenstine)\
**Replies:** 12\
**Last updated:** [June 20, 2018, 4:38am UTC](https://discourse.processing.org/t/papplet-in-android-mode/786 "2018-06-20T04:38:54Z")

</div>

I’m unable to use this function in the processing for android mode, because it’s first argument requires PApplet StaticMap m = new StaticMap(this, new com.modestmaps.providers.Microsoft.RoadProvider(), new Point2f(width…

---

## [Vertical and horizontal center glyphs](https://discourse.processing.org/t/vertical-and-horizontal-center-glyphs/860)

<div class="topic-metadata">

**Author:** [@Leo\_Aguiar](https://discourse.processing.org/u/Leo_Aguiar)\
**Replies:** 3\
**Last updated:** [June 20, 2018, 2:36am UTC](https://discourse.processing.org/t/vertical-and-horizontal-center-glyphs/860 "2018-06-20T02:36:00Z")

</div>

Hi guys, I’m a noob and I’ve made a sketch where by clicking you can shuffle through an alphabet’s glyphs and they get vertically and horizontally centered according to their size and the size of the sketch. I was stuck…

---

## [Mostrando datos desde el puerto serie de Arduino](https://discourse.processing.org/t/mostrando-datos-desde-el-puerto-serie-de-arduino/954)

<div class="topic-metadata">

**Author:** [@albertoG1](https://discourse.processing.org/u/albertoG1)\
**Replies:** 1\
**Last updated:** [June 20, 2018, 12:09am UTC](https://discourse.processing.org/t/mostrando-datos-desde-el-puerto-serie-de-arduino/954 "2018-06-20T00:09:13Z")

</div>

Pues tengo un programa muy sencillo hecho con un Arduino Nano y un sensor de humedad. El sensor obtiene un dato por segundo y lo muestra en el puerto serie con dos valores, el primero con valores de cero a 1023 del sens…

---

## [How do i get the output of a command?](https://discourse.processing.org/t/how-do-i-get-the-output-of-a-command/769)

<div class="topic-metadata">

**Author:** [@crazylogic](https://discourse.processing.org/u/crazylogic)\
**Replies:** 9\
**Last updated:** [June 19, 2018, 11:45pm UTC](https://discourse.processing.org/t/how-do-i-get-the-output-of-a-command/769 "2018-06-19T23:45:49Z")

</div>

so i want to get the output of the following command Process p = exec("/usr/sbin/system\_profiler", "SPHardwareDataType | grep Serial"); try { int result = p.waitFor(); println("the process retur…

---

## [Using MediaPlayer or SoundPool](https://discourse.processing.org/t/using-mediaplayer-or-soundpool/1080)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 1\
**Last updated:** [June 19, 2018, 11:12pm UTC](https://discourse.processing.org/t/using-mediaplayer-or-soundpool/1080 "2018-06-19T23:12:20Z")

</div>

So for like the last couple hours I have been trying to figure out how to play an mp3 file in my app. Everything I have tried looking up has like a hundred lines of code and I don’t even know what it is doing. I have nev…

---

## [WEBGL Help - Experiencing pointLight() issues](https://discourse.processing.org/t/webgl-help-experiencing-pointlight-issues/995)

<div class="topic-metadata">

**Author:** [@okliis](https://discourse.processing.org/u/okliis)\
**Replies:** 7\
**Last updated:** [June 19, 2018, 10:42pm UTC](https://discourse.processing.org/t/webgl-help-experiencing-pointlight-issues/995 "2018-06-19T22:42:13Z")

</div>

Hi all. Having problems with pointLight(). The light source on my canvas seems weak compared to the tutorial I am following. The tutorial (Coding Train) browser renders this, while my browser (Chrome 67) renders this: …

---

## [Performance issue: p5.js crushing my CPU (possible retina issue?)](https://discourse.processing.org/t/performance-issue-p5-js-crushing-my-cpu-possible-retina-issue/999)

<div class="topic-metadata">

**Author:** [@matthewjohnjamieson](https://discourse.processing.org/u/matthewjohnjamieson)\
**Replies:** 12\
**Last updated:** [June 19, 2018, 9:25pm UTC](https://discourse.processing.org/t/performance-issue-p5-js-crushing-my-cpu-possible-retina-issue/999 "2018-06-19T21:25:44Z")

</div>

Hi there. I’ve been working with p5.js for about 6 months now, and have had an ongoing performance issue even for simple sketches. I’ve been testing it on and off to see how to get to the bottom of it. I have a test sket…

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

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