# Processing

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

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

**Page:** 250

---

## [Recreating that Joy Division album cover](https://discourse.processing.org/t/recreating-that-joy-division-album-cover/16444)

<div class="topic-metadata">

**Author:** [@dalphabet](https://discourse.processing.org/u/dalphabet)\
**Replies:** 8\
**Last updated:** [December 16, 2019, 7:16pm UTC](https://discourse.processing.org/t/recreating-that-joy-division-album-cover/16444 "2019-12-16T19:16:24Z")

</div>

I found an Openprocessing code of an album cover of Joy Division’s ‘Unknown Pleasures’. The code was originally written by Craig S. Kaplan. So overwhelmed by the beauty of it, I attempted to translate this to pde. Howeve…

---

## [Processing Sketch Ideas?](https://discourse.processing.org/t/processing-sketch-ideas/874)

<div class="topic-metadata">

**Author:** [@Trilobyte](https://discourse.processing.org/u/Trilobyte)\
**Replies:** 5\
**Last updated:** [December 16, 2019, 7:08pm UTC](https://discourse.processing.org/t/processing-sketch-ideas/874 "2019-12-16T19:08:50Z")

</div>

Hello! My name is Trilobyte, and right now, I am at a loss for ideas. I’ve got some projects kicking around, but a lot of the time, I like starting some long projects that I can come back to every now and then. I also h…

---

## [Problem with "splitscreen" in one window](https://discourse.processing.org/t/problem-with-splitscreen-in-one-window/16418)

<div class="topic-metadata">

**Author:** [@Zerichy](https://discourse.processing.org/u/Zerichy)\
**Replies:** 4\
**Last updated:** [December 16, 2019, 2:09pm UTC](https://discourse.processing.org/t/problem-with-splitscreen-in-one-window/16418 "2019-12-16T14:09:38Z")

</div>

Hello, i wanted to do the mandelbrot/julia set challenge from codingtrain that these two fractals are in one window and you can hover over the mandelbrot set and see the corresponding julia set next to it change (like he…

---

## [Giving wrong value while reading data from serial port](https://discourse.processing.org/t/giving-wrong-value-while-reading-data-from-serial-port/16447)

<div class="topic-metadata">

**Author:** [@iamgsshetty](https://discourse.processing.org/u/iamgsshetty)\
**Replies:** 3\
**Last updated:** [December 16, 2019, 1:14pm UTC](https://discourse.processing.org/t/giving-wrong-value-while-reading-data-from-serial-port/16447 "2019-12-16T13:14:48Z")

</div>

processing code:- import processing.serial.\*; Serial myport; float v1,v2,a,cda=0.0,how=0.0,water=0.0; void setup() { myport = new Serial(this, Serial.list()\[0\], 9600); } void draw() { if(0\<myport.available()) …

---

## [Making the game Crossy Road](https://discourse.processing.org/t/making-the-game-crossy-road/16438)

<div class="topic-metadata">

**Author:** [@TigerClaw](https://discourse.processing.org/u/TigerClaw)\
**Replies:** 4\
**Last updated:** [December 16, 2019, 12:55pm UTC](https://discourse.processing.org/t/making-the-game-crossy-road/16438 "2019-12-16T12:55:32Z")

</div>

Hi my name is Kai and i have a final assignment in my computer science class and i need help making the game crossy road. I have a 57 in the class right now and I need to get a 60 to pass can some please help me. Require…

---

## [Complex variables](https://discourse.processing.org/t/complex-variables/16349)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 11\
**Last updated:** [December 16, 2019, 11:46am UTC](https://discourse.processing.org/t/complex-variables/16349 "2019-12-16T11:46:05Z")

</div>

Hi guys, I’m trying to put all this code in a variable, but I don’t know how to do it. I mean, I only know how to do simple variables, but not variables that have many lines. Can you help my? I need to create a variabl…

---

## [New to processing (centipede) stuck on tail](https://discourse.processing.org/t/new-to-processing-centipede-stuck-on-tail/16324)

<div class="topic-metadata">

**Author:** [@crazybob5](https://discourse.processing.org/u/crazybob5)\
**Replies:** 7\
**Last updated:** [December 16, 2019, 10:09am UTC](https://discourse.processing.org/t/new-to-processing-centipede-stuck-on-tail/16324 "2019-12-16T10:09:48Z")

</div>

Im fairly new to processing and im working on doing a basic game but im stuck on adding a tail to the centipede. float x = 0; float y = 0; float spacing = 50; float positiex = 200; float positiey = 200; void setup() …

---

## [Trying to understand the "Substrate" algorithm](https://discourse.processing.org/t/trying-to-understand-the-substrate-algorithm/3031)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 16\
**Last updated:** [December 16, 2019, 9:41am UTC](https://discourse.processing.org/t/trying-to-understand-the-substrate-algorithm/3031 "2019-12-16T09:41:34Z")

</div>

Dear all, I would really appreciate if someone could help me decipher some parts of Jared Tarbell’s “substrate” algorithm. For those who are not familiar with this famous sketch, here is a recap in Tarbell’s own words: …

---

## [Making a shadowcaster](https://discourse.processing.org/t/making-a-shadowcaster/16432)

<div class="topic-metadata">

**Author:** [@Wattscanaan10](https://discourse.processing.org/u/Wattscanaan10)\
**Replies:** 1\
**Last updated:** [December 16, 2019, 2:16am UTC](https://discourse.processing.org/t/making-a-shadowcaster/16432 "2019-12-16T02:16:55Z")

</div>

So im trying to write a 2d raycaster for the first time, and im having trouble only drawing lines to the closest walls. i cant find what to do next Code: Source source; Ray ray; Wall\[\] walls = new Wall\[2\]; void setup(…

---

## [Making a spiral shooting enemy](https://discourse.processing.org/t/making-a-spiral-shooting-enemy/16411)

<div class="topic-metadata">

**Author:** [@davidclue](https://discourse.processing.org/u/davidclue)\
**Replies:** 9\
**Last updated:** [December 16, 2019, 1:45am UTC](https://discourse.processing.org/t/making-a-spiral-shooting-enemy/16411 "2019-12-16T01:45:34Z")

</div>

Hi I was wondering on how to make an enemy shoot in a spiral way around the screen. BasicEnemy(float tempX, float tempY, int tempXdir, int tempYdir, int tempSize, float tempSpeed, float tempDamage) Thats the constructo…

---

## [Editor starts, programs (sketches) won't run](https://discourse.processing.org/t/editor-starts-programs-sketches-wont-run/16237)

<div class="topic-metadata">

**Author:** [@OldNick](https://discourse.processing.org/u/OldNick)\
**Replies:** 11\
**Last updated:** [December 16, 2019, 1:00am UTC](https://discourse.processing.org/t/editor-starts-programs-sketches-wont-run/16237 "2019-12-16T01:00:57Z")

</div>

Hello all, I’m new to this forum. Processing 3.3.7 & 3.5.3 on Windows 10 home x64. I had used Processing quite some time ago, and everything worked fine, but now → see title. The editor works, I can load, save and edi…

---

## [Help with Processing projects (Post 2 of 2)](https://discourse.processing.org/t/help-with-processing-projects-post-2-of-2/16436)

<div class="topic-metadata">

**Author:** [@ImConfused](https://discourse.processing.org/u/ImConfused)\
**Replies:** 2\
**Last updated:** [December 15, 2019, 11:41pm UTC](https://discourse.processing.org/t/help-with-processing-projects-post-2-of-2/16436 "2019-12-15T23:41:51Z")

</div>

I have no idea how to set it up

---

## [OutOfMemoryError when loading images at startup of sketch](https://discourse.processing.org/t/outofmemoryerror-when-loading-images-at-startup-of-sketch/16429)

<div class="topic-metadata">

**Author:** [@Tim076](https://discourse.processing.org/u/Tim076)\
**Replies:** 2\
**Last updated:** [December 15, 2019, 11:01pm UTC](https://discourse.processing.org/t/outofmemoryerror-when-loading-images-at-startup-of-sketch/16429 "2019-12-15T23:01:39Z")

</div>

Hi all, My sketch throws an OutOfMemoryError when I try to run it. However I only try to load in a total of 9 images with a combined size of 5 MB. I also only call loadImage in setup so I’m not constantly loading images…

---

## [Resize Processing canvas in JavaFX window](https://discourse.processing.org/t/resize-processing-canvas-in-javafx-window/16353)

<div class="topic-metadata">

**Author:** [@Ackados](https://discourse.processing.org/u/Ackados)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 6:03pm UTC](https://discourse.processing.org/t/resize-processing-canvas-in-javafx-window/16353 "2019-12-15T18:03:23Z")

</div>

I am wondering how I can resize the processing canvas that’s contained in my JavaFX app. Processing.java: @Override public void settings() { size(0,0,FX2D); fullScreen(); } @Override …

---

## [Changing the colour of an SVG file?](https://discourse.processing.org/t/changing-the-colour-of-an-svg-file/16338)

<div class="topic-metadata">

**Author:** [@B\_s](https://discourse.processing.org/u/B_s)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 5:47pm UTC](https://discourse.processing.org/t/changing-the-colour-of-an-svg-file/16338 "2019-12-15T17:47:34Z")

</div>

Hi, I am trying to the change the colour of an svg file. I have been able to do this however it also changes the colour of some rectangle which I’m not sure why it is there. Here is a screenshot of what it looks like. Ba…

---

## [@Chrisir Clipboard functionality](https://discourse.processing.org/t/chrisir-clipboard-functionality/16421)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 5:12pm UTC](https://discourse.processing.org/t/chrisir-clipboard-functionality/16421 "2019-12-15T17:12:29Z")

</div>

Struggling a bit with some code you posted original post: // https: // forum.processing.org/two/discussion/27473/paste-and-copy-text#latest // https: // forum.processing.org/two/discussion/17270/why-this-getx-method-…

---

## [Problem in coding can't understand it](https://discourse.processing.org/t/problem-in-coding-cant-understand-it/16363)

<div class="topic-metadata">

**Author:** [@NourAdel205](https://discourse.processing.org/u/NourAdel205)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 8:54am UTC](https://discourse.processing.org/t/problem-in-coding-cant-understand-it/16363 "2019-12-15T08:54:47Z")

</div>

so i coded this to allow me to make planets around the sun but it gives me error THE CODE:- planet sun; planet earth; void setup(){ size (1000,1000); sun= new planet(width/2,height/2,40,#FFBC13); earth=new planet…

---

## [Cannot make a static reference to the non-static field Bee.pos](https://discourse.processing.org/t/cannot-make-a-static-reference-to-the-non-static-field-bee-pos/16414)

<div class="topic-metadata">

**Author:** [@Wattscanaan10](https://discourse.processing.org/u/Wattscanaan10)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 8:49am UTC](https://discourse.processing.org/t/cannot-make-a-static-reference-to-the-non-static-field-bee-pos/16414 "2019-12-15T08:49:11Z")

</div>

Hello, i am trying to code a program that simulates nature. I am trying to use the variable Bee.pos inside of the class Food, but when i do, it gives me “Cannot make a static reference to the non-static field Bee.pos”. A…

---

## [Vehicle-Like Movement](https://discourse.processing.org/t/vehicle-like-movement/16308)

<div class="topic-metadata">

**Author:** [@hamp](https://discourse.processing.org/u/hamp)\
**Replies:** 6\
**Last updated:** [December 15, 2019, 1:48am UTC](https://discourse.processing.org/t/vehicle-like-movement/16308 "2019-12-15T01:48:30Z")

</div>

I have a rectangle, which I want to move like a car. I can get it to move in cardinal directions, and can get it to rotate. However, I can’t seem to get it to work for me when I try and make it move in the direction it i…

---

## [3D objects render as flat, no depth/shading at all](https://discourse.processing.org/t/3d-objects-render-as-flat-no-depth-shading-at-all/16408)

<div class="topic-metadata">

**Author:** [@thejoelpatrol](https://discourse.processing.org/u/thejoelpatrol)\
**Replies:** 3\
**Last updated:** [December 15, 2019, 1:49am UTC](https://discourse.processing.org/t/3d-objects-render-as-flat-no-depth-shading-at-all/16408 "2019-12-15T01:49:34Z")

</div>

I’m having trouble figuring out why some models appear with 3D shading, as expected, and some are flat with no depth. Here’s a minimal example with two models that don’t/do work: PShape bunny; PShape ladybug; void setu…

---

## [Thread issue with while (true)](https://discourse.processing.org/t/thread-issue-with-while-true/16410)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 1:27am UTC](https://discourse.processing.org/t/thread-issue-with-while-true/16410 "2019-12-15T01:27:02Z")

</div>

when I run a while (true) inside a thread It only works if the condition play = 1 is met in the beginning. but if play = 0 in the beginning, in the future of the program when play == 1 what is inside while is not runni…

---

## [How can we create mechanical relationships between 3D objects?](https://discourse.processing.org/t/how-can-we-create-mechanical-relationships-between-3d-objects/16285)

<div class="topic-metadata">

**Author:** [@optiq](https://discourse.processing.org/u/optiq)\
**Replies:** 4\
**Last updated:** [December 15, 2019, 12:55am UTC](https://discourse.processing.org/t/how-can-we-create-mechanical-relationships-between-3d-objects/16285 "2019-12-15T00:55:35Z")

</div>

I do all my engineering design in Solidworks and would like to feature models with moving parts. For example say I designed a pair of scissors, how can I add a hinge relationship between the two parts? Can I do this by…

---

## [It´s possible to decompose 3D graphics to video 2D to get UV´s?](https://discourse.processing.org/t/it-s-possible-to-decompose-3d-graphics-to-video-2d-to-get-uv-s/16315)

<div class="topic-metadata">

**Author:** [@TATTLER](https://discourse.processing.org/u/TATTLER)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 12:50am UTC](https://discourse.processing.org/t/it-s-possible-to-decompose-3d-graphics-to-video-2d-to-get-uv-s/16315 "2019-12-15T00:50:53Z")

</div>

I don´t know if it possible to do, but I will try to explain what I want to do.The graphics generated in 3D: I would like to decompose (unwrap) on 2D video like this to obtain the UV for a a Sphere, Imagine that th…

---

## [Need to get drawing under picture](https://discourse.processing.org/t/need-to-get-drawing-under-picture/16344)

<div class="topic-metadata">

**Author:** [@keeg23](https://discourse.processing.org/u/keeg23)\
**Replies:** 9\
**Last updated:** [December 14, 2019, 5:23pm UTC](https://discourse.processing.org/t/need-to-get-drawing-under-picture/16344 "2019-12-14T17:23:48Z")

</div>

The code I have now I am having trouble getting the actual drawing under the picture, was told it may be the mousepressed section but could not solve the problem thank you! PImage myElonStart, myMonroe, myLennon, select…

---

## [Calling a parents function in a child object](https://discourse.processing.org/t/calling-a-parents-function-in-a-child-object/16384)

<div class="topic-metadata">

**Author:** [@J0R1AN](https://discourse.processing.org/u/J0R1AN)\
**Replies:** 10\
**Last updated:** [December 14, 2019, 11:39am UTC](https://discourse.processing.org/t/calling-a-parents-function-in-a-child-object/16384 "2019-12-14T11:39:59Z")

</div>

Hi there, I’ve been working on a bigger project but ran into a bit of a problem when trying to organize my functions in the correct objects. The problem is that I cannot seem to call a function that is defined in a pare…

---

## [How to compare two 2d arrays and check if a value is in it](https://discourse.processing.org/t/how-to-compare-two-2d-arrays-and-check-if-a-value-is-in-it/16376)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 1\
**Last updated:** [December 14, 2019, 3:16am UTC](https://discourse.processing.org/t/how-to-compare-two-2d-arrays-and-check-if-a-value-is-in-it/16376 "2019-12-14T03:16:48Z")

</div>

so, i have a grid of objects and when the mouse enters they disappear, how ever when the mouse enters other object it reappears, I’ve searched for a solution in the 2D arrays, how ever I don’t understand them that much……

---

## [How can i make walls that are solid](https://discourse.processing.org/t/how-can-i-make-walls-that-are-solid/16347)

<div class="topic-metadata">

**Author:** [@Original](https://discourse.processing.org/u/Original)\
**Replies:** 3\
**Last updated:** [December 13, 2019, 4:09pm UTC](https://discourse.processing.org/t/how-can-i-make-walls-that-are-solid/16347 "2019-12-13T16:09:21Z")

</div>

I am new to processing I am making a maze where you have to press the mouse to see it and i dnt know how to make walls that have collision is there anyone that can help float x = 5; float y = 55; PImage img; void set…

---

## [Can't run exported 32-bit windows app](https://discourse.processing.org/t/cant-run-exported-32-bit-windows-app/16351)

<div class="topic-metadata">

**Author:** [@ronnyDD](https://discourse.processing.org/u/ronnyDD)\
**Replies:** 5\
**Last updated:** [December 13, 2019, 2:38pm UTC](https://discourse.processing.org/t/cant-run-exported-32-bit-windows-app/16351 "2019-12-13T14:38:27Z")

</div>

I have almost nothing written in my program, 64-bit version runs perfectly, but when i export a 32-bit version in a 32-bit processing version, it shows an error when i run it: OpenGL ES Error Can’t find the Intel graph…

---

## [Interactivity and scenes](https://discourse.processing.org/t/interactivity-and-scenes/16354)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 4\
**Last updated:** [December 13, 2019, 7:46am UTC](https://discourse.processing.org/t/interactivity-and-scenes/16354 "2019-12-13T07:46:58Z")

</div>

Hi everybody, I’m on the last step to finish my sketch, but losing my head with somoething I don’t get. Sketch has scene1, that lasts 5 seconds. Then, scene 2 has a button that activates animation called scene 3. Final…

---

## [How to append in a two dimensional array?](https://discourse.processing.org/t/how-to-append-in-a-two-dimensional-array/16359)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 1\
**Last updated:** [December 13, 2019, 5:51am UTC](https://discourse.processing.org/t/how-to-append-in-a-two-dimensional-array/16359 "2019-12-13T05:51:52Z")

</div>

I have a two dimensional array and I’m trying to append new values but I can’t figure out how to int\[\]\[\] prv = {{1},{1}}; int objX; int objY; void setup(){ size(200, 200) } void draw() { objX = mouseX; objY = mouseY…

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

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