# Processing

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

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

**Page:** 124

---

## [Open console instead of window](https://discourse.processing.org/t/open-console-instead-of-window/31040)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 11\
**Last updated:** [July 9, 2021, 6:43am UTC](https://discourse.processing.org/t/open-console-instead-of-window/31040 "2021-07-09T06:43:32Z")

</div>

Hi! Is it possible to open a console window instead of default window? C++ style, where you can input text / values into it? How does that affect the setup() and draw()? How simple can you make it? I am planning to teac…

---

## [Create Multiple Diagonal Lines](https://discourse.processing.org/t/create-multiple-diagonal-lines/31121)

<div class="topic-metadata">

**Author:** [@bopStu77](https://discourse.processing.org/u/bopStu77)\
**Replies:** 2\
**Last updated:** [July 9, 2021, 1:28am UTC](https://discourse.processing.org/t/create-multiple-diagonal-lines/31121 "2021-07-09T01:28:15Z")

</div>

I’m new to processing and coding. I’m wondering how you get this done.

---

## [Download Videos from websites for example "animefrenzy"](https://discourse.processing.org/t/download-videos-from-websites-for-example-animefrenzy/31106)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 11\
**Last updated:** [July 8, 2021, 8:32pm UTC](https://discourse.processing.org/t/download-videos-from-websites-for-example-animefrenzy/31106 "2021-07-08T20:32:20Z")

</div>

Hey, I want to write a program with which you can download and watch the series hunter x hunter. I just need help with the download as I just can’t find a solution. I know I need “more” java for this problem. That’s why …

---

## [Repeat text x times](https://discourse.processing.org/t/repeat-text-x-times/31032)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 25\
**Last updated:** [July 8, 2021, 11:34am UTC](https://discourse.processing.org/t/repeat-text-x-times/31032 "2021-07-08T11:34:41Z")

</div>

how do i print a letter, x times? for example, an a repeated 6 times would be aaaaaa

---

## [Random Achievement system](https://discourse.processing.org/t/random-achievement-system/31063)

<div class="topic-metadata">

**Author:** [@Gyrosis](https://discourse.processing.org/u/Gyrosis)\
**Replies:** 2\
**Last updated:** [July 7, 2021, 2:33pm UTC](https://discourse.processing.org/t/random-achievement-system/31063 "2021-07-07T14:33:09Z")

</div>

How would I create an achievement system so when I kill an X amount of random enemies in a random X amount of time.

---

## [Project for improving touch typing](https://discourse.processing.org/t/project-for-improving-touch-typing/31053)

<div class="topic-metadata">

**Author:** [@AlbertoGiSa](https://discourse.processing.org/u/AlbertoGiSa)\
**Replies:** 1\
**Last updated:** [July 7, 2021, 2:29pm UTC](https://discourse.processing.org/t/project-for-improving-touch-typing/31053 "2021-07-07T14:29:30Z")

</div>

Hello All! I bring a project to help us, one for all, with our touch typing. What I want is to have the image of our fingers on the keyboard in the very computer’s screen. So we can stop looking down to the keyboard wh…

---

## [Rotating the sprite using mouse](https://discourse.processing.org/t/rotating-the-sprite-using-mouse/30997)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 16\
**Last updated:** [July 6, 2021, 11:18pm UTC](https://discourse.processing.org/t/rotating-the-sprite-using-mouse/30997 "2021-07-06T23:18:39Z")

</div>

Hello! I want my sprite’s front to rotate in the direction of the mouse pointer. But it isn’t doing so properly (as you can see in the pic). The pointer is behind the car, but I want it to be in front of the car. I’ve tr…

---

## [Several elements interactivity](https://discourse.processing.org/t/several-elements-interactivity/31081)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 4\
**Last updated:** [July 6, 2021, 9:44pm UTC](https://discourse.processing.org/t/several-elements-interactivity/31081 "2021-07-06T21:44:17Z")

</div>

Hi there! I have learned how to move an element with mouseX and mouseY, in this case, a red dot. Now I want to stop red dote and move another blue dot with my finger. ¿How could I do it? Thanks! void setup() { size(10…

---

## [Generative Design Library](https://discourse.processing.org/t/generative-design-library/31073)

<div class="topic-metadata">

**Author:** [@Kingjuleyann](https://discourse.processing.org/u/Kingjuleyann)\
**Replies:** 7\
**Last updated:** [July 6, 2021, 8:44pm UTC](https://discourse.processing.org/t/generative-design-library/31073 "2021-07-06T20:44:09Z")

</div>

hello, I have been searching for a way to outline my text in the program I’m making and found a topic recomending the use of the “Generative Design” library. I’ve looked at the reference and on the internet but I don’t f…

---

## [Fragment shader vertColor question](https://discourse.processing.org/t/fragment-shader-vertcolor-question/31076)

<div class="topic-metadata">

**Author:** [@zmitchell](https://discourse.processing.org/u/zmitchell)\
**Replies:** 1\
**Last updated:** [July 6, 2021, 11:45am UTC](https://discourse.processing.org/t/fragment-shader-vertcolor-question/31076 "2021-07-06T11:45:02Z")

</div>

I’m reading the PShader reference and I have a question about code listing 4.2: Vertex shader: uniform mat4 transform; attribute vec4 position; attribute vec4 color; varying vec4 vertColor; void main() { gl\_Positi…

---

## [Is NFC possibile on Processing for Android?](https://discourse.processing.org/t/is-nfc-possibile-on-processing-for-android/31068)

<div class="topic-metadata">

**Author:** [@Z4buz4](https://discourse.processing.org/u/Z4buz4)\
**Replies:** 5\
**Last updated:** [July 6, 2021, 11:09am UTC](https://discourse.processing.org/t/is-nfc-possibile-on-processing-for-android/31068 "2021-07-06T11:09:36Z")

</div>

Good evening, is there a (hopefully simple) way to use NFC on Processing for Android? I was reading from the tutorials that for sensors other than the accelerometer, is suggested to use the Ketai library but i’ve also f…

---

## [Timer without delay()](https://discourse.processing.org/t/timer-without-delay/31080)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 1\
**Last updated:** [July 6, 2021, 3:11am UTC](https://discourse.processing.org/t/timer-without-delay/31080 "2021-07-06T03:11:45Z")

</div>

I have written a code for a stopwatch (when button pressed, it starts), but I have used delay(). Is there a way to perform it without delay()? lcd.setCursor(0, 1); if (buttonValue1 == LOW) { startTime = millis(); …

---

## [Unexpected spikes in noise values?](https://discourse.processing.org/t/unexpected-spikes-in-noise-values/30801)

<div class="topic-metadata">

**Author:** [@zmitchell](https://discourse.processing.org/u/zmitchell)\
**Replies:** 7\
**Last updated:** [July 5, 2021, 8:24pm UTC](https://discourse.processing.org/t/unexpected-spikes-in-noise-values/30801 "2021-07-05T20:24:38Z")

</div>

I’m trying to create a circle/ellipse/loop whose radius varies with the built-in noise function. I’m using Quil, a set of Clojure bindings to the Processing framework, so I’ll paste my code below and explain it since I s…

---

## [Straight line pattern with random position](https://discourse.processing.org/t/straight-line-pattern-with-random-position/31075)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 1\
**Last updated:** [July 5, 2021, 6:06pm UTC](https://discourse.processing.org/t/straight-line-pattern-with-random-position/31075 "2021-07-05T18:06:02Z")

</div>

Hi there! I have made this straight line pattern that you can see in my code, looking a tutorial. Now I want to change the position of the pattern and make it random, it would be very difficult? float x=100; void …

---

## [How to draw linear (input) data points around circular shape](https://discourse.processing.org/t/how-to-draw-linear-input-data-points-around-circular-shape/31015)

<div class="topic-metadata">

**Author:** [@domha91](https://discourse.processing.org/u/domha91)\
**Replies:** 4\
**Last updated:** [July 5, 2021, 3:09pm UTC](https://discourse.processing.org/t/how-to-draw-linear-input-data-points-around-circular-shape/31015 "2021-07-05T15:09:15Z")

</div>

Sorry if the title is a little too abstract but this is a hard concept for me to put into words. The code is not too difficult but my main issue is the maths. It is based on receving OSC messages from TidalCycles, liveco…

---

## [Rotating using potentiometer issue](https://discourse.processing.org/t/rotating-using-potentiometer-issue/31064)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 6\
**Last updated:** [July 5, 2021, 12:30pm UTC](https://discourse.processing.org/t/rotating-using-potentiometer-issue/31064 "2021-07-05T12:30:38Z")

</div>

I could actually implement the rotation of the car using arduino’s potentiometer (like a steering). But the issue is when I rotate the car with potentiometer, it doesn’t drive in that direction, but instead drives in mou…

---

## [How can I use a variable to represent an array's length in the class?](https://discourse.processing.org/t/how-can-i-use-a-variable-to-represent-an-arrays-length-in-the-class/31060)

<div class="topic-metadata">

**Author:** [@karenChip](https://discourse.processing.org/u/karenChip)\
**Replies:** 2\
**Last updated:** [July 5, 2021, 6:20am UTC](https://discourse.processing.org/t/how-can-i-use-a-variable-to-represent-an-arrays-length-in-the-class/31060 "2021-07-05T06:20:05Z")

</div>

Hello guys, I’m trying to write an object with arrays in it. but i want to make the length of the array as a variable so i can manipulate in the parameters. so i set the array length as n in this code. Snake snake1; v…

---

## [Four rectangle buttons](https://discourse.processing.org/t/four-rectangle-buttons/31047)

<div class="topic-metadata">

**Author:** [@PARINAZ129](https://discourse.processing.org/u/PARINAZ129)\
**Replies:** 5\
**Last updated:** [July 4, 2021, 8:38pm UTC](https://discourse.processing.org/t/four-rectangle-buttons/31047 "2021-07-04T20:38:03Z")

</div>

Hello I wanted to make 4buttons that show individual color. however, when I click on each of them all buttons are turned on together. I know my problem is with the draw event but I don’t know what should I do. may I ki…

---

## [Problem PGraphics and export of images/video](https://discourse.processing.org/t/problem-pgraphics-and-export-of-images-video/31050)

<div class="topic-metadata">

**Author:** [@MyNameIsHere](https://discourse.processing.org/u/MyNameIsHere)\
**Replies:** 1\
**Last updated:** [July 4, 2021, 9:28pm UTC](https://discourse.processing.org/t/problem-pgraphics-and-export-of-images-video/31050 "2021-07-04T21:28:19Z")

</div>

I’m stuck and now turn to the forum because I can’t seem to find a solution online that works with that specific sketch and I assume as a beginner I’m not seeing something obvious or basic here. I was playing with a ske…

---

## [Creating Save Functionality for Embedded Objects](https://discourse.processing.org/t/creating-save-functionality-for-embedded-objects/31027)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 7\
**Last updated:** [July 4, 2021, 6:17pm UTC](https://discourse.processing.org/t/creating-save-functionality-for-embedded-objects/31027 "2021-07-04T18:17:19Z")

</div>

Hello All, I am working on a “Save” function for my current program. After doing a little research it seems the method is to have any meaningful data from the program save to some external source like a text document o…

---

## [Overlaping clickable buttons](https://discourse.processing.org/t/overlaping-clickable-buttons/31044)

<div class="topic-metadata">

**Author:** [@Kingjuleyann](https://discourse.processing.org/u/Kingjuleyann)\
**Replies:** 4\
**Last updated:** [July 4, 2021, 5:49pm UTC](https://discourse.processing.org/t/overlaping-clickable-buttons/31044 "2021-07-04T17:49:25Z")

</div>

hello world, I am currently making a game using processing but a have a bug I can’t solve: I have made a main menu that includes a clickable button leading to a submenu for single player game modes. when I click on the m…

---

## [Not sure why rotation isn't giving certain values](https://discourse.processing.org/t/not-sure-why-rotation-isnt-giving-certain-values/31035)

<div class="topic-metadata">

**Author:** [@LuckyDots](https://discourse.processing.org/u/LuckyDots)\
**Replies:** 3\
**Last updated:** [July 4, 2021, 10:04am UTC](https://discourse.processing.org/t/not-sure-why-rotation-isnt-giving-certain-values/31035 "2021-07-04T10:04:11Z")

</div>

Okay so I’ve followed a tutorial on youtube for creating kaleidoscope type images which is from the following link https://www.youtube.com/watch?v=R3C2giDfmO8 the video is done in p5.js so im not surprised it hasn’t wor…

---

## [Movie Maker is not showing](https://discourse.processing.org/t/movie-maker-is-not-showing/31001)

<div class="topic-metadata">

**Author:** [@AKS](https://discourse.processing.org/u/AKS)\
**Replies:** 11\
**Last updated:** [July 4, 2021, 11:08am UTC](https://discourse.processing.org/t/movie-maker-is-not-showing/31001 "2021-07-04T11:08:29Z")

</div>

I’ve installed processing 3.5.4. In the tools tab, movie maker is not showing… Am I missing something… How do i get the movie maker option…?

---

## [Use potentiometer to rotate car](https://discourse.processing.org/t/use-potentiometer-to-rotate-car/31029)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 10:58pm UTC](https://discourse.processing.org/t/use-potentiometer-to-rotate-car/31029 "2021-07-03T22:58:12Z")

</div>

Hi, I’m clueless as to how to use potentiometer knob to change an object’s (eg. car) directions / angles. How do I proceed to implement the code in both processing as well as arduino?

---

## [Sound and 3D surfaces](https://discourse.processing.org/t/sound-and-3d-surfaces/30949)

<div class="topic-metadata">

**Author:** [@orbicularis](https://discourse.processing.org/u/orbicularis)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 11:05am UTC](https://discourse.processing.org/t/sound-and-3d-surfaces/30949 "2021-07-03T11:05:37Z")

</div>

Hi, I have a problem with these codes on Processing. I want to shape a 3d object with sound. There is no problem for shaping surfaces but it goes in loop. Do you know how to stop this? I need only one movement from bot…

---

## [Add ball and move it with cursor until a line](https://discourse.processing.org/t/add-ball-and-move-it-with-cursor-until-a-line/30975)

<div class="topic-metadata">

**Author:** [@kevin20](https://discourse.processing.org/u/kevin20)\
**Replies:** 2\
**Last updated:** [July 1, 2021, 1:37am UTC](https://discourse.processing.org/t/add-ball-and-move-it-with-cursor-until-a-line/30975 "2021-07-01T01:37:38Z")

</div>

hey guys! first of all i want to create the game skee ball in processing. i already have a ball as cursor but i want that the ball is fly after throwing line and not be fixed on the cursor. my code atm: int wurfstaer…

---

## [I have a problem with coding Java](https://discourse.processing.org/t/i-have-a-problem-with-coding-java/30968)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 4\
**Last updated:** [June 30, 2021, 4:15pm UTC](https://discourse.processing.org/t/i-have-a-problem-with-coding-java/30968 "2021-06-30T16:15:30Z")

</div>

Hello, I have a problem with coding I want to save a picture with SVG. This is the code: import processing.serial.\*; String serialPort = "COM4"; // the name of the USB port int imageType = 1; // 0=svg, 1=png, 2=both S…

---

## [Error ProcessingAPP](https://discourse.processing.org/t/error-processingapp/30965)

<div class="topic-metadata">

**Author:** [@salam\_ub](https://discourse.processing.org/u/salam_ub)\
**Replies:** 2\
**Last updated:** [June 30, 2021, 3:16pm UTC](https://discourse.processing.org/t/error-processingapp/30965 "2021-06-30T15:16:08Z")

</div>

Dear all, Once I try Pick Serial and click Connect, I got the error message below : 19:24:16 Serial connection start: detecte serial… 19:24:16 Serial detected: COM3 19:24:16 Serial connection attempt: COM3… java.lan…

---

## [Using texture in PGraphic](https://discourse.processing.org/t/using-texture-in-pgraphic/30967)

<div class="topic-metadata">

**Author:** [@heXYdi](https://discourse.processing.org/u/heXYdi)\
**Replies:** 7\
**Last updated:** [June 30, 2021, 2:04pm UTC](https://discourse.processing.org/t/using-texture-in-pgraphic/30967 "2021-06-30T14:04:43Z")

</div>

Dear people, probably the question is pretty simple and maybe I am just blind. Unfortunately I don’t manage to apply an Image as texture for a PGraphic. In my original code the PGraphic is used in several functions, whi…

---

## [Adding color to a spectrogram and making it round](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138)

<div class="topic-metadata">

**Author:** [@mkok](https://discourse.processing.org/u/mkok)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 12:59pm UTC](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138 "2021-06-28T12:59:40Z")

</div>

Hai, for a schoolproject i want to create a round spectrogram, but I am still kinda new to processing. I created with my teacher this code and I actually want to add a color (or even more) to the spectrogram. It does no…

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

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