# Latest

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

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

**Page:** 322

---

## [Scaling a custom PShape without changing line thickness](https://discourse.processing.org/t/scaling-a-custom-pshape-without-changing-line-thickness/11437)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 10\
**Last updated:** [July 24, 2020, 6:35am UTC](https://discourse.processing.org/t/scaling-a-custom-pshape-without-changing-line-thickness/11437 "2020-07-24T06:35:31Z")

</div>

I am teaching myself to code through coding games, I am currently working on asteroids. I have a custom PShape called ast that uses a fair bit of vertices. I create a separate instance of it called n in the asteroid cl…

---

## [Tuple problem in processing](https://discourse.processing.org/t/tuple-problem-in-processing/22789)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 5\
**Last updated:** [July 24, 2020, 5:01am UTC](https://discourse.processing.org/t/tuple-problem-in-processing/22789 "2020-07-24T05:01:28Z")

</div>

I’m working with a magnetometer and want to port a calibration program to processing. The problem is it relies on Tuples and was originally written in C#. It looked a lot like Java so I stuck it in a sketch to see what…

---

## [3D Mesh of Sine Waves from Coding Challenge](https://discourse.processing.org/t/3d-mesh-of-sine-waves-from-coding-challenge/22806)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 6:56pm UTC](https://discourse.processing.org/t/3d-mesh-of-sine-waves-from-coding-challenge/22806 "2020-07-23T18:56:25Z")

</div>

Hello, I had some fun exploring 3D meshes from: Coding Challenge #11: 3D Terrain Generation with Perlin Noise in Processing Code \< Click here// 3D Mesh Sine Waves // v 1.0.1 // GLV 2020-07-22 // Inspiration: // Co…

---

## [Alpha values of overlapping lines](https://discourse.processing.org/t/alpha-values-of-overlapping-lines/22794)

<div class="topic-metadata">

**Author:** [@N0ld0r](https://discourse.processing.org/u/N0ld0r)\
**Replies:** 4\
**Last updated:** [July 23, 2020, 3:25pm UTC](https://discourse.processing.org/t/alpha-values-of-overlapping-lines/22794 "2020-07-23T15:25:21Z")

</div>

Good day I am creating a small asteroids clone just to have some fun. I recently added missiles into my game which work well except for a small issue I’m having with the alpha of the stroke(R,G,B,Alpha) function and lin…

---

## [Nativehook library](https://discourse.processing.org/t/nativehook-library/22790)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 9:40am UTC](https://discourse.processing.org/t/nativehook-library/22790 "2020-07-23T09:40:57Z")

</div>

How can I captchure a single keystrocke and then make the code “press” the button from te keystrocke at a later date. I am not asking for a KeyLogger.

---

## [Best instagram programming comunity](https://discourse.processing.org/t/best-instagram-programming-comunity/22788)

<div class="topic-metadata">

**Author:** [@Arnau](https://discourse.processing.org/u/Arnau)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 6:50am UTC](https://discourse.processing.org/t/best-instagram-programming-comunity/22788 "2020-07-23T06:50:51Z")

</div>

I discovered best programming account on instagram! The only drawback is that the account is in spanish… Anyway I recomend it: @honkcode

---

## [Security bug - sketches accessible to the world](https://discourse.processing.org/t/security-bug-sketches-accessible-to-the-world/22777)

<div class="topic-metadata">

**Author:** [@oshedar](https://discourse.processing.org/u/oshedar)\
**Replies:** 4\
**Last updated:** [July 23, 2020, 6:01am UTC](https://discourse.processing.org/t/security-bug-sketches-accessible-to-the-world/22777 "2020-07-23T06:01:21Z")

</div>

p5js has a security bug where everyone can see my sketches by typing following url in browser https://editor.p5js.org/myusername/sketches This makes it difficult to teach as my students have access to the answers to my …

---

## [Click and Drag to Scroll](https://discourse.processing.org/t/click-and-drag-to-scroll/22768)

<div class="topic-metadata">

**Author:** [@Hepyrian](https://discourse.processing.org/u/Hepyrian)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 6:51pm UTC](https://discourse.processing.org/t/click-and-drag-to-scroll/22768 "2020-07-22T18:51:27Z")

</div>

Hey everyone, I’m working on a piece of software that’s mostly being designed for touch screens. You know how on a touch screen you scoll by touching and dragging? I am trying to implement that functionality into my pro…

---

## [Can we use p5.js logo for non commercial purposes?](https://discourse.processing.org/t/can-we-use-p5-js-logo-for-non-commercial-purposes/22775)

<div class="topic-metadata">

**Author:** [@misterybodon](https://discourse.processing.org/u/misterybodon)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 6:23pm UTC](https://discourse.processing.org/t/can-we-use-p5-js-logo-for-non-commercial-purposes/22775 "2020-07-22T18:23:30Z")

</div>

I’ll be making a post about p5js, and it’d be nice to include a picture and the logo on the top layer of it. Is it ok if I use it? It’s just a blog coded from scratch with no adsense or rare things (just a ‘donate’ link…

---

## [Toggle Button Dependency](https://discourse.processing.org/t/toggle-button-dependency/22755)

<div class="topic-metadata">

**Author:** [@carlos.411](https://discourse.processing.org/u/carlos.411)\
**Replies:** 14\
**Last updated:** [July 22, 2020, 5:24pm UTC](https://discourse.processing.org/t/toggle-button-dependency/22755 "2020-07-22T17:24:50Z")

</div>

Hello everyone! I have a program with some toggles running, and I want a 'Main" Button to be able to reset the toggles to their initial position/value. Is there a way to do this? and if so how should I go about it. Th…

---

## [How Do you change the rotational origin for a shape?](https://discourse.processing.org/t/how-do-you-change-the-rotational-origin-for-a-shape/22774)

<div class="topic-metadata">

**Author:** [@Learner](https://discourse.processing.org/u/Learner)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 5:17pm UTC](https://discourse.processing.org/t/how-do-you-change-the-rotational-origin-for-a-shape/22774 "2020-07-22T17:17:17Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello, I am learning processing through this intro course and we have an assignment where we need to make a triangle that spins and follows your…

---

## [How to generate a multi-color blur gradation from a specified image?](https://discourse.processing.org/t/how-to-generate-a-multi-color-blur-gradation-from-a-specified-image/22779)

<div class="topic-metadata">

**Author:** [@Soh](https://discourse.processing.org/u/Soh)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 1:03pm UTC](https://discourse.processing.org/t/how-to-generate-a-multi-color-blur-gradation-from-a-specified-image/22779 "2020-07-22T13:03:44Z")

</div>

Is there any possible way to generate a multi-color blur gradation depends on an image via Processing? For example, the lyrics UI background of Apple Music. It’s auto-generated from CD jacket image.

---

## [GLSL Shaders using Processing Pi on a Pi 3 B+](https://discourse.processing.org/t/glsl-shaders-using-processing-pi-on-a-pi-3-b/18614)

<div class="topic-metadata">

**Author:** [@jshaw3](https://discourse.processing.org/u/jshaw3)\
**Replies:** 6\
**Last updated:** [July 22, 2020, 7:10am UTC](https://discourse.processing.org/t/glsl-shaders-using-processing-pi-on-a-pi-3-b/18614 "2020-07-22T07:10:48Z")

</div>

Hey All, It’s the first time I’m porting over a glsl shader from Processing OSX to run on Processing Pi running on a Raspberry Pi 3 B+. I have a very basic shader that dissolves between two videos playing. It runs total…

---

## [Creating a grid on a flat surface (plane or otherwise)](https://discourse.processing.org/t/creating-a-grid-on-a-flat-surface-plane-or-otherwise/22753)

<div class="topic-metadata">

**Author:** [@redthanos](https://discourse.processing.org/u/redthanos)\
**Replies:** 3\
**Last updated:** [July 22, 2020, 7:57am UTC](https://discourse.processing.org/t/creating-a-grid-on-a-flat-surface-plane-or-otherwise/22753 "2020-07-22T07:57:36Z")

</div>

Hi everyone, i am new to processing and so far i’ve found it interesting to use in animating stuff on the web. I’ve come to a point where I want to create a 3D vector, or a surface for testing purposes, however I get a …

---

## [Making tons of bullets flying in random directions](https://discourse.processing.org/t/making-tons-of-bullets-flying-in-random-directions/22745)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 9\
**Last updated:** [July 22, 2020, 7:30am UTC](https://discourse.processing.org/t/making-tons-of-bullets-flying-in-random-directions/22745 "2020-07-22T07:30:02Z")

</div>

So I have a game here: int x = 500; int y = 300; int f1 = 255; int f2 = 255; int f3 = 255; int ap = 120; int hp = 190; boolean showrange = true; PFont font; float xSpeed = 0; float ySpeed = 0; BulletSystem b1; boolean…

---

## [Top-down game template](https://discourse.processing.org/t/top-down-game-template/22770)

<div class="topic-metadata">

**Author:** [@Edgard142ofWelshdale](https://discourse.processing.org/u/Edgard142ofWelshdale)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 1:51am UTC](https://discourse.processing.org/t/top-down-game-template/22770 "2020-07-22T01:51:03Z")

</div>

This is a template I have been using personally to get started quick with a new top-down game without doing all the simple stuff like player movement for the tenth time. I’m posting this in the Beginners section because …

---

## [Moving a player rectangle smoothly](https://discourse.processing.org/t/moving-a-player-rectangle-smoothly/22763)

<div class="topic-metadata">

**Author:** [@Edgard142ofWelshdale](https://discourse.processing.org/u/Edgard142ofWelshdale)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 10:18pm UTC](https://discourse.processing.org/t/moving-a-player-rectangle-smoothly/22763 "2020-07-21T22:18:03Z")

</div>

Hello! I like making simple arcade-like games in processing and have always had an issue with smooth movement. At first, I was using the void keyPressed() function to move the player. void keyPressed()//keypressed fuct…

---

## [External Libraries Do Not Import Properly Into Web Editor](https://discourse.processing.org/t/external-libraries-do-not-import-properly-into-web-editor/22750)

<div class="topic-metadata">

**Author:** [@Hepyrian](https://discourse.processing.org/u/Hepyrian)\
**Replies:** 4\
**Last updated:** [July 21, 2020, 9:21pm UTC](https://discourse.processing.org/t/external-libraries-do-not-import-properly-into-web-editor/22750 "2020-07-21T21:21:00Z")

</div>

Hey Everyone! I’ve been having some issues with the p5 web editor, where I try to import an external library and it uploads with no text or feedback at all. Then, when I try to call a function from the library, it acts …

---

## [P5 standalone build for Browserify](https://discourse.processing.org/t/p5-standalone-build-for-browserify/22748)

<div class="topic-metadata">

**Author:** [@xinxin](https://discourse.processing.org/u/xinxin)\
**Replies:** 1\
**Last updated:** [July 21, 2020, 7:54pm UTC](https://discourse.processing.org/t/p5-standalone-build-for-browserify/22748 "2020-07-21T19:54:31Z")

</div>

Hi All, I’m trying to create a p5 standalone build with Browserify. I’ve installed the p5 package and following this stack overflow thread, I was able to export the p5 object and run the following code in my client.js: …

---

## [Fancy gradient rainbow color on text?](https://discourse.processing.org/t/fancy-gradient-rainbow-color-on-text/22686)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 5\
**Last updated:** [July 21, 2020, 5:55pm UTC](https://discourse.processing.org/t/fancy-gradient-rainbow-color-on-text/22686 "2020-07-21T17:55:25Z")

</div>

What I want to do is basically this: but it is going through the text like this: I don’t exactly know where to start here or what I should do.

---

## [P5.js used for background data-vis of Vector Festival, an online new media arts festival](https://discourse.processing.org/t/p5-js-used-for-background-data-vis-of-vector-festival-an-online-new-media-arts-festival/22761)

<div class="topic-metadata">

**Author:** [@jshaw3](https://discourse.processing.org/u/jshaw3)\
**Replies:** 0\
**Last updated:** [July 21, 2020, 3:33pm UTC](https://discourse.processing.org/t/p5-js-used-for-background-data-vis-of-vector-festival-an-online-new-media-arts-festival/22761 "2020-07-21T15:33:14Z")

</div>

This week in Toronto, Vector Festival, a new media festival is happening. The festival is organized by Inter/Access. Typically it’s been a more IRL event, but because of everything going on it’s moved online. Most o…

---

## [Delete post (no longer necessary)](https://discourse.processing.org/t/delete-post-no-longer-necessary/22694)

<div class="topic-metadata">

**Author:** [@carlos.411](https://discourse.processing.org/u/carlos.411)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 12:01pm UTC](https://discourse.processing.org/t/delete-post-no-longer-necessary/22694 "2020-07-21T12:01:12Z")

</div>

DELETE POST (did not receive the necessary help, and was able to solve on my own).

---

## [ArrayIndexoutofboundsexception: 9](https://discourse.processing.org/t/arrayindexoutofboundsexception-9/22702)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 10:33am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-9/22702 "2020-07-21T10:33:31Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Im getting ArrayIndexoutofboundsexception: 9 error as I read data from serial port.

---

## [Objects in objects](https://discourse.processing.org/t/objects-in-objects/22486)

<div class="topic-metadata">

**Author:** [@carnalizer](https://discourse.processing.org/u/carnalizer)\
**Replies:** 10\
**Last updated:** [July 21, 2020, 10:13am UTC](https://discourse.processing.org/t/objects-in-objects/22486 "2020-07-21T10:13:42Z")

</div>

Hi, I have a mostly theoretical question about objects that have objects (or contain an ArrayList of objects). Inside the nested objects, there’s no ‘built in’ way of getting to the original object, right? I can solve t…

---

## [Help me please how to remove little circle?](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564)

<div class="topic-metadata">

**Author:** [@Rai](https://discourse.processing.org/u/Rai)\
**Replies:** 26\
**Last updated:** [July 21, 2020, 6:24am UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564 "2020-07-21T06:24:28Z")

</div>

void setup() { size(640, 480); background(255); } void draw() { strokeWeight(10); stroke(255, 0, 0, 50); line(pmouseX, pmouseY, mouseX, mouseY); }

---

## [Downscaling an image to an array](https://discourse.processing.org/t/downscaling-an-image-to-an-array/22746)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [July 20, 2020, 11:07pm UTC](https://discourse.processing.org/t/downscaling-an-image-to-an-array/22746 "2020-07-20T23:07:39Z")

</div>

currently stuck with this problem, and its probably easy however m brain cant figure it out. PImage img; ArrayList\<Float\> array = new ArrayList\<Float\>(); int cols = 202; int rows = 200; int res,ry; void setup(){ size…

---

## [Adjust text size based on screen resolution](https://discourse.processing.org/t/adjust-text-size-based-on-screen-resolution/22747)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 11:03pm UTC](https://discourse.processing.org/t/adjust-text-size-based-on-screen-resolution/22747 "2020-07-20T23:03:15Z")

</div>

Hello Recently I discovered how to make my programs resizable in Windows (Add surface.setResizable(true); in setup()) This led me to make a function that changes the location of certain elements based on resoloution…

---

## [Hi guys, I'm new to processing and I need help](https://discourse.processing.org/t/hi-guys-im-new-to-processing-and-i-need-help/22625)

<div class="topic-metadata">

**Author:** [@nhghi](https://discourse.processing.org/u/nhghi)\
**Replies:** 5\
**Last updated:** [July 20, 2020, 10:46pm UTC](https://discourse.processing.org/t/hi-guys-im-new-to-processing-and-i-need-help/22625 "2020-07-20T22:46:16Z")

</div>

so I’m trying to make an effect is like “Newton’s cradle”. I have n number of circles that go around my mouse. so the first n-1 circle go around my mouse with SPEED constance and the other circle go with 2\*SPEED with opp…

---

## [How move player in board](https://discourse.processing.org/t/how-move-player-in-board/22731)

<div class="topic-metadata">

**Author:** [@Xremix31](https://discourse.processing.org/u/Xremix31)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 6:02pm UTC](https://discourse.processing.org/t/how-move-player-in-board/22731 "2020-07-20T18:02:00Z")

</div>

Hello, I’m having trouble making the player move on the board. I already corrected the post and put the functions in correct classes. How do I get the houses id and correct these two mistakes? I tried to declare the id i…

---

## [Beginner help with sound and interaction of objects](https://discourse.processing.org/t/beginner-help-with-sound-and-interaction-of-objects/22743)

<div class="topic-metadata">

**Author:** [@ahagele](https://discourse.processing.org/u/ahagele)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 1:18pm UTC](https://discourse.processing.org/t/beginner-help-with-sound-and-interaction-of-objects/22743 "2020-07-20T13:18:43Z")

</div>

I am very VERY new at coding and I’m not sure how to make it so if the apple touches the basket then the score will increase by one; instead the score increases by one when it crosses the Y-axis of the basket so every ti…

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

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