# Latest

**URL:** https://discourse.processing.org/latest.md?page=261

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

**Page:** 262

---

## [Different function to every ellipse](https://discourse.processing.org/t/different-function-to-every-ellipse/27289)

<div class="topic-metadata">

**Author:** [@Karrajo](https://discourse.processing.org/u/Karrajo)\
**Replies:** 3\
**Last updated:** [January 22, 2021, 10:04pm UTC](https://discourse.processing.org/t/different-function-to-every-ellipse/27289 "2021-01-22T22:04:04Z")

</div>

Hi, I’m doing this thing, trying to make every ellipse appear and disappear with the same function but in a different time, like if every ellipse is in a different moment of the sine function. I can write the function a…

---

## [How to use Partial WakeLock](https://discourse.processing.org/t/how-to-use-partial-wakelock/24834)

<div class="topic-metadata">

**Author:** [@Jessie](https://discourse.processing.org/u/Jessie)\
**Replies:** 20\
**Last updated:** [January 22, 2021, 6:27pm UTC](https://discourse.processing.org/t/how-to-use-partial-wakelock/24834 "2021-01-22T18:27:53Z")

</div>

I am trying to make an audio based game in which the phones screen is primarily off. To be specific I need the app to continue to run, playing sounds and communicating with a server, even when I turn it off via the power…

---

## [How to pull an image from a website](https://discourse.processing.org/t/how-to-pull-an-image-from-a-website/27285)

<div class="topic-metadata">

**Author:** [@skypickle](https://discourse.processing.org/u/skypickle)\
**Replies:** 3\
**Last updated:** [January 22, 2021, 5:25pm UTC](https://discourse.processing.org/t/how-to-pull-an-image-from-a-website/27285 "2021-01-22T17:25:15Z")

</div>

I want to use an image from a website as the basis for an interactive artwork. For example, this page “https://www.google.de/images/branding/googlelogo/2x/googlelogo\_color\_272x92dp.png” is a google logo. This script j…

---

## [Where do these methods... live?](https://discourse.processing.org/t/where-do-these-methods-live/27286)

<div class="topic-metadata">

**Author:** [@yoHill](https://discourse.processing.org/u/yoHill)\
**Replies:** 2\
**Last updated:** [January 22, 2021, 2:31pm UTC](https://discourse.processing.org/t/where-do-these-methods-live/27286 "2021-01-22T14:31:09Z")

</div>

Hi, I have a question that may be really stupid but I just can’t quite wrap my head around what’s happening here. When using methods like void draw() or void mousePressed()… are these part of an interface somewhere? I …

---

## [How can I web scrape to get images from different websites using processing?](https://discourse.processing.org/t/how-can-i-web-scrape-to-get-images-from-different-websites-using-processing/22052)

<div class="topic-metadata">

**Author:** [@usr-pyth](https://discourse.processing.org/u/usr-pyth)\
**Replies:** 2\
**Last updated:** [January 22, 2021, 12:19am UTC](https://discourse.processing.org/t/how-can-i-web-scrape-to-get-images-from-different-websites-using-processing/22052 "2021-01-22T00:19:52Z")

</div>

Hi! I’m trying to get images from reddit and load them into my processing sketch. How do I do this?

---

## [Cannot display an image](https://discourse.processing.org/t/cannot-display-an-image/27256)

<div class="topic-metadata">

**Author:** [@skypickle](https://discourse.processing.org/u/skypickle)\
**Replies:** 1\
**Last updated:** [January 21, 2021, 10:22pm UTC](https://discourse.processing.org/t/cannot-display-an-image/27256 "2021-01-21T22:22:40Z")

</div>

my html \<!doctype html\> \<html\> \<head\> \<script src="p5/p5.js"\>\</script\> \<script src="p5/addons/p5.dom.js"\>\</script\> \<script src="sketch4.js"\>\</script\> \</head\> \<body style="margin: 0; overflow: hidden;"\> …

---

## [Student can't see running code](https://discourse.processing.org/t/student-cant-see-running-code/27249)

<div class="topic-metadata">

**Author:** [@MrRuTech](https://discourse.processing.org/u/MrRuTech)\
**Replies:** 5\
**Last updated:** [January 21, 2021, 8:11pm UTC](https://discourse.processing.org/t/student-cant-see-running-code/27249 "2021-01-21T20:11:39Z")

</div>

Student using p5.js on laptop creates code, runs code but can’t see program running. Student sends me the link to their sketch and I can run and see the code. We have tried this on several devices and browsers but it sti…

---

## [PG Graphics not working - bet you can't work this out!](https://discourse.processing.org/t/pg-graphics-not-working-bet-you-cant-work-this-out/27250)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 9\
**Last updated:** [January 21, 2021, 6:32pm UTC](https://discourse.processing.org/t/pg-graphics-not-working-bet-you-cant-work-this-out/27250 "2021-01-21T18:32:37Z")

</div>

I want to create pg graphics size x,y in black. In middle I want a non black point. Randomly searching through all pg graphics, I want to find this point in a routine iterating over and over. Once found - return that …

---

## [Issues with a simple pathfinder](https://discourse.processing.org/t/issues-with-a-simple-pathfinder/27265)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 0\
**Last updated:** [January 21, 2021, 1:53pm UTC](https://discourse.processing.org/t/issues-with-a-simple-pathfinder/27265 "2021-01-21T13:53:57Z")

</div>

Hi! I decided to remake a simple pathfinder algorithm (every “found” slot tries to find slots adjacent to itself that have not been found and are not “blocked” (it is meant to be used as a wall) The issue is the path ge…

---

## [Scrolling Graph Serial](https://discourse.processing.org/t/scrolling-graph-serial/27169)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 3\
**Last updated:** [January 21, 2021, 8:10am UTC](https://discourse.processing.org/t/scrolling-graph-serial/27169 "2021-01-21T08:10:44Z")

</div>

I am trying to plot the values coming in from the serial port into a scrolling graph. Right now it it displaying some value but not what I want. It should plot every time ReadStringUntill gets to a new line etc. Any idea…

---

## [Rocket Cursor - game release](https://discourse.processing.org/t/rocket-cursor-game-release/27253)

<div class="topic-metadata">

**Author:** [@lrCr](https://discourse.processing.org/u/lrCr)\
**Replies:** 0\
**Last updated:** [January 20, 2021, 10:48pm UTC](https://discourse.processing.org/t/rocket-cursor-game-release/27253 "2021-01-20T22:48:40Z")

</div>

Game release: Rocket Cursor Description: This is a multiplayer game in which you pilot your cursorShip around the solar system. It is written with p5js and uses socket.io. Link: https://openprocessing.org/sketch/106283…

---

## [TYPe Portrait (Solo Exhibition)](https://discourse.processing.org/t/type-portrait-solo-exhibition/27242)

<div class="topic-metadata">

**Author:** [@ayheng](https://discourse.processing.org/u/ayheng)\
**Replies:** 1\
**Last updated:** [January 20, 2021, 9:49pm UTC](https://discourse.processing.org/t/type-portrait-solo-exhibition/27242 "2021-01-20T21:49:12Z")

</div>

Happy New Year. I would like to share my new solo exhibition, TYPE Portrait. Currently, it is at Brooks Stevens Gallery of Milwaukee Institute of Art and Design. It is an in-person exhibition with an appointment to visit…

---

## [Error: NullPointerException](https://discourse.processing.org/t/error-nullpointerexception/27251)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 1\
**Last updated:** [January 20, 2021, 9:36pm UTC](https://discourse.processing.org/t/error-nullpointerexception/27251 "2021-01-20T21:36:44Z")

</div>

Hello, I have a problem to solve this coding in Java in 16th line, show me an error: NullPointerException. What can I do? Below is the code: import processing.svg.\*; PImage img; float theta= 31; float k = 11; float r =…

---

## [Player Health & Collision not working properly together](https://discourse.processing.org/t/player-health-collision-not-working-properly-together/27244)

<div class="topic-metadata">

**Author:** [@vvitch](https://discourse.processing.org/u/vvitch)\
**Replies:** 3\
**Last updated:** [January 20, 2021, 9:25pm UTC](https://discourse.processing.org/t/player-health-collision-not-working-properly-together/27244 "2021-01-20T21:25:41Z")

</div>

For some reason, in the game that I am attempting to make for a class project whenever the player hits an asteroid at speed, the playerHealth variable goes down by multiple numbers instead of by one. The below are functi…

---

## [Force redraw() / redraw with callback](https://discourse.processing.org/t/force-redraw-redraw-with-callback/27246)

<div class="topic-metadata">

**Author:** [@odotdotdot](https://discourse.processing.org/u/odotdotdot)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 9:12pm UTC](https://discourse.processing.org/t/force-redraw-redraw-with-callback/27246 "2021-01-20T21:12:32Z")

</div>

I have a p5py application that requires getting data from the internet on user input. I’m running the sketch with no\_loop() in the setup as animation is only required on user input. Fetching and processing the data can …

---

## [Another "python mode not working" problem](https://discourse.processing.org/t/another-python-mode-not-working-problem/27235)

<div class="topic-metadata">

**Author:** [@Sayochi](https://discourse.processing.org/u/Sayochi)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 7:47pm UTC](https://discourse.processing.org/t/another-python-mode-not-working-problem/27235 "2021-01-20T19:47:34Z")

</div>

I downloaded processing few hours ago and wanted to try python mode(3063) but it doesnt work. it gives empty lines in logs. I checked other similar posts too but no luck. tried downloading the mode manually from site, tu…

---

## [Help needed please in code](https://discourse.processing.org/t/help-needed-please-in-code/27241)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 6\
**Last updated:** [January 20, 2021, 5:54pm UTC](https://discourse.processing.org/t/help-needed-please-in-code/27241 "2021-01-20T17:54:56Z")

</div>

Within setup and main. I am creating a pg graphics at x,y resolution, placing a value in centre. Then randomly choosing a point. If the point = centre then x,y found. Wth am I doing wrong?? PGraphics pg; float col=10; …

---

## [Can anyone help me with collision for player (Platformer)](https://discourse.processing.org/t/can-anyone-help-me-with-collision-for-player-platformer/27164)

<div class="topic-metadata">

**Author:** [@deiwy](https://discourse.processing.org/u/deiwy)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 5:34pm UTC](https://discourse.processing.org/t/can-anyone-help-me-with-collision-for-player-platformer/27164 "2021-01-20T17:34:58Z")

</div>

player p; ArrayList\<Platform\> platforms = new ArrayList(); boolean\[\] keys = new boolean\[2\]; int\[\]\[\] map = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 0, 0, 1, 0, 0, 0…

---

## [Locate Showcase](https://discourse.processing.org/t/locate-showcase/27239)

<div class="topic-metadata">

**Author:** [@Rahulm2310](https://discourse.processing.org/u/Rahulm2310)\
**Replies:** 4\
**Last updated:** [January 20, 2021, 4:33pm UTC](https://discourse.processing.org/t/locate-showcase/27239 "2021-01-20T16:33:16Z")

</div>

Hello, Can someone help me locate the code for the latest p5.js showcase ?

---

## [Want to make changes in Get Started page on p5.js Website on my localhost which is rendered by grunt server](https://discourse.processing.org/t/want-to-make-changes-in-get-started-page-on-p5-js-website-on-my-localhost-which-is-rendered-by-grunt-server/27237)

<div class="topic-metadata">

**Author:** [@Shubham](https://discourse.processing.org/u/Shubham)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 3:03pm UTC](https://discourse.processing.org/t/want-to-make-changes-in-get-started-page-on-p5-js-website-on-my-localhost-which-is-rendered-by-grunt-server/27237 "2021-01-20T15:03:52Z")

</div>

I am new to open source contribution and found some typo on Get Started page on the p5.js website but finding a problem to resolve it as these files are rendered by grunt server, and else in the src folder, I couldn’t fi…

---

## [Geomerative: intersection not accurate](https://discourse.processing.org/t/geomerative-intersection-not-accurate/27210)

<div class="topic-metadata">

**Author:** [@robottini](https://discourse.processing.org/u/robottini)\
**Replies:** 1\
**Last updated:** [January 20, 2021, 10:40am UTC](https://discourse.processing.org/t/geomerative-intersection-not-accurate/27210 "2021-01-20T10:40:54Z")

</div>

I draw a simple intersection between two rectangles but the result is not accurate. The simple code is: import geomerative.\*; void setup() { size(600, 400); smooth(); background(255); noFill(); RG.init(thi…

---

## [Educational sketches](https://discourse.processing.org/t/educational-sketches/27218)

<div class="topic-metadata">

**Author:** [@codeIt](https://discourse.processing.org/u/codeIt)\
**Replies:** 2\
**Last updated:** [January 20, 2021, 9:33am UTC](https://discourse.processing.org/t/educational-sketches/27218 "2021-01-20T09:33:18Z")

</div>

Hello, I’m experimenting with making P5 based educational illustrations and animations, as a way to integrate programming with other school subjects. The idea is to offer a sketch that illustrates a concept (e.g. fracti…

---

## [Generative 3D Shapes](https://discourse.processing.org/t/generative-3d-shapes/27213)

<div class="topic-metadata">

**Author:** [@maneschka](https://discourse.processing.org/u/maneschka)\
**Replies:** 1\
**Last updated:** [January 20, 2021, 8:29am UTC](https://discourse.processing.org/t/generative-3d-shapes/27213 "2021-01-20T08:29:51Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi! Does somebody have a cool tutorial for learning how to do 3D Generative Shapes? Thanks!

---

## [Timer after button pressed](https://discourse.processing.org/t/timer-after-button-pressed/27209)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 9\
**Last updated:** [January 19, 2021, 10:24pm UTC](https://discourse.processing.org/t/timer-after-button-pressed/27209 "2021-01-19T22:24:53Z")

</div>

please format code with \</\> button \* homework policy \* asking questions After I run a program, I want my timer to start. Currently I am using millis()/1000 just for the seconds but I want to make the timer so that it…

---

## [Simple Arduino Tutorial: How to make Canbus Communicate with DHT11](https://discourse.processing.org/t/simple-arduino-tutorial-how-to-make-canbus-communicate-with-dht11/27216)

<div class="topic-metadata">

**Author:** [@Makerhe](https://discourse.processing.org/u/Makerhe)\
**Replies:** 0\
**Last updated:** [January 20, 2021, 6:02am UTC](https://discourse.processing.org/t/simple-arduino-tutorial-how-to-make-canbus-communicate-with-dht11/27216 "2021-01-20T06:02:09Z")

</div>

In this project, we will learn how to use Arduino code to implement CANBUS communication with DHT11 sensor. I also used an OLED in this project, so we can display the temperature and humidity on it. Check details on this…

---

## [Running videos on android](https://discourse.processing.org/t/running-videos-on-android/26916)

<div class="topic-metadata">

**Author:** [@paturn](https://discourse.processing.org/u/paturn)\
**Replies:** 46\
**Last updated:** [January 13, 2021, 6:24pm UTC](https://discourse.processing.org/t/running-videos-on-android/26916 "2021-01-13T18:24:50Z")

</div>

I have used Movie in Processing for Windows from processing.video.\* but cannot use it in android. I have tried using FileDescriptor and getAssets etc with the video in data or other folder (located via Environment.getEx…

---

## [Transparency not working as expected](https://discourse.processing.org/t/transparency-not-working-as-expected/27151)

<div class="topic-metadata">

**Author:** [@chupo\_cro](https://discourse.processing.org/u/chupo_cro)\
**Replies:** 10\
**Last updated:** [January 18, 2021, 9:25pm UTC](https://discourse.processing.org/t/transparency-not-working-as-expected/27151 "2021-01-18T21:25:23Z")

</div>

I’ve made a simple program for displaying the pixels stored in a framebuffer by drawing the squares and everything is working well except I can’t explain the visible lines between the squares when I draw them with a tran…

---

## [Bug with python mode](https://discourse.processing.org/t/bug-with-python-mode/26533)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 10\
**Last updated:** [December 28, 2020, 6:55pm UTC](https://discourse.processing.org/t/bug-with-python-mode/26533 "2020-12-28T18:55:11Z")

</div>

txt = '1'; def setup(): size(600,600) noFill() noStroke() def draw(): fill('#FF0000') # red quadrant rect(width/2,0, width/2,height/2) fill('#004477') # blue quadrant rect(0,0, width/2,he…

---

## [Replace words with different synonyms and print each combination in a text file](https://discourse.processing.org/t/replace-words-with-different-synonyms-and-print-each-combination-in-a-text-file/27110)

<div class="topic-metadata">

**Author:** [@Sophie](https://discourse.processing.org/u/Sophie)\
**Replies:** 17\
**Last updated:** [January 18, 2021, 9:23am UTC](https://discourse.processing.org/t/replace-words-with-different-synonyms-and-print-each-combination-in-a-text-file/27110 "2021-01-18T09:23:58Z")

</div>

Hello, My goal is to replace words from a String with synonyms. Right now the code can replace one word with another one and write the sentence in my text file. But I would like to have different opportunities to replac…

---

## [Replace first character of string](https://discourse.processing.org/t/replace-first-character-of-string/27000)

<div class="topic-metadata">

**Author:** [@vestergaard12](https://discourse.processing.org/u/vestergaard12)\
**Replies:** 21\
**Last updated:** [January 19, 2021, 11:01am UTC](https://discourse.processing.org/t/replace-first-character-of-string/27000 "2021-01-19T11:01:27Z")

</div>

Hello Processing Foundation I have this coding question, which I really hope someone will help me to solve: This is my code so far: String\[\] words = {"hello", "how", "helicopter", "who", "which", "that", "okay"}; //ju…

[Previous page](https://discourse.processing.org/latest.md?page=260)

[Next page](https://discourse.processing.org/latest.md?page=262)
