# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=375

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

**Page:** 376

---

## [Asteroids \[Retro Remake\]](https://discourse.processing.org/t/asteroids-retro-remake/19100)

<div class="topic-metadata">

**Author:** [@AndJ](https://discourse.processing.org/u/AndJ)\
**Replies:** 1\
**Last updated:** [March 28, 2020, 4:48am UTC](https://discourse.processing.org/t/asteroids-retro-remake/19100 "2020-03-28T04:48:26Z")

</div>

I just recently finished my remake of the old Atari game: Asteroids. I was unaware of how the original checked for collisions, but because the asteroids in my game are randomly generated polygons (using a semi-polar sys…

---

## [Perlin 3D noise working correctly?](https://discourse.processing.org/t/perlin-3d-noise-working-correctly/18988)

<div class="topic-metadata">

**Author:** [@Kubi](https://discourse.processing.org/u/Kubi)\
**Replies:** 5\
**Last updated:** [March 28, 2020, 2:39am UTC](https://discourse.processing.org/t/perlin-3d-noise-working-correctly/18988 "2020-03-28T02:39:01Z")

</div>

I am working on a little sketch that uses 3d perlin noise: https://editor.p5js.org/Kubi/sketches/mTEiY6-dR Essentially, it’s just a moving background. I noticed, that there is some kind of rythmic motion going on… Hard…

---

## [Verbose code (how to shorten)](https://discourse.processing.org/t/verbose-code-how-to-shorten/19018)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 4\
**Last updated:** [March 28, 2020, 1:37am UTC](https://discourse.processing.org/t/verbose-code-how-to-shorten/19018 "2020-03-28T01:37:43Z")

</div>

I have this sketch (see below). Everything works, the green balls are healthy, the red balls are sick, if a green ball and a red ball collide the red ball infects the green ball and they both end up sick. After a while a…

---

## [Rotating images without interfering with translation (new to coding!)](https://discourse.processing.org/t/rotating-images-without-interfering-with-translation-new-to-coding/19003)

<div class="topic-metadata">

**Author:** [@semi\_cologne](https://discourse.processing.org/u/semi_cologne)\
**Replies:** 4\
**Last updated:** [March 27, 2020, 11:13pm UTC](https://discourse.processing.org/t/rotating-images-without-interfering-with-translation-new-to-coding/19003 "2020-03-27T23:13:14Z")

</div>

Hey coders, I’m working on a clock using a png image. every second the image moves vertically, but every minute I am trying to make the image rotate. That said even with experimenting with push and pop matrixes, I still …

---

## [Trying to write a simple snake game with arrays but I run into an error](https://discourse.processing.org/t/trying-to-write-a-simple-snake-game-with-arrays-but-i-run-into-an-error/19065)

<div class="topic-metadata">

**Author:** [@creedin](https://discourse.processing.org/u/creedin)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 8:25pm UTC](https://discourse.processing.org/t/trying-to-write-a-simple-snake-game-with-arrays-but-i-run-into-an-error/19065 "2020-03-27T20:25:11Z")

</div>

float\[\] xpos; float\[\] ypos; void setup() { size(500,500); } void draw() { background(255); for (int i = 0; i \< xpos.length - 1; i++) { xpos\[i\] = xpos\[i + 1\]; ypos\[i\] = ypos\[i + 1\]; } xpos\[xpos.lengt…

---

## [Square with resizeable rectangles inside](https://discourse.processing.org/t/square-with-resizeable-rectangles-inside/14482)

<div class="topic-metadata">

**Author:** [@BooWseR](https://discourse.processing.org/u/BooWseR)\
**Replies:** 8\
**Last updated:** [March 27, 2020, 8:21pm UTC](https://discourse.processing.org/t/square-with-resizeable-rectangles-inside/14482 "2020-03-27T20:21:27Z")

</div>

Hi Guys, i’m pretty new with processing and have a problem: I need a square with different squares in it. These should be changeable in size, but not smaller than a certain minimum size. I have tried different approach…

---

## [Software Design Position at IDEO](https://discourse.processing.org/t/software-design-position-at-ideo/2242)

<div class="topic-metadata">

**Author:** [@kaylagilbert](https://discourse.processing.org/u/kaylagilbert)\
**Replies:** 0\
**Last updated:** [July 31, 2018, 4:51pm UTC](https://discourse.processing.org/t/software-design-position-at-ideo/2242 "2018-07-31T16:51:10Z")

</div>

IDEO Palo Alto is in search of a Software Designer who will lead small multidisciplinary teams in designing innovative solutions that apply technology and systems to address core user needs. Why is this role important f…

---

## [GSOC'20 proposal questions](https://discourse.processing.org/t/gsoc20-proposal-questions/18950)

<div class="topic-metadata">

**Author:** [@connieliu](https://discourse.processing.org/u/connieliu)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 7:16pm UTC](https://discourse.processing.org/t/gsoc20-proposal-questions/18950 "2020-03-27T19:16:31Z")

</div>

Hi! I’m Connie, a current Information Science (User Experience and Interactive Technology) major and Computer Science minor at Cornell! I love the mission of the Processing foundation and have used p5.js myself during m…

---

## [How to delete an object in a class?](https://discourse.processing.org/t/how-to-delete-an-object-in-a-class/19067)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 7\
**Last updated:** [March 27, 2020, 5:32pm UTC](https://discourse.processing.org/t/how-to-delete-an-object-in-a-class/19067 "2020-03-27T17:32:15Z")

</div>

So I have a class that is a bullet. And if the bullet is out of bound, then it will delete the object. But how do I do this? Here is my code. class Bullet { if (xpos \> 500 || ypos \> 500) delete object // how…

---

## [Instantiate variable of outside class](https://discourse.processing.org/t/instantiate-variable-of-outside-class/19088)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 3\
**Last updated:** [March 27, 2020, 5:30pm UTC](https://discourse.processing.org/t/instantiate-variable-of-outside-class/19088 "2020-03-27T17:30:43Z")

</div>

GoodMorning, I have a question about of usage this parameter in contructor class. My minimal code is: import processing.video.\*; class MediaLoad { File file; Movie mov; MediaLoad (File \_file) { \_file = file; …

---

## [Improving p5.js WebGL/3D functionality project for GSoC 2020](https://discourse.processing.org/t/improving-p5-js-webgl-3d-functionality-project-for-gsoc-2020/18862)

<div class="topic-metadata">

**Author:** [@shirou](https://discourse.processing.org/u/shirou)\
**Replies:** 6\
**Last updated:** [March 27, 2020, 4:55pm UTC](https://discourse.processing.org/t/improving-p5-js-webgl-3d-functionality-project-for-gsoc-2020/18862 "2020-03-27T16:55:09Z")

</div>

Hi, I am Divyam ,an undergraduate student from India. For GSoC 2020 project , I would like work on WebGl /3D API of p5.js, as it lacks optimisations, shadow mapping and has some flaws in material system. I want to take…

---

## [Stacking Coloured Blocks Game](https://discourse.processing.org/t/stacking-coloured-blocks-game/19016)

<div class="topic-metadata">

**Author:** [@macedorrn](https://discourse.processing.org/u/macedorrn)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 2:40pm UTC](https://discourse.processing.org/t/stacking-coloured-blocks-game/19016 "2020-03-27T14:40:13Z")

</div>

How can I get to draw my main\_stack in the correct way, and with the conditional - only add to the scoring\_stack if the last item of main\_stack is the same color as last item of scoring\_stack - and, the scoring\_stack sho…

---

## [Switching from keypressed to using an array](https://discourse.processing.org/t/switching-from-keypressed-to-using-an-array/19053)

<div class="topic-metadata">

**Author:** [@MichelO](https://discourse.processing.org/u/MichelO)\
**Replies:** 1\
**Last updated:** [March 26, 2020, 8:39pm UTC](https://discourse.processing.org/t/switching-from-keypressed-to-using-an-array/19053 "2020-03-26T20:39:54Z")

</div>

I have code that draws a multi-colored spiral pattern with different line lengths and colors depending on which number keys are pressed. I would like to change this to reading the numbers from an array, but I am having s…

---

## [Resetting animation](https://discourse.processing.org/t/resetting-animation/18785)

<div class="topic-metadata">

**Author:** [@v177](https://discourse.processing.org/u/v177)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 10:16am UTC](https://discourse.processing.org/t/resetting-animation/18785 "2020-03-27T10:16:36Z")

</div>

Hello, I am new to p5.js. I am trying to reset the animation based on an event. Running into an issue where every tie my label value is 2, it just shows the same animation. function draw() { background(255, 120, 120);…

---

## [My decimal is too small](https://discourse.processing.org/t/my-decimal-is-too-small/19041)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 8\
**Last updated:** [March 27, 2020, 9:06am UTC](https://discourse.processing.org/t/my-decimal-is-too-small/19041 "2020-03-27T09:06:12Z")

</div>

Here is my example of my code: value = -1 / (value1 - value2); println(xdirection); It is very simple. I am trying to take the negative reciprocal of a value. But the number is too small, and when I try to print the v…

---

## [GIFs in proposal](https://discourse.processing.org/t/gifs-in-proposal/19028)

<div class="topic-metadata">

**Author:** [@codengame](https://discourse.processing.org/u/codengame)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 5:37am UTC](https://discourse.processing.org/t/gifs-in-proposal/19028 "2020-03-27T05:37:26Z")

</div>

When I submit my final proposal as a pdf, all the GIFs that have been added to the .docx file will be converted to an image and the reviewer won’t be able to view the changes efficiently. Is there any other way I can sen…

---

## [P5.js web editor gsoc 2020](https://discourse.processing.org/t/p5-js-web-editor-gsoc-2020/18190)

<div class="topic-metadata">

**Author:** [@phe0](https://discourse.processing.org/u/phe0)\
**Replies:** 16\
**Last updated:** [March 14, 2020, 6:37pm UTC](https://discourse.processing.org/t/p5-js-web-editor-gsoc-2020/18190 "2020-03-14T18:37:12Z")

</div>

Hey, I’m Pedro Féo, a software engineering student from Brazil, I’ve been wanting to work with the p5.js web editor for GSOC. I wanted to work on the mobile/responsive design implementation. Alongside with that I would …

---

## [Processing 3 : two windows at time , one 2d and one 3d](https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019)

<div class="topic-metadata">

**Author:** [@Bob63](https://discourse.processing.org/u/Bob63)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 2:17am UTC](https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019 "2020-03-27T02:17:26Z")

</div>

Hi, I’m quite new of Processing 3,and is my first post in the forum. I’m working on a project that require two windows , one 2D and one 3d. The 2D window will be used to display a series of fata coming from a serial por…

---

## [Sorting Colors with sortMode errors](https://discourse.processing.org/t/sorting-colors-with-sortmode-errors/18651)

<div class="topic-metadata">

**Author:** [@wendyT](https://discourse.processing.org/u/wendyT)\
**Replies:** 10\
**Last updated:** [March 26, 2020, 11:39pm UTC](https://discourse.processing.org/t/sorting-colors-with-sortmode-errors/18651 "2020-03-26T23:39:11Z")

</div>

I’m playing with examples in the “Generative Design” book - this example builds an array of colors from an image and then sorts them. I get an error message: Uncaught ReferenceError: gd is not defined (sketch: line 69…

---

## [GSoC'20 Proposal - Support for Kotlin Native](https://discourse.processing.org/t/gsoc20-proposal-support-for-kotlin-native/19059)

<div class="topic-metadata">

**Author:** [@AdityaRana](https://discourse.processing.org/u/AdityaRana)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 10:14pm UTC](https://discourse.processing.org/t/gsoc20-proposal-support-for-kotlin-native/19059 "2020-03-26T22:14:04Z")

</div>

Hello to the community, I am posting my initial draft proposal of GSoC’20 for Support for Kotlin Native @kfrajer @sarahlensing @Andres please review it, and help me to improve more on the same. Proposal link: http…

---

## [Plotting Parametric Equations](https://discourse.processing.org/t/plotting-parametric-equations/18947)

<div class="topic-metadata">

**Author:** [@rubbs](https://discourse.processing.org/u/rubbs)\
**Replies:** 3\
**Last updated:** [March 26, 2020, 11:04pm UTC](https://discourse.processing.org/t/plotting-parametric-equations/18947 "2020-03-26T23:04:06Z")

</div>

Hello, I believe that I have almost correctly drawn-out a hyperbolic helicoid: (https://mathworld.wolfram.com/HyperbolicHelicoid.html). But there is some odd behavior, I think it’s because I am not calculating torsion…

---

## [Game speed after certain score is reached](https://discourse.processing.org/t/game-speed-after-certain-score-is-reached/19043)

<div class="topic-metadata">

**Author:** [@Banana132](https://discourse.processing.org/u/Banana132)\
**Replies:** 4\
**Last updated:** [March 26, 2020, 10:16pm UTC](https://discourse.processing.org/t/game-speed-after-certain-score-is-reached/19043 "2020-03-26T22:16:28Z")

</div>

Hi there, I am creating a game where the player has to avoid some asteriods, and gain a good score. After going past a certain score, the game speed increases. At the moment i have this playerScore.countUp(); textAl…

---

## [ArrayIndexOutOfBoundsException: 168270](https://discourse.processing.org/t/arrayindexoutofboundsexception-168270/19057)

<div class="topic-metadata">

**Author:** [@jojo1515](https://discourse.processing.org/u/jojo1515)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 10:07pm UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-168270/19057 "2020-03-26T22:07:06Z")

</div>

Hey guys I have been trying to manipulate pixels on an image, following the youtube tutorial: https://www.youtube.com/watch?v=j-ZLDEnhT3Q by the Coding Train. I can’t seem to get it to work. Error code reads… ArrayInde…

---

## [GSoC application proposal draft review](https://discourse.processing.org/t/gsoc-application-proposal-draft-review/19055)

<div class="topic-metadata">

**Author:** [@RadheTians](https://discourse.processing.org/u/RadheTians)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 8:56pm UTC](https://discourse.processing.org/t/gsoc-application-proposal-draft-review/19055 "2020-03-26T20:56:21Z")

</div>

Mentors, I have submitted the GSoC proposal through the GSOC website. Please have a review and let me know the required modifications. Your feedback will be very helpful. Thanks and Regards, Radhe Raman Tiwari

---

## [If statements within an array of digits](https://discourse.processing.org/t/if-statements-within-an-array-of-digits/18507)

<div class="topic-metadata">

**Author:** [@MichelO](https://discourse.processing.org/u/MichelO)\
**Replies:** 6\
**Last updated:** [March 26, 2020, 7:54pm UTC](https://discourse.processing.org/t/if-statements-within-an-array-of-digits/18507 "2020-03-26T19:54:40Z")

</div>

I am trying to have different things happen depending on what digit is called in an array–in this case, different colored lines. I am not sure how to code the if statement to recognize a particular digit. This is what I …

---

## [GSOC Final proposal](https://discourse.processing.org/t/gsoc-final-proposal/19047)

<div class="topic-metadata">

**Author:** [@pallav12](https://discourse.processing.org/u/pallav12)\
**Replies:** 0\
**Last updated:** [March 26, 2020, 6:13pm UTC](https://discourse.processing.org/t/gsoc-final-proposal/19047 "2020-03-26T18:13:10Z")

</div>

Hello everyone, After receiving some great suggestions from @mcintyre, suggested changes have been incorporated. Please everyone review and help me improve it further. Neural network for processing PS. Project has bee…

---

## [Re-scaling image by pixel: why is r NaN?](https://discourse.processing.org/t/re-scaling-image-by-pixel-why-is-r-nan/19008)

<div class="topic-metadata">

**Author:** [@casey123](https://discourse.processing.org/u/casey123)\
**Replies:** 1\
**Last updated:** [March 25, 2020, 9:55pm UTC](https://discourse.processing.org/t/re-scaling-image-by-pixel-why-is-r-nan/19008 "2020-03-25T21:55:53Z")

</div>

I want to eventually re-scale my imported image while skewing it. Right now, I’m trying to get per pixel info but my variable “r” here is undefined in console. What am I missing? Thanks var img; var vScale = 4; functio…

---

## [AndroidStudio 3D figure](https://discourse.processing.org/t/androidstudio-3d-figure/19039)

<div class="topic-metadata">

**Author:** [@bert\_s](https://discourse.processing.org/u/bert_s)\
**Replies:** 3\
**Last updated:** [March 26, 2020, 5:00pm UTC](https://discourse.processing.org/t/androidstudio-3d-figure/19039 "2020-03-26T17:00:27Z")

</div>

I am having troubles drawing in 3D in AndroidStudio. This is my code in processing: import toxi.geom.\*; import toxi.geom.mesh.\*; import toxi.math.waves.\*; import toxi.processing.\*; import processing.serial.\*; Toxiclibs…

---

## [Development of p5.js Showcase page for the website, GSoC 2020](https://discourse.processing.org/t/development-of-p5-js-showcase-page-for-the-website-gsoc-2020/18023)

<div class="topic-metadata">

**Author:** [@riteshsp2000](https://discourse.processing.org/u/riteshsp2000)\
**Replies:** 13\
**Last updated:** [March 26, 2020, 4:43pm UTC](https://discourse.processing.org/t/development-of-p5-js-showcase-page-for-the-website-gsoc-2020/18023 "2020-03-26T16:43:16Z")

</div>

Hello everyone, I am Ritesh Patil, an undergrad from NIT-Rourkela. I have been looking forward to GSOC-2020. I went through the project ideas and found out the ‘showcase page development’ topic an interesting one. I wen…

---

## [Working on Examples & Internationalization improvements](https://discourse.processing.org/t/working-on-examples-internationalization-improvements/18875)

<div class="topic-metadata">

**Author:** [@TheShubham99](https://discourse.processing.org/u/TheShubham99)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 4:31pm UTC](https://discourse.processing.org/t/working-on-examples-internationalization-improvements/18875 "2020-03-26T16:31:26Z")

</div>

Hello there, I am Prathamesh an open-source contributor for a long time. I will discuss the details about my work & experience in the proposal, & I wish to work on the Internationalization improvements in Hindi especial…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=374)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=376)
