# Coding Questions

**URL:** https://discourse.processing.org/c/processing/processing-questions/15.md?page=139

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

**Page:** 140

---

## [Launch() function on win10 + Processing 3](https://discourse.processing.org/t/launch-function-on-win10-processing-3/11273)

<div class="topic-metadata">

**Author:** [@mar](https://discourse.processing.org/u/mar)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 2:05pm UTC](https://discourse.processing.org/t/launch-function-on-win10-processing-3/11273 "2019-05-15T14:05:27Z")

</div>

Hello, I’m trying to use the launch() function to run an .exe developed and exported for win 10 but it do not works. It have worked well on mac. Either the exec() function do not works on win10. I’ve tried more path po…

---

## [Why is the text my text out of focus/in a poor resolution?](https://discourse.processing.org/t/why-is-the-text-my-text-out-of-focus-in-a-poor-resolution/11166)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 8\
**Last updated:** [May 15, 2019, 6:35am UTC](https://discourse.processing.org/t/why-is-the-text-my-text-out-of-focus-in-a-poor-resolution/11166 "2019-05-15T06:35:58Z")

</div>

My text in this button looks very poorly. But when I click another button on the screen, it looks normal! Here is my code: void draw (){ if (mode== INTRO){ // introskærm doIntroMode(); } else if (mo…

---

## [Framerate() not working on P2D/P3D using intelij](https://discourse.processing.org/t/framerate-not-working-on-p2d-p3d-using-intelij/7768)

<div class="topic-metadata">

**Author:** [@horia16](https://discourse.processing.org/u/horia16)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 2:29am UTC](https://discourse.processing.org/t/framerate-not-working-on-p2d-p3d-using-intelij/7768 "2019-05-15T02:29:53Z")

</div>

The title says it all. Is there a workaround or something? My game collisions are dependant of the framerate to be more accurate thus I need 120 fps for them to be pixel perfect. I can’t get an unlocked framerate using t…

---

## [Prime number function with boolean](https://discourse.processing.org/t/prime-number-function-with-boolean/11228)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 12:51am UTC](https://discourse.processing.org/t/prime-number-function-with-boolean/11228 "2019-05-15T00:51:53Z")

</div>

Hi, I would really appreciate if someone knows how to do make a function with boolean to check if the numbers 2-50 are prime numbers or not. I’ve looked at example, but I don’t get the hang of it really. Thanks in advan…

---

## [saveFrame problem](https://discourse.processing.org/t/saveframe-problem/11244)

<div class="topic-metadata">

**Author:** [@mellebond](https://discourse.processing.org/u/mellebond)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 12:47am UTC](https://discourse.processing.org/t/saveframe-problem/11244 "2019-05-15T00:47:41Z")

</div>

Hi there, I have the strange problem that if I turn on saveFrame my sketch shows something a little different then when turned off. When it’s turned off it looks the way I want it. I feel like with saveFrame on it’s mis…

---

## [Jumping and score in game code](https://discourse.processing.org/t/jumping-and-score-in-game-code/11137)

<div class="topic-metadata">

**Author:** [@D33](https://discourse.processing.org/u/D33)\
**Replies:** 5\
**Last updated:** [May 14, 2019, 11:34am UTC](https://discourse.processing.org/t/jumping-and-score-in-game-code/11137 "2019-05-14T11:34:24Z")

</div>

Hello, I am currently making a small Doodle Jump clone but I ran into a problem. I created a class that just takes care of the platforms(it extends another class) on the screen and their interaction with the character. …

---

## [How to display class button](https://discourse.processing.org/t/how-to-display-class-button/11181)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 4\
**Last updated:** [May 13, 2019, 8:21am UTC](https://discourse.processing.org/t/how-to-display-class-button/11181 "2019-05-13T08:21:38Z")

</div>

Hello! I’ve made this button, but I can’t make it display. I know that some of it works, because I have some text that works. code: Button button1, button2, button3, button4; int y = 500; int x1 = 185; int x2 = 495; i…

---

## [Slowdown from image manipulation](https://discourse.processing.org/t/slowdown-from-image-manipulation/11121)

<div class="topic-metadata">

**Author:** [@jashuman19](https://discourse.processing.org/u/jashuman19)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 7:17am UTC](https://discourse.processing.org/t/slowdown-from-image-manipulation/11121 "2019-05-13T07:17:14Z")

</div>

I’ve been encountering some pretty massive slowdown when I try to manipulate large images. Whenever I use images close in size to the display size, there will be a huge framerate drop (from about 60 to as low as 8 or 9) …

---

## [Compare the angle between several spinning objects](https://discourse.processing.org/t/compare-the-angle-between-several-spinning-objects/11194)

<div class="topic-metadata">

**Author:** [@ale.moso](https://discourse.processing.org/u/ale.moso)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 2:10pm UTC](https://discourse.processing.org/t/compare-the-angle-between-several-spinning-objects/11194 "2019-05-13T14:10:29Z")

</div>

Hello dear community, I made a grid of spinning lines. Now I wonder how to know when a line and is neighbours are matching in the vertical or horizontal axis to change theris colors for that moment in which the share th…

---

## [Create Font with Batik](https://discourse.processing.org/t/create-font-with-batik/11105)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 7:55am UTC](https://discourse.processing.org/t/create-font-with-batik/11105 "2019-05-13T07:55:07Z")

</div>

Hello, If any body have a knowledge and Processing exemple with Batik SVG system with a focus on Font i’m very interresting. I try to make a font with Batik to create a cloud points with it like Geomerative, but I cannot…

---

## [Why are my buttons connected?](https://discourse.processing.org/t/why-are-my-buttons-connected/11167)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 7\
**Last updated:** [May 12, 2019, 3:10pm UTC](https://discourse.processing.org/t/why-are-my-buttons-connected/11167 "2019-05-12T15:10:19Z")

</div>

I followed this example when making my own buttons: Processing buttons example I want the colour of the button to change, when the mouse is hovering above it, and the background to change when the first button is presse…

---

## [Problem with Big Decimal - Calculation process slows down](https://discourse.processing.org/t/problem-with-big-decimal-calculation-process-slows-down/11144)

<div class="topic-metadata">

**Author:** [@humayung](https://discourse.processing.org/u/humayung)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 11:14am UTC](https://discourse.processing.org/t/problem-with-big-decimal-calculation-process-slows-down/11144 "2019-05-12T11:14:48Z")

</div>

Hey guys! i’m very new to Big Decimal i attempting to calculate mandelbrot set with high precision for ultra zoom capability, so i’m using Big Decimal to perform calculation. while calculating, the loop slows down. i …

---

## [Processing test(I would need it solutions)](https://discourse.processing.org/t/processing-test-i-would-need-it-solutions/11154)

<div class="topic-metadata">

**Author:** [@derecH](https://discourse.processing.org/u/derecH)\
**Replies:** 3\
**Last updated:** [May 12, 2019, 8:34am UTC](https://discourse.processing.org/t/processing-test-i-would-need-it-solutions/11154 "2019-05-12T08:34:21Z")

</div>

During the course, the graphical functions of the language are displayed only for the graphical functions of the language point () function and color adjustment functions can be used. • Our applications should have the…

---

## [Alpha weird behaviour](https://discourse.processing.org/t/alpha-weird-behaviour/11132)

<div class="topic-metadata">

**Author:** [@litiec](https://discourse.processing.org/u/litiec)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 7:59am UTC](https://discourse.processing.org/t/alpha-weird-behaviour/11132 "2019-05-12T07:59:31Z")

</div>

Dear All I tried to research about it but I couldn’t find anything. I have this simple example: void setup(){ size(600,600, P3D); } void draw(){ background(0); translate(width/2, height/2, 0); rotateY(radia…

---

## [How do I assign 2 specific colors to an array of objects](https://discourse.processing.org/t/how-do-i-assign-2-specific-colors-to-an-array-of-objects/10984)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 10\
**Last updated:** [May 12, 2019, 2:30am UTC](https://discourse.processing.org/t/how-do-i-assign-2-specific-colors-to-an-array-of-objects/10984 "2019-05-12T02:30:10Z")

</div>

I would like to assign 2 colors to this array. However, I do not want each color confined to an area within the sketch (as it appears currently). How do rewrite so that half of the jellybeans are dark red and hal…

---

## [Problem about creating water waves when using mass spring damper system](https://discourse.processing.org/t/problem-about-creating-water-waves-when-using-mass-spring-damper-system/3101)

<div class="topic-metadata">

**Author:** [@zzz.mcw](https://discourse.processing.org/u/zzz.mcw)\
**Replies:** 6\
**Last updated:** [May 11, 2019, 8:22pm UTC](https://discourse.processing.org/t/problem-about-creating-water-waves-when-using-mass-spring-damper-system/3101 "2019-05-11T20:22:15Z")

</div>

I got a problem when trying to make water waves.I only got one jumping surfacepoint on a still water surface. Here is the code. lake lake; void setup() { size(400, 500); lake = new lake(); } void draw() { backgro…

---

## [How make an interface where you can upload a file](https://discourse.processing.org/t/how-make-an-interface-where-you-can-upload-a-file/11024)

<div class="topic-metadata">

**Author:** [@niciaguero](https://discourse.processing.org/u/niciaguero)\
**Replies:** 2\
**Last updated:** [May 11, 2019, 6:07pm UTC](https://discourse.processing.org/t/how-make-an-interface-where-you-can-upload-a-file/11024 "2019-05-11T18:07:08Z")

</div>

Hi, How can I make an interface where the user can browse the computer and upload any audio file they want through processing? Thanks for the help, Niciaguero

---

## [Different behaviors of default vs. P2D renderer with low-alpha curves](https://discourse.processing.org/t/different-behaviors-of-default-vs-p2d-renderer-with-low-alpha-curves/10982)

<div class="topic-metadata">

**Author:** [@blakej](https://discourse.processing.org/u/blakej)\
**Replies:** 12\
**Last updated:** [May 11, 2019, 8:11am UTC](https://discourse.processing.org/t/different-behaviors-of-default-vs-p2d-renderer-with-low-alpha-curves/10982 "2019-05-11T08:11:00Z")

</div>

Hi all, I’m trying to understand a difference in behavior between the default 2D renderer and the P2D renderer. In short, the default renderer seems to generate a “softer” texture when overlapping many curves with low …

---

## [Help with a short game code](https://discourse.processing.org/t/help-with-a-short-game-code/11108)

<div class="topic-metadata">

**Author:** [@majR](https://discourse.processing.org/u/majR)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 4:21pm UTC](https://discourse.processing.org/t/help-with-a-short-game-code/11108 "2019-05-10T16:21:02Z")

</div>

when i try to remove a part of a arraylist it says the error “ConcurrentModificationException” here is the file : https://drive.google.com/open?id=1-NATnwPv0Qw3abEjZzP8rBFMXgwngVrL here is what gives the error for(Las…

---

## ["\_\_\_ is not a constructor" Error message](https://discourse.processing.org/t/is-not-a-constructor-error-message/11104)

<div class="topic-metadata">

**Author:** [@Corephinx](https://discourse.processing.org/u/Corephinx)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 1:53pm UTC](https://discourse.processing.org/t/is-not-a-constructor-error-message/11104 "2019-05-10T13:53:33Z")

</div>

I have been trying to get an old code I wrote, a long time ago, to work(its probably a mess). And I was wondering why it gives me the error message “\[something\] is not a constructor”. I do not expect anyone to read my me…

---

## [When button pressed, load a game](https://discourse.processing.org/t/when-button-pressed-load-a-game/11100)

<div class="topic-metadata">

**Author:** [@nliegeard](https://discourse.processing.org/u/nliegeard)\
**Replies:** 4\
**Last updated:** [May 10, 2019, 11:08am UTC](https://discourse.processing.org/t/when-button-pressed-load-a-game/11100 "2019-05-10T11:08:13Z")

</div>

Hello guys ! i started a programme where i did a home page with a start button, the button work’s good but i have no idea on how can i code that when button pressed then loadfile “test.pde”, if you help me i’l be tha…

---

## [Why does my P3D sketch look weird as a PDF (and how to fix this?)](https://discourse.processing.org/t/why-does-my-p3d-sketch-look-weird-as-a-pdf-and-how-to-fix-this/11072)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 3\
**Last updated:** [May 10, 2019, 4:39am UTC](https://discourse.processing.org/t/why-does-my-p3d-sketch-look-weird-as-a-pdf-and-how-to-fix-this/11072 "2019-05-10T04:39:39Z")

</div>

I have a sketch which looks very different in the Processing window than it does as an actual PDF. Would anyone be able to help me get this sketch to render well as a PDF?

---

## [Can anyone help make my rain splash and puddle?](https://discourse.processing.org/t/can-anyone-help-make-my-rain-splash-and-puddle/10813)

<div class="topic-metadata">

**Author:** [@1317009254](https://discourse.processing.org/u/1317009254)\
**Replies:** 5\
**Last updated:** [May 9, 2019, 4:56pm UTC](https://discourse.processing.org/t/can-anyone-help-make-my-rain-splash-and-puddle/10813 "2019-05-09T16:56:37Z")

</div>

im new to coding and i cant quite figure it out. any sort of help would be awesome! :slight\_smile: int \[\] x = new int \[1000\]; float \[\] y = new float \[1000\]; float \[\] speed = new float \[1000\]; float \[\] size = new float \[…

---

## [Image at angle from 2 vectors scaled and centered](https://discourse.processing.org/t/image-at-angle-from-2-vectors-scaled-and-centered/11070)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 2\
**Last updated:** [May 9, 2019, 4:15pm UTC](https://discourse.processing.org/t/image-at-angle-from-2-vectors-scaled-and-centered/11070 "2019-05-09T16:15:42Z")

</div>

hallo. I am trying to place an image (1000X1000px) scaled and centered between 2 vectors, and keep it always centered there no matter the angle. So far i have PVector a,b,c; PImage img1; void setup(){ size(400,400,…

---

## [Quiz with multiples choice - Beginner level](https://discourse.processing.org/t/quiz-with-multiples-choice-beginner-level/10258)

<div class="topic-metadata">

**Author:** [@EverybodyEthan](https://discourse.processing.org/u/EverybodyEthan)\
**Replies:** 26\
**Last updated:** [May 9, 2019, 8:14am UTC](https://discourse.processing.org/t/quiz-with-multiples-choice-beginner-level/10258 "2019-05-09T08:14:46Z")

</div>

Hi buddies ! :smiley: I’m looking about how to make a quiz, I have started few test with a part of success. However I’d like to make a quiz with multiples choices. So I’d like to give him ( the user ) three choices i…

---

## [Retrieving the current rotation of a custom PShape](https://discourse.processing.org/t/retrieving-the-current-rotation-of-a-custom-pshape/11042)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 4\
**Last updated:** [May 9, 2019, 2:08am UTC](https://discourse.processing.org/t/retrieving-the-current-rotation-of-a-custom-pshape/11042 "2019-05-09T02:08:24Z")

</div>

I am teaching myself to code through coding games, I am currently working on asteroids. The player is rendered as a custom PShape, and is rotated with ship.rotate(RotVel); RotVel is a float that is modified by the A an…

---

## [Text motion blur effect](https://discourse.processing.org/t/text-motion-blur-effect/10804)

<div class="topic-metadata">

**Author:** [@smekis](https://discourse.processing.org/u/smekis)\
**Replies:** 13\
**Last updated:** [May 8, 2019, 1:39pm UTC](https://discourse.processing.org/t/text-motion-blur-effect/10804 "2019-05-08T13:39:38Z")

</div>

Hello We are two design students who are currently working extensively with typography in motion. Right now we have developed a font that we will present on a website that we are about to put together. Our vision is to …

---

## [Can't get my object to move around axis](https://discourse.processing.org/t/cant-get-my-object-to-move-around-axis/10990)

<div class="topic-metadata">

**Author:** [@Shemozzles](https://discourse.processing.org/u/Shemozzles)\
**Replies:** 11\
**Last updated:** [May 8, 2019, 1:06am UTC](https://discourse.processing.org/t/cant-get-my-object-to-move-around-axis/10990 "2019-05-08T01:06:12Z")

</div>

Hey guys, I have this piece of code where I am trying to move a spaceship around the 0 axis. It also moves up and down. However, the further I move it up, the greater the turning circle is. I have tried various methods …

---

## [Help with a coding Problem for Computer Science(partially filled Arrays)](https://discourse.processing.org/t/help-with-a-coding-problem-for-computer-science-partially-filled-arrays/11018)

<div class="topic-metadata">

**Author:** [@s21ebutler](https://discourse.processing.org/u/s21ebutler)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 10:56pm UTC](https://discourse.processing.org/t/help-with-a-coding-problem-for-computer-science-partially-filled-arrays/11018 "2019-05-07T22:56:03Z")

</div>

Can somebody do the following problem for me because I am completely stuck right now? I just started programming this year. 1)Write a program that creates an ellipse every time you click the mouse, at the mouse’s locati…

---

## [Advice on optimal way to redraw datapoints](https://discourse.processing.org/t/advice-on-optimal-way-to-redraw-datapoints/10954)

<div class="topic-metadata">

**Author:** [@kikisarp](https://discourse.processing.org/u/kikisarp)\
**Replies:** 4\
**Last updated:** [May 7, 2019, 8:07pm UTC](https://discourse.processing.org/t/advice-on-optimal-way-to-redraw-datapoints/10954 "2019-05-07T20:07:22Z")

</div>

Hi, I am working on a 3D scan and mapping project and I’m able to scan a specific environment and redraw it in a virtual map but my map is lacking a bit because I cant get nearly as many datapoints as I want to and this …

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=138)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=140)
