# Coding Questions

**URL:** https://discourse.processing.org/c/processing/processing-questions/15.md?page=178

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

**Page:** 179

---

## [Split screen in 4 (Processing 3.3.6 - Windows + Kinect v2)](https://discourse.processing.org/t/split-screen-in-4-processing-3-3-6-windows-kinect-v2/2570)

<div class="topic-metadata">

**Author:** [@Niubbie](https://discourse.processing.org/u/Niubbie)\
**Replies:** 6\
**Last updated:** [August 14, 2018, 2:24pm UTC](https://discourse.processing.org/t/split-screen-in-4-processing-3-3-6-windows-kinect-v2/2570 "2018-08-14T14:24:42Z")

</div>

Hi! I’m new in the Processing world, really new. I was looking on the web to find a way to split the screen in 4 parts, but i can’t find a code that helps me do this. Now i am using (or try to ahah) the 3.3.6 Processing…

---

## [How to duplicate the array within different size and location](https://discourse.processing.org/t/how-to-duplicate-the-array-within-different-size-and-location/2611)

<div class="topic-metadata">

**Author:** [@plum.jungwoo](https://discourse.processing.org/u/plum.jungwoo)\
**Replies:** 3\
**Last updated:** [August 14, 2018, 4:07am UTC](https://discourse.processing.org/t/how-to-duplicate-the-array-within-different-size-and-location/2611 "2018-08-14T04:07:20Z")

</div>

I am making a set of algorithms using the box2d library. I made 10 small boxes of p1 to p5. However, if you choose one of the following choices (p1 to p5), I hope it will appear in the middle of the screen, but I have no…

---

## [Specific Image fade issues](https://discourse.processing.org/t/specific-image-fade-issues/2582)

<div class="topic-metadata">

**Author:** [@Nedelstein](https://discourse.processing.org/u/Nedelstein)\
**Replies:** 3\
**Last updated:** [August 13, 2018, 7:52pm UTC](https://discourse.processing.org/t/specific-image-fade-issues/2582 "2018-08-13T19:52:40Z")

</div>

Hi all, I have multiple images on my sketch and am trying to only get one to fade out, but I can’t seem to get the fade to only work for the one image. It’s fading out everything when I run it. Any help would be really …

---

## [Rotate model face towards camera using face normal](https://discourse.processing.org/t/rotate-model-face-towards-camera-using-face-normal/2614)

<div class="topic-metadata">

**Author:** [@nosarious](https://discourse.processing.org/u/nosarious)\
**Replies:** 1\
**Last updated:** [August 13, 2018, 3:36pm UTC](https://discourse.processing.org/t/rotate-model-face-towards-camera-using-face-normal/2614 "2018-08-13T15:36:08Z")

</div>

I am having trouble trying to rotate the face of a 3d model so it faces the camera directly. I have this function so far, but the result is inconsistent. I would normally call this just before drawing the model. Assume …

---

## [Smoothening EMG signals from Myo armband](https://discourse.processing.org/t/smoothening-emg-signals-from-myo-armband/2479)

<div class="topic-metadata">

**Author:** [@palashsomani](https://discourse.processing.org/u/palashsomani)\
**Replies:** 9\
**Last updated:** [August 13, 2018, 2:15pm UTC](https://discourse.processing.org/t/smoothening-emg-signals-from-myo-armband/2479 "2018-08-13T14:15:01Z")

</div>

Hello everyone! I am doing a project using Myo armband with Processing. Using the myo-for-processing library, the signal data processing receives for the device is raw and hence very jittery. I need to smoothen that sign…

---

## [Using pixels with processing?](https://discourse.processing.org/t/using-pixels-with-processing/2551)

<div class="topic-metadata">

**Author:** [@bjr29](https://discourse.processing.org/u/bjr29)\
**Replies:** 3\
**Last updated:** [August 12, 2018, 7:17am UTC](https://discourse.processing.org/t/using-pixels-with-processing/2551 "2018-08-12T07:17:38Z")

</div>

I want to make a very simple neural network and I thought I should make it about recognizing patterns with 2x2 pixels. I got a strange output when looking at the colours when I was just setting it up. I’m wondering if it…

---

## [Server and Client on one instance of a game](https://discourse.processing.org/t/server-and-client-on-one-instance-of-a-game/2403)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 9\
**Last updated:** [August 12, 2018, 2:09am UTC](https://discourse.processing.org/t/server-and-client-on-one-instance-of-a-game/2403 "2018-08-12T02:09:38Z")

</div>

Hello, this topic might be more appropriate to be put in the library category, but this is not suposed to be a question about any library. In Minecraft in some very early update, offline singleplayer worlds were given …

---

## [Eclipse project that runs a Sketch](https://discourse.processing.org/t/eclipse-project-that-runs-a-sketch/2547)

<div class="topic-metadata">

**Author:** [@Essay](https://discourse.processing.org/u/Essay)\
**Replies:** 7\
**Last updated:** [August 11, 2018, 10:29pm UTC](https://discourse.processing.org/t/eclipse-project-that-runs-a-sketch/2547 "2018-08-11T22:29:23Z")

</div>

Hello everyone :blush: I have a Java project in Eclipse that asks some informations to the user and then, when obtained these informations, runs a Processing sketck, that obviously opens a new window. Now, the program s…

---

## [Processing 2.2.1](https://discourse.processing.org/t/processing-2-2-1/2545)

<div class="topic-metadata">

**Author:** [@Sun](https://discourse.processing.org/u/Sun)\
**Replies:** 3\
**Last updated:** [August 11, 2018, 6:28pm UTC](https://discourse.processing.org/t/processing-2-2-1/2545 "2018-08-11T18:28:39Z")

</div>

Hello, A couple of years ago I made a clock in Processing 2.2.1. I want to upload my clock in my WordPress website. That isn’t possible, because of the latest new version 3.4. I get errors. I’ve no clue what I have to …

---

## [3D Vertex to Screen coordinates](https://discourse.processing.org/t/3d-vertex-to-screen-coordinates/2455)

<div class="topic-metadata">

**Author:** [@iamtomodea](https://discourse.processing.org/u/iamtomodea)\
**Replies:** 4\
**Last updated:** [August 11, 2018, 10:33am UTC](https://discourse.processing.org/t/3d-vertex-to-screen-coordinates/2455 "2018-08-11T10:33:20Z")

</div>

HI. I am trying to get screen coordinates from vertices of an imported .obj file however it seems tricky. I have used screenX(x,y,z) and screenY(x,y,z) but the problem is that these are affected by translations and rot…

---

## [Changing Icon of pre-exported file](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532)

<div class="topic-metadata">

**Author:** [@KittyCatGamer123](https://discourse.processing.org/u/KittyCatGamer123)\
**Replies:** 6\
**Last updated:** [August 10, 2018, 9:19pm UTC](https://discourse.processing.org/t/changing-icon-of-pre-exported-file/2532 "2018-08-10T21:19:14Z")

</div>

Hello. I was wondering how to change the icon of your file. MUST BE IN CODE!! MUST BE FOR PROCESSING 3!! Thanks guys KittyCatGamer123 :wink:

---

## [What does if(!VARIABLE.equalsVARIABLE) mean?](https://discourse.processing.org/t/what-does-if-variable-equalsvariable-mean/2541)

<div class="topic-metadata">

**Author:** [@B4ko](https://discourse.processing.org/u/B4ko)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 8:56pm UTC](https://discourse.processing.org/t/what-does-if-variable-equalsvariable-mean/2541 "2018-08-10T20:56:52Z")

</div>

Hey everyone! Can someone help me understand the below code? buttonOneText buttonTwoText levelNumber are all variables I declared earlier if (!buttonTwoText\[levelNumber\].equals(buttonOneText\[levelNumber\])) In short…

---

## [Help with following code](https://discourse.processing.org/t/help-with-following-code/2448)

<div class="topic-metadata">

**Author:** [@KittyCatGamer123](https://discourse.processing.org/u/KittyCatGamer123)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 7:53pm UTC](https://discourse.processing.org/t/help-with-following-code/2448 "2018-08-10T19:53:50Z")

</div>

I’m hoping anyone here could help me with this code. String gameIntro; void setup() { size(800, 600); String save = loadStrings(“save1.txt”); println(save); gameIntro = save\[0\]; } void draw() { if (gameIntro ==…

---

## [Data visualization with own images](https://discourse.processing.org/t/data-visualization-with-own-images/2452)

<div class="topic-metadata">

**Author:** [@wrdy28](https://discourse.processing.org/u/wrdy28)\
**Replies:** 20\
**Last updated:** [August 10, 2018, 7:51pm UTC](https://discourse.processing.org/t/data-visualization-with-own-images/2452 "2018-08-10T19:51:29Z")

</div>

Dear community! Maybe you could help me? So I have 5 different emotions that have values from 0 till 100 percent. I would like to make a vizualisation for this data, like: If “EMOTION” from 0 till 10 percent - image …

---

## [Return function from float\[\] array](https://discourse.processing.org/t/return-function-from-float-array/2519)

<div class="topic-metadata">

**Author:** [@Olygamy](https://discourse.processing.org/u/Olygamy)\
**Replies:** 4\
**Last updated:** [August 10, 2018, 4:27pm UTC](https://discourse.processing.org/t/return-function-from-float-array/2519 "2018-08-10T16:27:36Z")

</div>

Hi there, I am stuck on a return function. I have a triangle, each corner is defined by pair of float \[\] arrays: float\[\] xArray = new float\[3\]; float\[\] yArray = new float\[3\] - all in the class to contstruct the tria…

---

## [Reflections and console](https://discourse.processing.org/t/reflections-and-console/2525)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 3\
**Last updated:** [August 10, 2018, 9:25am UTC](https://discourse.processing.org/t/reflections-and-console/2525 "2018-08-10T09:25:51Z")

</div>

Hello, I’ve made this in c# before and I’d like to know, how to do this in Java. I have a set of commands with arguments i.e. //Command: "set var \<string:name\> \<int:value\> \<bool:log\>" string\[\] commandName = new string…

---

## [Dilation of line or object](https://discourse.processing.org/t/dilation-of-line-or-object/2520)

<div class="topic-metadata">

**Author:** [@rebin](https://discourse.processing.org/u/rebin)\
**Replies:** 2\
**Last updated:** [August 10, 2018, 5:11am UTC](https://discourse.processing.org/t/dilation-of-line-or-object/2520 "2018-08-10T05:11:39Z")

</div>

Let say we have a line or a shape I need to dilate that shape. Do we have any way to do this in processing? for example, I have this code: void setup(){ size(500,500); background(20); } float theta=0; void draw(){…

---

## [Converted Processing to P5.js but its still not working](https://discourse.processing.org/t/converted-processing-to-p5-js-but-its-still-not-working/2521)

<div class="topic-metadata">

**Author:** [@dnganeko](https://discourse.processing.org/u/dnganeko)\
**Replies:** 5\
**Last updated:** [August 10, 2018, 4:19am UTC](https://discourse.processing.org/t/converted-processing-to-p5-js-but-its-still-not-working/2521 "2018-08-10T04:19:26Z")

</div>

Hi there, I have tried to convert these two sketches to P5.js but it still doesn’t seem to work. I’m new to it all so can figure out what else needs to be changed. Can someone please help. :slight\_smile: Sketch 1. v…

---

## [Array of keys. Movement](https://discourse.processing.org/t/array-of-keys-movement/2518)

<div class="topic-metadata">

**Author:** [@Tymek](https://discourse.processing.org/u/Tymek)\
**Replies:** 2\
**Last updated:** [August 9, 2018, 11:12pm UTC](https://discourse.processing.org/t/array-of-keys-movement/2518 "2018-08-09T23:12:35Z")

</div>

Hello, what is wrong with this code? Why player (black square) wont move in 4 directions, but only in 2. Postac postac = new Postac(); boolean\[\] chodzenie = new boolean\[4\]; //UP DOWN LEFT RIGHT /\* …

---

## [2 sided transparency](https://discourse.processing.org/t/2-sided-transparency/2471)

<div class="topic-metadata">

**Author:** [@filarius](https://discourse.processing.org/u/filarius)\
**Replies:** 8\
**Last updated:** [August 9, 2018, 10:56am UTC](https://discourse.processing.org/t/2-sided-transparency/2471 "2018-08-09T10:56:55Z")

</div>

I want to make dynamic visualization where I need to use cube made of as many as possible smaller cubes with controlled color and opacity. It will be somekind of voxel cloud. I’m new to Processing but I have some knowl…

---

## [How to reset a sketch after a certain amount of time?](https://discourse.processing.org/t/how-to-reset-a-sketch-after-a-certain-amount-of-time/2499)

<div class="topic-metadata">

**Author:** [@stonesyy](https://discourse.processing.org/u/stonesyy)\
**Replies:** 1\
**Last updated:** [August 9, 2018, 4:10am UTC](https://discourse.processing.org/t/how-to-reset-a-sketch-after-a-certain-amount-of-time/2499 "2018-08-09T04:10:07Z")

</div>

Hello everyone, I’ve been trying to get a sketch to reset after one minute using millis in the code but i’m having a hard time figuring it out. Does anyone have any ideas? void setup() { zoom = 6; ss = int(1280/zoo…

---

## [How to receive user input in processing](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449)

<div class="topic-metadata">

**Author:** [@Danny\_Posada](https://discourse.processing.org/u/Danny_Posada)\
**Replies:** 4\
**Last updated:** [August 8, 2018, 10:23pm UTC](https://discourse.processing.org/t/how-to-receive-user-input-in-processing/2449 "2018-08-08T22:23:23Z")

</div>

Recently I’ve been trying to find a way to have a user input some information into the program without having to alter the source code, but I have yet to find a solid answer online. I use java, so i’m not sure if that’s …

---

## [Camera following a "path"](https://discourse.processing.org/t/camera-following-a-path/2468)

<div class="topic-metadata">

**Author:** [@marcoctn](https://discourse.processing.org/u/marcoctn)\
**Replies:** 0\
**Last updated:** [August 8, 2018, 9:15am UTC](https://discourse.processing.org/t/camera-following-a-path/2468 "2018-08-08T09:15:00Z")

</div>

Good morning all, this is my first post :slight\_smile: I have what I hope is a simple question. In the code below, I made a 3d tunnel with a camera that goes in it. if I want to make the tunnel curve, how can I have t…

---

## [Button Function Problem](https://discourse.processing.org/t/button-function-problem/2445)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 11\
**Last updated:** [August 8, 2018, 8:23am UTC](https://discourse.processing.org/t/button-function-problem/2445 "2018-08-08T08:23:57Z")

</div>

I am having trouble making a button function. The problem that I am having is that the “Value” that I put in the function won’t change to “ChangeToThisValue” if the conditions are correct. For example if conditions are c…

---

## [Show Image in P3D space?](https://discourse.processing.org/t/show-image-in-p3d-space/2419)

<div class="topic-metadata">

**Author:** [@Mandelbrot](https://discourse.processing.org/u/Mandelbrot)\
**Replies:** 8\
**Last updated:** [August 7, 2018, 4:50pm UTC](https://discourse.processing.org/t/show-image-in-p3d-space/2419 "2018-08-07T16:50:41Z")

</div>

I have a P3D window in full screen mode: fullScreen(P3D). I am rotating a 3d model around, and would like to overlay an image over the screen, so that it is always on top of all elements. How can I do this? I’ve tried j…

---

## [Drawing a radar with CSV file reading error](https://discourse.processing.org/t/drawing-a-radar-with-csv-file-reading-error/2441)

<div class="topic-metadata">

**Author:** [@Charlie](https://discourse.processing.org/u/Charlie)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 3:42pm UTC](https://discourse.processing.org/t/drawing-a-radar-with-csv-file-reading-error/2441 "2018-08-07T15:42:18Z")

</div>

Hi! Nowadays I’m trying to draw radar with csv file. csv file format is like (date, x, y) example : 181743,78,152 181744,123,512 181745,126,341 181746,153,153 181747,173,175 and so on This is my code float a; …

---

## [Python code conversion to processing Java](https://discourse.processing.org/t/python-code-conversion-to-processing-java/2438)

<div class="topic-metadata">

**Author:** [@fun](https://discourse.processing.org/u/fun)\
**Replies:** 7\
**Last updated:** [August 7, 2018, 1:52pm UTC](https://discourse.processing.org/t/python-code-conversion-to-processing-java/2438 "2018-08-07T13:52:45Z")

</div>

I have been fighting with some python code I found on the web, and I dont get it. How can I do this in Processing / Java ? Interesting webpage with super ideas: There is a nice kind of step sorting, that kind of doe…

---

## [Assigning colours to data in 2D array](https://discourse.processing.org/t/assigning-colours-to-data-in-2d-array/2411)

<div class="topic-metadata">

**Author:** [@santamagica](https://discourse.processing.org/u/santamagica)\
**Replies:** 5\
**Last updated:** [August 7, 2018, 9:45am UTC](https://discourse.processing.org/t/assigning-colours-to-data-in-2d-array/2411 "2018-08-07T09:45:45Z")

</div>

Hello all, For a geographical project I want to assign colours to data stored in a 2D array. I tried many things. I think I am just missing one small line of code, but I just can’t get my head around it. This is the cod…

---

## [Sketch not working after upgrade to High Sierra](https://discourse.processing.org/t/sketch-not-working-after-upgrade-to-high-sierra/2425)

<div class="topic-metadata">

**Author:** [@egorozpe](https://discourse.processing.org/u/egorozpe)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 6:38am UTC](https://discourse.processing.org/t/sketch-not-working-after-upgrade-to-high-sierra/2425 "2018-08-07T06:38:47Z")

</div>

I have a sketch that I use for mapping urban space, which shows in the background some photos named C\_0001, C\_0002, and so on. It is setup to show the images in the normal order (1,2,3,4 etc.) It was working just fine un…

---

## [Moving text with regular updates](https://discourse.processing.org/t/moving-text-with-regular-updates/257)

<div class="topic-metadata">

**Author:** [@LindowMan](https://discourse.processing.org/u/LindowMan)\
**Replies:** 3\
**Last updated:** [August 7, 2018, 1:29am UTC](https://discourse.processing.org/t/moving-text-with-regular-updates/257 "2018-08-07T01:29:46Z")

</div>

Hello! So, fairly new to processing here. I am working on a school project now where I need text (the text is coming from a csv-file) to appear and stay on screen. In regular intervals, the text drops down (30 pixels …

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=177)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=179)
