# Coding Questions

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

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

**Page:** 176

---

## [How to auto read and print the extra word from the updating text which can auto save](https://discourse.processing.org/t/how-to-auto-read-and-print-the-extra-word-from-the-updating-text-which-can-auto-save/3094)

<div class="topic-metadata">

**Author:** [@Iris](https://discourse.processing.org/u/Iris)\
**Replies:** 5\
**Last updated:** [September 7, 2018, 4:40am UTC](https://discourse.processing.org/t/how-to-auto-read-and-print-the-extra-word-from-the-updating-text-which-can-auto-save/3094 "2018-09-07T04:40:42Z")

</div>

at first I load string in setup and because every time I need to loadstring ,so I write in draw function too, and code below, but there are the problem ,null pointerException.seems like sometimes there are null in the a…

---

## [Point-Triangle Collision](https://discourse.processing.org/t/point-triangle-collision/3187)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 6\
**Last updated:** [September 6, 2018, 11:56pm UTC](https://discourse.processing.org/t/point-triangle-collision/3187 "2018-09-06T23:56:12Z")

</div>

I am creating a 3D engine that does not use wireframe, but rendering the triangles Is the problem! I have seen other code but I don’t understand it. https://www.openprocessing.org/sketch/6380#

---

## [Snmp processing](https://discourse.processing.org/t/snmp-processing/3335)

<div class="topic-metadata">

**Author:** [@tm7677](https://discourse.processing.org/u/tm7677)\
**Replies:** 0\
**Last updated:** [September 6, 2018, 11:55pm UTC](https://discourse.processing.org/t/snmp-processing/3335 "2018-09-06T23:55:54Z")

</div>

Does any have any experience using Processing to utilize snmp data for network and device monitoring?

---

## [Grafica using A TON of memory](https://discourse.processing.org/t/grafica-using-a-ton-of-memory/3300)

<div class="topic-metadata">

**Author:** [@Tglaser92](https://discourse.processing.org/u/Tglaser92)\
**Replies:** 6\
**Last updated:** [September 6, 2018, 10:09pm UTC](https://discourse.processing.org/t/grafica-using-a-ton-of-memory/3300 "2018-09-06T22:09:34Z")

</div>

Hello everybody, I’ve built a simple GUI in processing (P3) to show some sensor data in near real-time and have hit a bit of a snag with Grafica. I’m plotting three values over a 25 point span and it quickly (20s) uses…

---

## [Image texture on a softbody](https://discourse.processing.org/t/image-texture-on-a-softbody/3193)

<div class="topic-metadata">

**Author:** [@Adrien](https://discourse.processing.org/u/Adrien)\
**Replies:** 3\
**Last updated:** [September 5, 2018, 1:18pm UTC](https://discourse.processing.org/t/image-texture-on-a-softbody/3193 "2018-09-05T13:18:56Z")

</div>

Hi, I want to make a image fly like an paper blow by the wind… Do you know if it’s possible to apply a texture on a softbody, for exemple using pixelflow lib? Thanks! A.

---

## [Minim on Raspberry Pi loadFile problems](https://discourse.processing.org/t/minim-on-raspberry-pi-loadfile-problems/3140)

<div class="topic-metadata">

**Author:** [@dislexigon](https://discourse.processing.org/u/dislexigon)\
**Replies:** 10\
**Last updated:** [September 4, 2018, 9:25pm UTC](https://discourse.processing.org/t/minim-on-raspberry-pi-loadfile-problems/3140 "2018-09-04T21:25:54Z")

</div>

Hey everyone, I’m having some problems loading files using the Minim library on a Raspberry Pi. If I comment out the loading of any one file, and the call of the associated function “playFile()” in the “draw()” loop, t…

---

## [Stretching and tinting an object](https://discourse.processing.org/t/stretching-and-tinting-an-object/3050)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 2\
**Last updated:** [September 4, 2018, 5:55pm UTC](https://discourse.processing.org/t/stretching-and-tinting-an-object/3050 "2018-09-04T17:55:15Z")

</div>

Hello Processors, thank you for your time. I have a video object that bounces around and I program it so that when you mousePressed on either of its iterations it stretches but the mouse arrow moves awkwardly to the 0,0 …

---

## [Collision with Gravity](https://discourse.processing.org/t/collision-with-gravity/3089)

<div class="topic-metadata">

**Author:** [@Manatee](https://discourse.processing.org/u/Manatee)\
**Replies:** 10\
**Last updated:** [September 4, 2018, 2:13pm UTC](https://discourse.processing.org/t/collision-with-gravity/3089 "2018-09-04T14:13:58Z")

</div>

Hi all! Im here again looking for help from you super genius :smiley: Im building a mini (Ztupid) game so I can learn some physics object with PVector and Collision in 2D dimension. The game is pretty simple, There is…

---

## [Simple filling issue](https://discourse.processing.org/t/simple-filling-issue/3171)

<div class="topic-metadata">

**Author:** [@Rennorb](https://discourse.processing.org/u/Rennorb)\
**Replies:** 2\
**Last updated:** [September 3, 2018, 3:41pm UTC](https://discourse.processing.org/t/simple-filling-issue/3171 "2018-09-03T15:41:36Z")

</div>

Hi. I have tried to write a really simple board game, but the simplest code just refused to work. Here is the full code int cell = 30; int W = 1; int B = -W; int E = 0; int selectorX = -1; int selectorY = -1; int \[\]…

---

## [Background overwriting character](https://discourse.processing.org/t/background-overwriting-character/3234)

<div class="topic-metadata">

**Author:** [@Hedgy](https://discourse.processing.org/u/Hedgy)\
**Replies:** 2\
**Last updated:** [September 3, 2018, 8:56pm UTC](https://discourse.processing.org/t/background-overwriting-character/3234 "2018-09-03T20:56:13Z")

</div>

Hey all, I currently am trying to make a zelda like game. Right now I am working on the character. Currently, I have the background being drawn over the character. Here’s a gif of what I mean: https://gph.is/2oCQdmk And…

---

## [Triangle is Moving but is getting Bigger as it moves](https://discourse.processing.org/t/triangle-is-moving-but-is-getting-bigger-as-it-moves/3205)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 6:02pm UTC](https://discourse.processing.org/t/triangle-is-moving-but-is-getting-bigger-as-it-moves/3205 "2018-09-03T18:02:40Z")

</div>

I’m having trouble getting my triangle to stop getting bigger as it moves, any suggestions? float xa=30; float ya=75; float xb=58; float yb=20; float xc=86; float yc=75; float xSpeed=10; float ySpeed=10; void setup(){ …

---

## [Variable/Logic Help: Slot Machine Project - Recognize 3 matching images?](https://discourse.processing.org/t/variable-logic-help-slot-machine-project-recognize-3-matching-images/3198)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 10\
**Last updated:** [September 3, 2018, 5:17pm UTC](https://discourse.processing.org/t/variable-logic-help-slot-machine-project-recognize-3-matching-images/3198 "2018-09-03T17:17:42Z")

</div>

Hello Processing Forum, I am working on a project that is similar to a slot-machine. I am running 3 rows of images (animated gifs and I am stumped on whether I can construct a line of code in my current code logic that …

---

## [Spritesheet/cutting an image](https://discourse.processing.org/t/spritesheet-cutting-an-image/3174)

<div class="topic-metadata">

**Author:** [@Hedgy](https://discourse.processing.org/u/Hedgy)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 3:51pm UTC](https://discourse.processing.org/t/spritesheet-cutting-an-image/3174 "2018-09-03T15:51:58Z")

</div>

I have a spritesheet for a character and i’d like to be able to split it up in processing. Any way possible?

---

## [How I can do score](https://discourse.processing.org/t/how-i-can-do-score/3223)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.processing.org/u/Pedro)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 11:17am UTC](https://discourse.processing.org/t/how-i-can-do-score/3223 "2018-09-03T11:17:41Z")

</div>

Hello, I’m doing a game and I’m new to Processing, I’ve done this,I’ve been looking for videos, in forums and nothing, I’m having problems in the score, every time I give it where it has to add +1, it adds much more. PI…

---

## [Working with other character sets/UTF-8 on windows?](https://discourse.processing.org/t/working-with-other-character-sets-utf-8-on-windows/3157)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 1\
**Last updated:** [September 3, 2018, 4:45am UTC](https://discourse.processing.org/t/working-with-other-character-sets-utf-8-on-windows/3157 "2018-09-03T04:45:47Z")

</div>

void setup(){ println("тестирование"); } this also does not work PrintStream out = null; try { out = new PrintStream(System.out, true, "UTF-8"); out.println("тестирование"); } catch (Exception e) { …

---

## [Questions about my Color Array](https://discourse.processing.org/t/questions-about-my-color-array/3110)

<div class="topic-metadata">

**Author:** [@Benjamin](https://discourse.processing.org/u/Benjamin)\
**Replies:** 5\
**Last updated:** [September 3, 2018, 4:30am UTC](https://discourse.processing.org/t/questions-about-my-color-array/3110 "2018-09-03T04:30:00Z")

</div>

Hi, I’m new to programming and have a few questions about a small piece of code that I am currently writing in Processing 3. So at the moment I have an array with four different colors in it that represent the four diffe…

---

## [Rotating PMatrix3D around axis](https://discourse.processing.org/t/rotating-pmatrix3d-around-axis/3190)

<div class="topic-metadata">

**Author:** [@bontempos](https://discourse.processing.org/u/bontempos)\
**Replies:** 4\
**Last updated:** [September 3, 2018, 2:12am UTC](https://discourse.processing.org/t/rotating-pmatrix3d-around-axis/3190 "2018-09-03T02:12:32Z")

</div>

I wanted to make the black line to spin on a plane formed by 2 vectors (a2, b2) (and the origin). I am trying to rotate a matrix around the cross product btw a2 and b2 (green line) using the rotate (angle, v0, v1, v2) me…

---

## [Change rgb pixel color when overllaping](https://discourse.processing.org/t/change-rgb-pixel-color-when-overllaping/3180)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 10\
**Last updated:** [September 3, 2018, 1:20am UTC](https://discourse.processing.org/t/change-rgb-pixel-color-when-overllaping/3180 "2018-09-03T01:20:05Z")

</div>

Hello everyone, I wrote a well commented code. I want to change the color of an object but only the part that is overlapping with a shape (rectangle). Please help me, thank you for your time. import processing.video.\*; …

---

## [Dropping objects](https://discourse.processing.org/t/dropping-objects/3114)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 3\
**Last updated:** [September 2, 2018, 11:05pm UTC](https://discourse.processing.org/t/dropping-objects/3114 "2018-09-02T23:05:21Z")

</div>

Hello Processors, thank you for your time. I have an array of object moving on their y axes until a certain “ground” point. It works fine, but when I scale the objects to be different sizes the objects don’t stop exactly…

---

## [Change shape by sound input](https://discourse.processing.org/t/change-shape-by-sound-input/2877)

<div class="topic-metadata">

**Author:** [@kiraw](https://discourse.processing.org/u/kiraw)\
**Replies:** 8\
**Last updated:** [September 2, 2018, 10:19pm UTC](https://discourse.processing.org/t/change-shape-by-sound-input/2877 "2018-09-02T22:19:05Z")

</div>

Hey, after my first problem get solved here, I hope someone can help me again. :slight\_smile: I want the shape (as you can hopefully see on the picture) is changing by sound input. When the sound is loud, the shape shou…

---

## [How to make a custom event](https://discourse.processing.org/t/how-to-make-a-custom-event/3161)

<div class="topic-metadata">

**Author:** [@LazyDk](https://discourse.processing.org/u/LazyDk)\
**Replies:** 9\
**Last updated:** [September 2, 2018, 5:49pm UTC](https://discourse.processing.org/t/how-to-make-a-custom-event/3161 "2018-09-02T17:49:27Z")

</div>

Hey there, I’m currently making a small game and I wanted to implement different screens so I would have a Main Screen, a Settings Screen, and a Game Screen. So first I wanted to set up the main screen and it would cont…

---

## [Delta operators, and magicaly changing PVectors](https://discourse.processing.org/t/delta-operators-and-magicaly-changing-pvectors/3189)

<div class="topic-metadata">

**Author:** [@BodaciousBrian](https://discourse.processing.org/u/BodaciousBrian)\
**Replies:** 3\
**Last updated:** [September 2, 2018, 4:13pm UTC](https://discourse.processing.org/t/delta-operators-and-magicaly-changing-pvectors/3189 "2018-09-02T16:13:52Z")

</div>

Solution at the bottom of post, but I can’t offer an explanation! I’m trying to make a delta operator to keep track of change in velocity, and I encountered something I have never seen in any language before. I store o…

---

## [Width and height return 0](https://discourse.processing.org/t/width-and-height-return-0/3177)

<div class="topic-metadata">

**Author:** [@BodaciousBrian](https://discourse.processing.org/u/BodaciousBrian)\
**Replies:** 3\
**Last updated:** [September 2, 2018, 3:30am UTC](https://discourse.processing.org/t/width-and-height-return-0/3177 "2018-09-02T03:30:05Z")

</div>

The following code, will always return x and y as 0… if I change displayWidth to width, it still returns 0. I’m using the apde editor on an s8+. How can I find the center of the display? (The +50 is there so I can see…

---

## [Retrieve Vertex Postion after Vertex Shader](https://discourse.processing.org/t/retrieve-vertex-postion-after-vertex-shader/3123)

<div class="topic-metadata">

**Author:** [@jitterhorse](https://discourse.processing.org/u/jitterhorse)\
**Replies:** 7\
**Last updated:** [September 1, 2018, 11:22am UTC](https://discourse.processing.org/t/retrieve-vertex-postion-after-vertex-shader/3123 "2018-09-01T11:22:01Z")

</div>

Hi lovely Processing people, is there a way (f.e. with low level GL) to retrieve Vertex Positions of an Object after they are displaced by a vertex shader? //this displaces vertex shader(displace); shape(object); //ho…

---

## [Color from FFT center frequency and its amplitude](https://discourse.processing.org/t/color-from-fft-center-frequency-and-its-amplitude/2050)

<div class="topic-metadata">

**Author:** [@vedro](https://discourse.processing.org/u/vedro)\
**Replies:** 2\
**Last updated:** [September 1, 2018, 6:41am UTC](https://discourse.processing.org/t/color-from-fft-center-frequency-and-its-amplitude/2050 "2018-09-01T06:41:24Z")

</div>

Hello This is my first post. I am trying to do a project with a variant of “sound painting” with a theremin. Let me explain a bit. The basic idea is to acquire sound from a theremin (with a microphone), then perform a F…

---

## [Creating complex gravity bouncing objects](https://discourse.processing.org/t/creating-complex-gravity-bouncing-objects/3162)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [September 1, 2018, 3:23am UTC](https://discourse.processing.org/t/creating-complex-gravity-bouncing-objects/3162 "2018-09-01T03:23:22Z")

</div>

Hello Processors, please help me figure what to do. I want video objects to bounce off the window edges and collide between them. The issue I am having is that I want the objects to have random sizes. this is messing eve…

---

## [Adding a new shape in the orbit](https://discourse.processing.org/t/adding-a-new-shape-in-the-orbit/3091)

<div class="topic-metadata">

**Author:** [@Kirrat](https://discourse.processing.org/u/Kirrat)\
**Replies:** 5\
**Last updated:** [August 31, 2018, 5:44am UTC](https://discourse.processing.org/t/adding-a-new-shape-in-the-orbit/3091 "2018-08-31T05:44:06Z")

</div>

Hi i’m trying to make the shapes move in an orbit below whenever any of the shapes is clicked above. It’s pretty much happening if you run the code below. The problem is that when ever a new shape is clicked the previou…

---

## [Not Able to Render Multiple Shapes](https://discourse.processing.org/t/not-able-to-render-multiple-shapes/3047)

<div class="topic-metadata">

**Author:** [@kokomoko](https://discourse.processing.org/u/kokomoko)\
**Replies:** 6\
**Last updated:** [August 30, 2018, 12:00am UTC](https://discourse.processing.org/t/not-able-to-render-multiple-shapes/3047 "2018-08-30T00:00:45Z")

</div>

OK guys, I have been using P3D and I’m trying to render multiple minecraft grass blocks using a for loop. I have a for loop in draw that runs this function, increasing x each iteration: void makeTexturedCube(PImage pix,…

---

## [Random x placement and proportional scaling](https://discourse.processing.org/t/random-x-placement-and-proportional-scaling/3102)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 5\
**Last updated:** [August 29, 2018, 10:11pm UTC](https://discourse.processing.org/t/random-x-placement-and-proportional-scaling/3102 "2018-08-29T22:11:07Z")

</div>

Hello Processors, thank you for your time. I am trying to place video-objects along the same y height but random x position, it works but it moves non stop. Also I am trying to scale, proportionally the object using the …

---

## [PImage Arrays and auto scrolling photo strip](https://discourse.processing.org/t/pimage-arrays-and-auto-scrolling-photo-strip/3074)

<div class="topic-metadata">

**Author:** [@ChrisTMChen](https://discourse.processing.org/u/ChrisTMChen)\
**Replies:** 3\
**Last updated:** [August 29, 2018, 3:50pm UTC](https://discourse.processing.org/t/pimage-arrays-and-auto-scrolling-photo-strip/3074 "2018-08-29T15:50:27Z")

</div>

Hi everyone! New member to the forum here (and processing). So thank you in advance to whoever might be able to help out. I’m working towards a bigger coding project for developing a photo projection installation, and …

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

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