# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=385

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

**Page:** 386

---

## [Cp5 Knob: how to use an image?](https://discourse.processing.org/t/cp5-knob-how-to-use-an-image/1143)

<div class="topic-metadata">

**Author:** [@koendepoorter](https://discourse.processing.org/u/koendepoorter)\
**Replies:** 3\
**Last updated:** [June 24, 2018, 1:48pm UTC](https://discourse.processing.org/t/cp5-knob-how-to-use-an-image/1143 "2018-06-24T13:48:21Z")

</div>

hey everybody, I have a problem i can’t seem to solve: I want to use an image instead of the standard Knob-layout. It works fine with buttons, toggles, … but not with knobs? Anyone got any idea what I’m doing wrong? …

---

## [How to make array values MOVE UP](https://discourse.processing.org/t/how-to-make-array-values-move-up/1184)

<div class="topic-metadata">

**Author:** [@WindJammer](https://discourse.processing.org/u/WindJammer)\
**Replies:** 8\
**Last updated:** [June 24, 2018, 10:19am UTC](https://discourse.processing.org/t/how-to-make-array-values-move-up/1184 "2018-06-24T10:19:38Z")

</div>

How do i make values in an array move up, everytime the array receives a new value? I want to have the newest incoming variable always to be in the 1st array slot. The rest should move up to the next slot. Example: \[…

---

## [Help with for()](https://discourse.processing.org/t/help-with-for/1194)

<div class="topic-metadata">

**Author:** [@jferreira](https://discourse.processing.org/u/jferreira)\
**Replies:** 2\
**Last updated:** [June 24, 2018, 4:57am UTC](https://discourse.processing.org/t/help-with-for/1194 "2018-06-24T04:57:14Z")

</div>

Hello! I am working in a minigame based in StarCastle(Vectrex), and i am trying to draw the shields: void drawLines(){ for(ArrayList\<PVector\> line : this.shield){ switch(this.shield.indexOf(line)){ c…

---

## [Color Shuffle with hex color codes](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 11\
**Last updated:** [June 24, 2018, 12:26am UTC](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191 "2018-06-24T00:26:43Z")

</div>

Hi there, Am trying to get colors in an array to shuffle, but having some trouble understanding how to adapt this code: I want to create an array with the following hex color codes and have them shuffle whenever there’…

---

## [Help with loops](https://discourse.processing.org/t/help-with-loops/1190)

<div class="topic-metadata">

**Author:** [@NNY](https://discourse.processing.org/u/NNY)\
**Replies:** 7\
**Last updated:** [June 23, 2018, 11:59pm UTC](https://discourse.processing.org/t/help-with-loops/1190 "2018-06-23T23:59:21Z")

</div>

Working on a homework assignment and I’m absolutely horrible with programming. I need to run a program that asks a riddle and lists some words. the Answer to the riddle is the first letter of each word. Once the user inp…

---

## [Camera: How top down view](https://discourse.processing.org/t/camera-how-top-down-view/1178)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [June 23, 2018, 5:54pm UTC](https://discourse.processing.org/t/camera-how-top-down-view/1178 "2018-06-23T17:54:17Z")

</div>

Hello, it is well known that camera(width/2.0, height/2.0, (height/2.0) / tan(PI\*30.0 / 180.0), width/2.0, height/2.0, 0, 0, 1, 0); delivers the normal view. I am trying to implement a top down view: My best guess…

---

## [Passing mat4 array to shader uniform](https://discourse.processing.org/t/passing-mat4-array-to-shader-uniform/1177)

<div class="topic-metadata">

**Author:** [@kosowski](https://discourse.processing.org/u/kosowski)\
**Replies:** 1\
**Last updated:** [June 23, 2018, 4:46pm UTC](https://discourse.processing.org/t/passing-mat4-array-to-shader-uniform/1177 "2018-06-23T16:46:51Z")

</div>

Hi all! I want to pass an array of mat4 transformation matrices to a uniform in a PShader object, defined like this: uniform mat4 jointTransforms\[MAX\_JOINTS\]; I cannot see this option neither in the reference nor in …

---

## [Compositing of two blurred shapes drawn into PGraphics](https://discourse.processing.org/t/compositing-of-two-blurred-shapes-drawn-into-pgraphics/1174)

<div class="topic-metadata">

**Author:** [@stoph](https://discourse.processing.org/u/stoph)\
**Replies:** 8\
**Last updated:** [June 23, 2018, 1:27pm UTC](https://discourse.processing.org/t/compositing-of-two-blurred-shapes-drawn-into-pgraphics/1174 "2018-06-23T13:27:57Z")

</div>

Hello, everyone! What I want to achieve is having two differently colored blurred shapes in one PGraphics. The problem is that when copying the latter shape/image into the first one the semi-transparent pixels (blurred …

---

## [\[ G4P \] changing Text of a Textfield in its eventHandler method](https://discourse.processing.org/t/g4p-changing-text-of-a-textfield-in-its-eventhandler-method/1170)

<div class="topic-metadata">

**Author:** [@AntonC](https://discourse.processing.org/u/AntonC)\
**Replies:** 1\
**Last updated:** [June 23, 2018, 11:51am UTC](https://discourse.processing.org/t/g4p-changing-text-of-a-textfield-in-its-eventhandler-method/1170 "2018-06-23T11:51:16Z")

</div>

I tried the code below. When the text length is greater than 4, I’m getting an error. For some reason, I’m not allowed to change the text, while being inside that method. It calls the method splendidly, and the error i…

---

## [Line & Intersection](https://discourse.processing.org/t/line-intersection/1118)

<div class="topic-metadata">

**Author:** [@rioma7](https://discourse.processing.org/u/rioma7)\
**Replies:** 2\
**Last updated:** [June 23, 2018, 2:35am UTC](https://discourse.processing.org/t/line-intersection/1118 "2018-06-23T02:35:32Z")

</div>

Hello people, I would like to draw lines from side to side of the canvas \[random points\] but I don’t want that it draws if the drawn line intersect a circle, which is in the middle. My code is this void setup(){ back…

---

## [Retaining transparency with png images](https://discourse.processing.org/t/retaining-transparency-with-png-images/1159)

<div class="topic-metadata">

**Author:** [@tutantontut](https://discourse.processing.org/u/tutantontut)\
**Replies:** 11\
**Last updated:** [June 22, 2018, 9:03pm UTC](https://discourse.processing.org/t/retaining-transparency-with-png-images/1159 "2018-06-22T21:03:16Z")

</div>

Hello everyone! I’ve been learning Processing for a while now, and have struck a brick wall: What I want to do; Load an image of a circular object (like an eye or a bubble etc.) and “retain it’s transparency”. I heard …

---

## [Displaying Random Images on a Certain XY](https://discourse.processing.org/t/displaying-random-images-on-a-certain-xy/922)

<div class="topic-metadata">

**Author:** [@janberkjk](https://discourse.processing.org/u/janberkjk)\
**Replies:** 12\
**Last updated:** [June 22, 2018, 11:35am UTC](https://discourse.processing.org/t/displaying-random-images-on-a-certain-xy/922 "2018-06-22T11:35:30Z")

</div>

Hi mankind, I need help. I am trying to make something like a slideshow. I need to put an image on a certain xy coordinate when i click to mouse image will randomly change, it will be hundreds of images, and it will b…

---

## [Help needed (Processing)](https://discourse.processing.org/t/help-needed-processing/1134)

<div class="topic-metadata">

**Author:** [@adlertag](https://discourse.processing.org/u/adlertag)\
**Replies:** 1\
**Last updated:** [June 21, 2018, 12:00am UTC](https://discourse.processing.org/t/help-needed-processing/1134 "2018-06-21T00:00:35Z")

</div>

What is wrong with this Sketck? ////////////////////////////////////////////////////// Ptica\[\] p = new Ptica\[1200\]; int N = 100; void setup() { size(1280, 900); for(int i=0; i \< N; i++) { p\[i\] = new Ptica(random(w…

---

## [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…

---

## [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…

---

## [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… …

---

## [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…

---

## [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…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=384)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=386)
