# Latest

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

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

**Page:** 102

---

## [Restart using key pressed](https://discourse.processing.org/t/restart-using-key-pressed/39765)

<div class="topic-metadata">

**Author:** [@akar](https://discourse.processing.org/u/akar)\
**Replies:** 5\
**Last updated:** [November 18, 2022, 3:49am UTC](https://discourse.processing.org/t/restart-using-key-pressed/39765 "2022-11-18T03:49:52Z")

</div>

//for the menu int toggle =1; int width=640; int height=360; void setup() { size(1280, 720); } void draw() { background(255); noStroke(); fill(0); float s=5.0; for (int i=0; i\<height; i++) { for (int j=0; j\<w…

---

## [How to save a sketch with audio instead only images](https://discourse.processing.org/t/how-to-save-a-sketch-with-audio-instead-only-images/39741)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 6\
**Last updated:** [November 17, 2022, 10:06pm UTC](https://discourse.processing.org/t/how-to-save-a-sketch-with-audio-instead-only-images/39741 "2022-11-17T22:06:40Z")

</div>

Hi, please. i need a help here… I made this code wich image and sound. As long i move the mouse the noise changes. How can i save it to render as a video instead only images? \< import processing.sound.\*; BrownNoise n…

---

## [I need help on my number guessing game](https://discourse.processing.org/t/i-need-help-on-my-number-guessing-game/39648)

<div class="topic-metadata">

**Author:** [@codinghelp](https://discourse.processing.org/u/codinghelp)\
**Replies:** 7\
**Last updated:** [November 17, 2022, 10:04pm UTC](https://discourse.processing.org/t/i-need-help-on-my-number-guessing-game/39648 "2022-11-17T22:04:04Z")

</div>

Hi, fellow Coders. I recently got this assignment and I’m halfway through it. It’s a number guessing game. void setup() { size(600,600); background(230,230,255); } int onum = int(random(0,9)); // onum = Origin…

---

## [Processing Community Catalog](https://discourse.processing.org/t/processing-community-catalog/31839)

<div class="topic-metadata">

**Author:** [@ProcessingOrg](https://discourse.processing.org/u/ProcessingOrg)\
**Replies:** 3\
**Last updated:** [November 17, 2022, 5:39pm UTC](https://discourse.processing.org/t/processing-community-catalog/31839 "2022-11-17T17:39:51Z")

</div>

We’re creating a Processing Community Catalog to celebrate all the work we’ve done together with Processing for the last 20 years! This is an open call to contribute one page to the publication. :slight\_smile: You can r…

---

## [I have some simple questions](https://discourse.processing.org/t/i-have-some-simple-questions/39756)

<div class="topic-metadata">

**Author:** [@OhiosStrongest](https://discourse.processing.org/u/OhiosStrongest)\
**Replies:** 5\
**Last updated:** [November 17, 2022, 5:11pm UTC](https://discourse.processing.org/t/i-have-some-simple-questions/39756 "2022-11-17T17:11:14Z")

</div>

How do I make it so that only one part of a program executes once? I have an animation that when the mouse is pressed the background is changed. However, I only want this to happen once. How do I make it so that only …

---

## [How to animate a square with circular movement, varying rotation and scale](https://discourse.processing.org/t/how-to-animate-a-square-with-circular-movement-varying-rotation-and-scale/39733)

<div class="topic-metadata">

**Author:** [@Gerardo\_DiazL](https://discourse.processing.org/u/Gerardo_DiazL)\
**Replies:** 1\
**Last updated:** [November 17, 2022, 11:09am UTC](https://discourse.processing.org/t/how-to-animate-a-square-with-circular-movement-varying-rotation-and-scale/39733 "2022-11-17T11:09:17Z")

</div>

//ciclo de vida se translada a processing float rotate=0; void setup(){ size(800,800,P3D); stroke(255); noFill(); } void draw(){ //Limpiar el cuadro anterior de dibujo background(0); //identity float tx=width/…

---

## [Final Project - financial illustration imported from excel value table](https://discourse.processing.org/t/final-project-financial-illustration-imported-from-excel-value-table/39752)

<div class="topic-metadata">

**Author:** [@DanielProwess](https://discourse.processing.org/u/DanielProwess)\
**Replies:** 1\
**Last updated:** [November 17, 2022, 11:01am UTC](https://discourse.processing.org/t/final-project-financial-illustration-imported-from-excel-value-table/39752 "2022-11-17T11:01:08Z")

</div>

Hello, I am beginning a final project for my intro CS class. My goal is to create a program in processing that can take a monthly budget spreadsheet from excel and illustrate it as a multitude of charts. I’d like to hea…

---

## [Processing vs p5.js specifically for brand design](https://discourse.processing.org/t/processing-vs-p5-js-specifically-for-brand-design/39715)

<div class="topic-metadata">

**Author:** [@andylawrencelevy](https://discourse.processing.org/u/andylawrencelevy)\
**Replies:** 9\
**Last updated:** [November 17, 2022, 10:53am UTC](https://discourse.processing.org/t/processing-vs-p5-js-specifically-for-brand-design/39715 "2022-11-17T10:53:43Z")

</div>

Hi there, I’m a brand designer, with not so much experience with coding. I want to learn creative coding to help me create flexible and interactive brand design systems. I’ve done a p5.js tutorial class which I followe…

---

## [Top Down View - Pokémon Like](https://discourse.processing.org/t/top-down-view-pokemon-like/39744)

<div class="topic-metadata">

**Author:** [@Afador](https://discourse.processing.org/u/Afador)\
**Replies:** 7\
**Last updated:** [November 16, 2022, 4:44pm UTC](https://discourse.processing.org/t/top-down-view-pokemon-like/39744 "2022-11-16T16:44:10Z")

</div>

I’ve been working on a top down 2d artsytle game, but every time I try to code the top down view I seem to always make it too complicated to reuse or it just flat out doesn’t work. I was hoping someone knew how to code …

---

## [Bezier curve strength weight points](https://discourse.processing.org/t/bezier-curve-strength-weight-points/39629)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 6\
**Last updated:** [November 16, 2022, 3:34pm UTC](https://discourse.processing.org/t/bezier-curve-strength-weight-points/39629 "2022-11-16T15:34:00Z")

</div>

Hi everyone, I have a simple bezier code here and would like to know if it is possible to give the weight point that shapes the line into a curve more weight? Let the curve be pulled closer to the point. Is there a way …

---

## [How can i make the size of ellipse keeps the size after i released the mouse](https://discourse.processing.org/t/how-can-i-make-the-size-of-ellipse-keeps-the-size-after-i-released-the-mouse/39694)

<div class="topic-metadata">

**Author:** [@returng](https://discourse.processing.org/u/returng)\
**Replies:** 10\
**Last updated:** [November 16, 2022, 11:17am UTC](https://discourse.processing.org/t/how-can-i-make-the-size-of-ellipse-keeps-the-size-after-i-released-the-mouse/39694 "2022-11-16T11:17:11Z")

</div>

My task it that I have to make the size of the ellipse become smaller as I use mousePressed, but then I need it to keep the size after I released the mouse, not the original size. class Particle{ float x; //X Position …

---

## [Generating font characters from image and upscaling resolution afterwards](https://discourse.processing.org/t/generating-font-characters-from-image-and-upscaling-resolution-afterwards/39723)

<div class="topic-metadata">

**Author:** [@Empyreans](https://discourse.processing.org/u/Empyreans)\
**Replies:** 4\
**Last updated:** [November 16, 2022, 11:33am UTC](https://discourse.processing.org/t/generating-font-characters-from-image-and-upscaling-resolution-afterwards/39723 "2022-11-16T11:33:31Z")

</div>

Hello dear community, I am currently in the situation of creating an ASCII image from a source image. The resulting ASCII image is written to a PGraphics buffer that I save at the end. Of course I use the source images…

---

## [Changing in between figures with a key pressed](https://discourse.processing.org/t/changing-in-between-figures-with-a-key-pressed/39728)

<div class="topic-metadata">

**Author:** [@Katsucchi](https://discourse.processing.org/u/Katsucchi)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 7:37am UTC](https://discourse.processing.org/t/changing-in-between-figures-with-a-key-pressed/39728 "2022-11-16T07:37:39Z")

</div>

Hello I am currently working on a coding assignment, where i am supposed to make 3 different figures, a Cube, a Cone and a Zylinder. Now i am stuck with a problem tho, a part of the assignment is to make the figures cha…

---

## [Help on Number Guess Game](https://discourse.processing.org/t/help-on-number-guess-game/39738)

<div class="topic-metadata">

**Author:** [@codinghelp](https://discourse.processing.org/u/codinghelp)\
**Replies:** 1\
**Last updated:** [November 16, 2022, 7:26am UTC](https://discourse.processing.org/t/help-on-number-guess-game/39738 "2022-11-16T07:26:38Z")

</div>

Hi, Thank you for your help! I’ve done it. After the player guesses correctly, it prompts them for Y to play again and N to exit. After they press Y how would you reset the char? Aka make a new number for them to guess. …

---

## [Generate music with image that move with mouse](https://discourse.processing.org/t/generate-music-with-image-that-move-with-mouse/39726)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 3\
**Last updated:** [November 15, 2022, 11:48pm UTC](https://discourse.processing.org/t/generate-music-with-image-that-move-with-mouse/39726 "2022-11-15T23:48:02Z")

</div>

Hello. I’m starting with processing and I’ve been putting together examples to create my own. In this one I would like to add some sound when moving the mouse (and the square drawing). How to add a sample or a noise w…

---

## [User input to instances of text](https://discourse.processing.org/t/user-input-to-instances-of-text/39719)

<div class="topic-metadata">

**Author:** [@brandedbow](https://discourse.processing.org/u/brandedbow)\
**Replies:** 1\
**Last updated:** [November 15, 2022, 4:56pm UTC](https://discourse.processing.org/t/user-input-to-instances-of-text/39719 "2022-11-15T16:56:27Z")

</div>

I’m trying to make a chat input space where the user can type in a string of text and when submitted it would appear as an object that is affected by physics. I am stuck because whenever I send a new string of text, the …

---

## [Lines spin animation](https://discourse.processing.org/t/lines-spin-animation/39711)

<div class="topic-metadata">

**Author:** [@add](https://discourse.processing.org/u/add)\
**Replies:** 3\
**Last updated:** [November 15, 2022, 10:50am UTC](https://discourse.processing.org/t/lines-spin-animation/39711 "2022-11-15T10:50:18Z")

</div>

hi! who knows why my lines are distorted after a few seconds after running, even if from the beginning everything works correctly? Thank you in advance float a,b; void setup() { size(100,100); frameRate= 30; } void …

---

## [Displaying Image on Top of Background - Cockpit view jump into hyperspace](https://discourse.processing.org/t/displaying-image-on-top-of-background-cockpit-view-jump-into-hyperspace/39709)

<div class="topic-metadata">

**Author:** [@carlymoj](https://discourse.processing.org/u/carlymoj)\
**Replies:** 3\
**Last updated:** [November 15, 2022, 10:43am UTC](https://discourse.processing.org/t/displaying-image-on-top-of-background-cockpit-view-jump-into-hyperspace/39709 "2022-11-15T10:43:32Z")

</div>

I am trying to create a starfield with an image of a cockpit in front as if the viewer is sitting in a cockpit jumping into hyperspace. I am using Daniel Shiffman’s starfield coding challenge as the inspiration. The code…

---

## [How to get 'get()' working on image created by 'createImg()'?](https://discourse.processing.org/t/how-to-get-get-working-on-image-created-by-createimg/39701)

<div class="topic-metadata">

**Author:** [@kkouch](https://discourse.processing.org/u/kkouch)\
**Replies:** 2\
**Last updated:** [November 15, 2022, 7:10am UTC](https://discourse.processing.org/t/how-to-get-get-working-on-image-created-by-createimg/39701 "2022-11-15T07:10:43Z")

</div>

Hello. I’m currently making a program where I need to get a section of an image and save it to a given variable. The problem is that ‘get()’ only works on p5.Image objects and when I try to use it on an image created by …

---

## [Custom Game project](https://discourse.processing.org/t/custom-game-project/39707)

<div class="topic-metadata">

**Author:** [@JHProcess](https://discourse.processing.org/u/JHProcess)\
**Replies:** 16\
**Last updated:** [November 15, 2022, 3:47am UTC](https://discourse.processing.org/t/custom-game-project/39707 "2022-11-15T03:47:31Z")

</div>

Hello everyone once again! I’m having a problem trying to make a game, i have my concept and have gotten some help from my professor but im still coming up with errors. The concept of the game is you control a bubble th…

---

## [Help resetting variables inside classes, arrays](https://discourse.processing.org/t/help-resetting-variables-inside-classes-arrays/39716)

<div class="topic-metadata">

**Author:** [@moffmix](https://discourse.processing.org/u/moffmix)\
**Replies:** 3\
**Last updated:** [November 15, 2022, 2:01am UTC](https://discourse.processing.org/t/help-resetting-variables-inside-classes-arrays/39716 "2022-11-15T02:01:04Z")

</div>

Hi there! Full disclosure, this is for my beginner’s coding class, so I might not get the names of different resources correct or might have stuff in weird places - any advice is appreciated, but the simpler the better r…

---

## [Text and image display](https://discourse.processing.org/t/text-and-image-display/39710)

<div class="topic-metadata">

**Author:** [@add](https://discourse.processing.org/u/add)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 10:07pm UTC](https://discourse.processing.org/t/text-and-image-display/39710 "2022-11-14T22:07:11Z")

</div>

hello. Please help me! I must do this program: Add a rectangle in which the key-input is entered. When the ENTER-key is pressed, show the image corresponding with the entered digit (only the first one if more than one d…

---

## [Simple text input program](https://discourse.processing.org/t/simple-text-input-program/26005)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 9:38pm UTC](https://discourse.processing.org/t/simple-text-input-program/26005 "2022-11-14T21:38:49Z")

</div>

A program that allows to type in text. Whenever you hit enter, it will print it into the console. Features: Can enter letters from the “acceptableInput” string use arrow keys (LEFT and RIGHT) or click on the text to e…

---

## [Help making a painting effect without refreshing background](https://discourse.processing.org/t/help-making-a-painting-effect-without-refreshing-background/39685)

<div class="topic-metadata">

**Author:** [@moffmix](https://discourse.processing.org/u/moffmix)\
**Replies:** 5\
**Last updated:** [November 14, 2022, 9:29pm UTC](https://discourse.processing.org/t/help-making-a-painting-effect-without-refreshing-background/39685 "2022-11-14T21:29:46Z")

</div>

Hi there! Full disclosure, this is a part of a larger assignment for my beginner’s processing class, so if you wouldn’t mind keeping any advice fairly simple I’d really appreciate that! Basically, I’m trying to mimic wh…

---

## [Similar to Method Overriding in Java, how to override the method about Box2d](https://discourse.processing.org/t/similar-to-method-overriding-in-java-how-to-override-the-method-about-box2d/39706)

<div class="topic-metadata">

**Author:** [@huxx](https://discourse.processing.org/u/huxx)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 4:49pm UTC](https://discourse.processing.org/t/similar-to-method-overriding-in-java-how-to-override-the-method-about-box2d/39706 "2022-11-14T16:49:49Z")

</div>

beginContact() is a method of box2d Library. I want to use it in processing.py. Due to the difference between java and python, the error comes out: You are missing the beginContact() method. java.lang.NoSuchMethodExcep…

---

## [Processing needs your help! Take the 2022 Processing Community Survey 📝](https://discourse.processing.org/t/processing-needs-your-help-take-the-2022-processing-community-survey/39704)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 3:44pm UTC](https://discourse.processing.org/t/processing-needs-your-help-take-the-2022-processing-community-survey/39704 "2022-11-14T15:44:47Z")

</div>

Dear Processing Community, We want to hear from you :smile: What do you love about our software projects? What could be improved? If you use Processing or p5.js (or any of the tools from the Processing family) this is y…

---

## [Is it possible to create a pdf file with multiple sizes?](https://discourse.processing.org/t/is-it-possible-to-create-a-pdf-file-with-multiple-sizes/39695)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 1\
**Last updated:** [November 14, 2022, 1:38pm UTC](https://discourse.processing.org/t/is-it-possible-to-create-a-pdf-file-with-multiple-sizes/39695 "2022-11-14T13:38:58Z")

</div>

Hi ! I wonder if there is a hint to use multiple page sizes in a pdf document ? (for example, the document’s first page with the whole cover of a book - including the front, the back and the spine) The pdf format can m…

---

## [Glsl shader not showing any errors, but neither any output](https://discourse.processing.org/t/glsl-shader-not-showing-any-errors-but-neither-any-output/39628)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [November 14, 2022, 12:32pm UTC](https://discourse.processing.org/t/glsl-shader-not-showing-any-errors-but-neither-any-output/39628 "2022-11-14T12:32:34Z")

</div>

When I use this shader, I see no errors, but neither any color is drawn. vert: #version 330 core layout (location = 0) in vec3 aPos; out vec4 vertexColor; void main() { gl\_Position = vec4(aPos, 1.0); vertex…

---

## [Converting a video file to a sprite sheet](https://discourse.processing.org/t/converting-a-video-file-to-a-sprite-sheet/39687)

<div class="topic-metadata">

**Author:** [@5x9x7x2x7x9](https://discourse.processing.org/u/5x9x7x2x7x9)\
**Replies:** 3\
**Last updated:** [November 13, 2022, 11:46pm UTC](https://discourse.processing.org/t/converting-a-video-file-to-a-sprite-sheet/39687 "2022-11-13T23:46:54Z")

</div>

Im trying to make something that can Convert a video file (.MP4 in this case) into a spritesheet. I plan to create a new image with the dimension being Video.width\*Video.frames by Video.height, Video.frames being how ma…

---

## [Makes eyes follow mouse cursor](https://discourse.processing.org/t/makes-eyes-follow-mouse-cursor/13816)

<div class="topic-metadata">

**Author:** [@jimmy5517](https://discourse.processing.org/u/jimmy5517)\
**Replies:** 1\
**Last updated:** [September 5, 2019, 5:53am UTC](https://discourse.processing.org/t/makes-eyes-follow-mouse-cursor/13816 "2019-09-05T05:53:45Z")

</div>

I’m fairly new to coding, but for a project I’m working on, I’m trying to make a pair of eyes that will follow my mouse cursor. I want the eyes to look at roughly where I point my cursor, while also staying inside the e…

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

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