# Processing

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

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

**Page:** 59

---

## [Loss of sound/audio when using VideoExport (hamoid import)](https://discourse.processing.org/t/loss-of-sound-audio-when-using-videoexport-hamoid-import/23306)

<div class="topic-metadata">

**Author:** [@jesspayne](https://discourse.processing.org/u/jesspayne)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 6:35pm UTC](https://discourse.processing.org/t/loss-of-sound-audio-when-using-videoexport-hamoid-import/23306 "2022-11-19T18:35:35Z")

</div>

Hi all, I’m trying to export my sketch using the VideoExport function (Hamoid import) but am losing sound on playback. I’ve copied my code below - am I missing something? Thanks in advance, Jess import com.hamoid.\*; …

---

## [How to solve error: "Error in void"?](https://discourse.processing.org/t/how-to-solve-error-error-in-void/39790)

<div class="topic-metadata">

**Author:** [@nicoos](https://discourse.processing.org/u/nicoos)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 5:37pm UTC](https://discourse.processing.org/t/how-to-solve-error-error-in-void/39790 "2022-11-19T17:37:03Z")

</div>

//Google chrome dinosaurio Dinosaurio d1 = new Dinosaurio void setup(){ //void setup its an error says. size(1080, 720); } void draw() { background(255); d1.display(); }

---

## [Spherical Coordinates and Angle back to Origin?](https://discourse.processing.org/t/spherical-coordinates-and-angle-back-to-origin/39770)

<div class="topic-metadata">

**Author:** [@ASHER](https://discourse.processing.org/u/ASHER)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 12:53pm UTC](https://discourse.processing.org/t/spherical-coordinates-and-angle-back-to-origin/39770 "2022-11-19T12:53:58Z")

</div>

Alright, so I’ve been Googling for several days and cannot figure how to solve what I think is rather simple…? I’ve also searched the forum here and will list at the end some of the links I’ve explored. Context: In 2D I…

---

## [Basic Newbie OSC int and float](https://discourse.processing.org/t/basic-newbie-osc-int-and-float/39758)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 2\
**Last updated:** [November 19, 2022, 9:08am UTC](https://discourse.processing.org/t/basic-newbie-osc-int-and-float/39758 "2022-11-19T09:08:19Z")

</div>

Dear All, I’m going crazy trying to work this out - it’s gotta be something so obvious, but I’m just not getting there. I have a Lemur template on an ipad sending OSC to my MacBook (see attached image). I want to jump…

---

## [Halftone with custom shape or typography](https://discourse.processing.org/t/halftone-with-custom-shape-or-typography/39767)

<div class="topic-metadata">

**Author:** [@eddg101](https://discourse.processing.org/u/eddg101)\
**Replies:** 2\
**Last updated:** [November 18, 2022, 10:26am UTC](https://discourse.processing.org/t/halftone-with-custom-shape-or-typography/39767 "2022-11-18T10:26:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Does anyone know how to create half tone images with custom shapes or an imported shape? Also want to achieve this effect with typography, the …

---

## [Preferences are reset every time when I open Processing](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883)

<div class="topic-metadata">

**Author:** [@sugree](https://discourse.processing.org/u/sugree)\
**Replies:** 6\
**Last updated:** [November 18, 2022, 7:04am UTC](https://discourse.processing.org/t/preferences-are-reset-every-time-when-i-open-processing/36883 "2022-11-18T07:04:03Z")

</div>

I’m in Windows 10. Every time I open Processing, all the Settings in the preferences are reset. Has anyone ever seen this before? How should I deal with it?

---

## [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…

---

## [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 …

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [Minim gain not increasing past 6.026dB](https://discourse.processing.org/t/minim-gain-not-increasing-past-6-026db/39698)

<div class="topic-metadata">

**Author:** [@rigo](https://discourse.processing.org/u/rigo)\
**Replies:** 0\
**Last updated:** [November 14, 2022, 3:25am UTC](https://discourse.processing.org/t/minim-gain-not-increasing-past-6-026db/39698 "2022-11-14T03:25:21Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m trying to get audio output from processing after receiving input from an arduino. I was just trying to test the processing code without the …

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

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