# Beginners

**URL:** https://discourse.processing.org/c/processing/processing-beginners/14.md?page=39

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

**Page:** 40

---

## [My new game - need help working with images](https://discourse.processing.org/t/my-new-game-need-help-working-with-images/3159)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.processing.org/u/Pedro)\
**Replies:** 8\
**Last updated:** [September 1, 2018, 3:48am UTC](https://discourse.processing.org/t/my-new-game-need-help-working-with-images/3159 "2018-09-01T03:48:52Z")

</div>

Look what I have achieved is that when I click on a figure suddenly both are changed at the same time. So now I do not know how to ask a question and relate it to the images. I want for example to say “Click on the recta…

---

## [Exponential grids / mobius transformations](https://discourse.processing.org/t/exponential-grids-mobius-transformations/1347)

<div class="topic-metadata">

**Author:** [@jc2046](https://discourse.processing.org/u/jc2046)\
**Replies:** 8\
**Last updated:** [September 1, 2018, 3:03am UTC](https://discourse.processing.org/t/exponential-grids-mobius-transformations/1347 "2018-09-01T03:03:37Z")

</div>

Hi, I want my sketch to draw this kind of things But Im not sure where to start, what kind of maths are involved nor some seudocode examples. If you have some info, tips, suggestion, intuition, whatever it would be mor…

---

## [Error when searching through a table](https://discourse.processing.org/t/error-when-searching-through-a-table/3118)

<div class="topic-metadata">

**Author:** [@kat](https://discourse.processing.org/u/kat)\
**Replies:** 4\
**Last updated:** [August 31, 2018, 3:41pm UTC](https://discourse.processing.org/t/error-when-searching-through-a-table/3118 "2018-08-31T15:41:55Z")

</div>

Hi all, I’m quite new to Processing and I was hoping someone could help me with this problem I have when searching through a table. I used the control P5 library to make a search bar where the user types words separate…

---

## [How to declare a constant in Processing editor & p5.js? (reported issue)](https://discourse.processing.org/t/how-to-declare-a-constant-in-processing-editor-p5-js-reported-issue/2855)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 12\
**Last updated:** [August 30, 2018, 6:56pm UTC](https://discourse.processing.org/t/how-to-declare-a-constant-in-processing-editor-p5-js-reported-issue/2855 "2018-08-30T18:56:30Z")

</div>

Hi everyone. When declaring a constant, Processing Editor show me the following error message: SyntaxError: expected an operator but found const In Javascript, the first line (generating the error message in Processi…

---

## [A question about an exercise in \<Algorithms for Visual Design\>](https://discourse.processing.org/t/a-question-about-an-exercise-in-algorithms-for-visual-design/3040)

<div class="topic-metadata">

**Author:** [@Xinquan](https://discourse.processing.org/u/Xinquan)\
**Replies:** 8\
**Last updated:** [August 28, 2018, 6:09pm UTC](https://discourse.processing.org/t/a-question-about-an-exercise-in-algorithms-for-visual-design/3040 "2018-08-28T18:09:17Z")

</div>

Currently I am reading the book by Kostas Terzidis. I meet a question doing the exercise1-9 9. Write the shortest possible procedural code that can generate the following number pattern using only standard arithmetic …

---

## [JOptionPane and Strings](https://discourse.processing.org/t/joptionpane-and-strings/3049)

<div class="topic-metadata">

**Author:** [@pcoderbasic](https://discourse.processing.org/u/pcoderbasic)\
**Replies:** 2\
**Last updated:** [August 28, 2018, 10:16am UTC](https://discourse.processing.org/t/joptionpane-and-strings/3049 "2018-08-28T10:16:42Z")

</div>

Hi, where can i get some sort of reference for fetching some strings via JOptionPane and then later displaying them on console

---

## [Problems with understanding language](https://discourse.processing.org/t/problems-with-understanding-language/3016)

<div class="topic-metadata">

**Author:** [@crab](https://discourse.processing.org/u/crab)\
**Replies:** 4\
**Last updated:** [August 27, 2018, 2:55pm UTC](https://discourse.processing.org/t/problems-with-understanding-language/3016 "2018-08-27T14:55:54Z")

</div>

There is code for the snake game i am trying to recreate, but it fails on line 44 after eating food with ArrayIndexOutOfBoundsException : 1 Can anybody explain why this happens and how can i fix this? (only death by ov…

---

## [Creating ellipses with different colours and sizes](https://discourse.processing.org/t/creating-ellipses-with-different-colours-and-sizes/2834)

<div class="topic-metadata">

**Author:** [@tomvons](https://discourse.processing.org/u/tomvons)\
**Replies:** 25\
**Last updated:** [August 27, 2018, 7:25am UTC](https://discourse.processing.org/t/creating-ellipses-with-different-colours-and-sizes/2834 "2018-08-27T07:25:52Z")

</div>

Hey there, I’m trying to create something similar to this video: https://www.youtube.com/watch?v=Yy5EcsV1jvk, but much simpler. All I want to do is have my ellipses change colour and size over and over. How do you do thi…

---

## [\[RESOLVED\] A game menu with three levels](https://discourse.processing.org/t/resolved-a-game-menu-with-three-levels/2944)

<div class="topic-metadata">

**Author:** [@blueesky](https://discourse.processing.org/u/blueesky)\
**Replies:** 10\
**Last updated:** [August 26, 2018, 6:09pm UTC](https://discourse.processing.org/t/resolved-a-game-menu-with-three-levels/2944 "2018-08-26T18:09:56Z")

</div>

I’m looking for someone who can help me organize and intervene the code for a school assignment. I have to make a game with three levels + the main menu that contains options to play the full game (three levels of follow…

---

## [Key press ignored if key is released at same time](https://discourse.processing.org/t/key-press-ignored-if-key-is-released-at-same-time/2863)

<div class="topic-metadata">

**Author:** [@mono](https://discourse.processing.org/u/mono)\
**Replies:** 5\
**Last updated:** [August 24, 2018, 3:38pm UTC](https://discourse.processing.org/t/key-press-ignored-if-key-is-released-at-same-time/2863 "2018-08-24T15:38:16Z")

</div>

Hey guys! I am trying to create a sketch where an object on the screen will move when the WASD keys are pressed. The object exists on a grid and will to the centre of a square adjacent to its own in a direction according…

---

## [Playing a video from a specific start time?](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 10:19pm UTC](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894 "2018-08-23T22:19:44Z")

</div>

Hi everyone. I try to play a video but starting it not at the beginning but after a specific time. The video plays well, but always starts at the beginning. What am I doing wrong? Thanks a lot for your ideas and suggesti…

---

## [Can you help -- mouse over thing gives error Unexpected identifier](https://discourse.processing.org/t/can-you-help-mouse-over-thing-gives-error-unexpected-identifier/2888)

<div class="topic-metadata">

**Author:** [@warrenj](https://discourse.processing.org/u/warrenj)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 6:28pm UTC](https://discourse.processing.org/t/can-you-help-mouse-over-thing-gives-error-unexpected-identifier/2888 "2018-08-23T18:28:06Z")

</div>

Can you help find and fix the Unexpected identifier error … int thingX = 10; int thingY = 20; int thingW = 30; int thingH = 40; void setup() { // noStroke(); } // end setup void draw() { // mouse over ( thing ) …

---

## [Images in PDF Export](https://discourse.processing.org/t/images-in-pdf-export/2693)

<div class="topic-metadata">

**Author:** [@freudje](https://discourse.processing.org/u/freudje)\
**Replies:** 1\
**Last updated:** [August 17, 2018, 8:32am UTC](https://discourse.processing.org/t/images-in-pdf-export/2693 "2018-08-17T08:32:52Z")

</div>

Relative newbie question. As the library states, images in PDF export don’t look very good: \* Images don’t look great, mostly because of the difference of expectations in how a PDF should look (scalable and high res) ve…

---

## [Text reveal along a path](https://discourse.processing.org/t/text-reveal-along-a-path/1705)

<div class="topic-metadata">

**Author:** [@dnganeko](https://discourse.processing.org/u/dnganeko)\
**Replies:** 16\
**Last updated:** [August 13, 2018, 1:40pm UTC](https://discourse.processing.org/t/text-reveal-along-a-path/1705 "2018-08-13T13:40:11Z")

</div>

Hi there! Help needed…Please I’m new to coding… What I am trying to do is create an interacted animation for the background of a website where; when you move the mouse down and to the right, and/ or scroll the page do…

---

## [Processing book](https://discourse.processing.org/t/processing-book/2609)

<div class="topic-metadata">

**Author:** [@davixd2002](https://discourse.processing.org/u/davixd2002)\
**Replies:** 3\
**Last updated:** [August 13, 2018, 12:42pm UTC](https://discourse.processing.org/t/processing-book/2609 "2018-08-13T12:42:57Z")

</div>

Hi guys! I’m looking for a book to learn better the processing programming language what book do you recommend? I’m searching for a book written in italian but if there’s also a good book where i can study i’m happy anyw…

---

## [My for-loop doesn't filter, it either cuts all or none](https://discourse.processing.org/t/my-for-loop-doesnt-filter-it-either-cuts-all-or-none/2503)

<div class="topic-metadata">

**Author:** [@MariekeLaenen](https://discourse.processing.org/u/MariekeLaenen)\
**Replies:** 3\
**Last updated:** [August 9, 2018, 4:15pm UTC](https://discourse.processing.org/t/my-for-loop-doesnt-filter-it-either-cuts-all-or-none/2503 "2018-08-09T16:15:29Z")

</div>

Hi I’m trying to filter through an arraylist (rectangles) by comparing the locations of the objects in it with the locations of the objects of another arraylist (windows). The goal eventually is to make different kinds…

---

## [Converting .pde to p5.js](https://discourse.processing.org/t/converting-pde-to-p5-js/2502)

<div class="topic-metadata">

**Author:** [@dnganeko](https://discourse.processing.org/u/dnganeko)\
**Replies:** 4\
**Last updated:** [August 9, 2018, 2:28pm UTC](https://discourse.processing.org/t/converting-pde-to-p5-js/2502 "2018-08-09T14:28:35Z")

</div>

Hi there, Can someone please help me… I’m trying to convert a .pde sketch to p5.js. this is what I have so far but its still now working… Can someone please help :slight\_smile: String message = "dddddddddddddddddddd…

---

## [Rotate multiple geometric shape together](https://discourse.processing.org/t/rotate-multiple-geometric-shape-together/2487)

<div class="topic-metadata">

**Author:** [@yanfqc](https://discourse.processing.org/u/yanfqc)\
**Replies:** 3\
**Last updated:** [August 8, 2018, 11:07pm UTC](https://discourse.processing.org/t/rotate-multiple-geometric-shape-together/2487 "2018-08-08T23:07:51Z")

</div>

Hi! Lets say i layered a triangle over an ellipse to make a fish doodle. I have a class named Fish and a function to display it on screen. If i want to rotate that fish so that it points toward the direction it’s going,…

---

## [My ball is sticking to the wall and cant move](https://discourse.processing.org/t/my-ball-is-sticking-to-the-wall-and-cant-move/884)

<div class="topic-metadata">

**Author:** [@survivalspace2001](https://discourse.processing.org/u/survivalspace2001)\
**Replies:** 2\
**Last updated:** [August 8, 2018, 12:46am UTC](https://discourse.processing.org/t/my-ball-is-sticking-to-the-wall-and-cant-move/884 "2018-08-08T00:46:14Z")

</div>

uhm hi im quite new but ive started to take classes of programming with processing this is my 3rd or 4th lesson or so, so please dont mind the cringy piece of code but i need help because im trying to make a game whe…

---

## [Help with Shapes overlapping](https://discourse.processing.org/t/help-with-shapes-overlapping/967)

<div class="topic-metadata">

**Author:** [@RennyGH](https://discourse.processing.org/u/RennyGH)\
**Replies:** 2\
**Last updated:** [August 7, 2018, 12:38am UTC](https://discourse.processing.org/t/help-with-shapes-overlapping/967 "2018-08-07T00:38:07Z")

</div>

So the way I want this to work is making it so if the user clicks they get taken to their lock screen, however, when I click the screen is over all of the content that’s supposed to be displayed. size(1000,1000); backgr…

---

## [How to draw chiseled lines in processing?](https://discourse.processing.org/t/how-to-draw-chiseled-lines-in-processing/2417)

<div class="topic-metadata">

**Author:** [@charliebrown](https://discourse.processing.org/u/charliebrown)\
**Replies:** 4\
**Last updated:** [August 6, 2018, 9:26pm UTC](https://discourse.processing.org/t/how-to-draw-chiseled-lines-in-processing/2417 "2018-08-06T21:26:51Z")

</div>

I wish to draw chiseled lines in processing. I tried to use strokeCap() and strokeJoin() functions but they didn’t give me the behaviour I wanted. I have attached a sketch(made using Autodesk SketchBook) of the effect th…

---

## [Create multiple buttons with different functions](https://discourse.processing.org/t/create-multiple-buttons-with-different-functions/2304)

<div class="topic-metadata">

**Author:** [@Haven](https://discourse.processing.org/u/Haven)\
**Replies:** 2\
**Last updated:** [August 2, 2018, 1:46pm UTC](https://discourse.processing.org/t/create-multiple-buttons-with-different-functions/2304 "2018-08-02T13:46:15Z")

</div>

Hi, I very new to processing and I have to do a project for my university. I can’t figure out how to build multiple buttons that each have a different function. The whole thing should be a quiz when it is ready. Total o…

---

## [3D sphere is rendering flat](https://discourse.processing.org/t/3d-sphere-is-rendering-flat/2278)

<div class="topic-metadata">

**Author:** [@jstarbell](https://discourse.processing.org/u/jstarbell)\
**Replies:** 2\
**Last updated:** [August 1, 2018, 6:43pm UTC](https://discourse.processing.org/t/3d-sphere-is-rendering-flat/2278 "2018-08-01T18:43:41Z")

</div>

I’m so confused. I can’t seem to get anything to render shaded. Everything is just a flat color with no specular or diffusion. Here is a simple example with one sphere: void setup() { size(1000,1000,P3D); background(…

---

## [Using Processing to create a pdf](https://discourse.processing.org/t/using-processing-to-create-a-pdf/2281)

<div class="topic-metadata">

**Author:** [@RMS\_Monkey](https://discourse.processing.org/u/RMS_Monkey)\
**Replies:** 1\
**Last updated:** [August 1, 2018, 6:42pm UTC](https://discourse.processing.org/t/using-processing-to-create-a-pdf/2281 "2018-08-01T18:42:26Z")

</div>

I am new to processing, but I do have a little experience in C++. I just would like to know if it would be possible to use the Processing language to make an interactive program that allows the user to input data and wou…

---

## [Coding a simple game jump](https://discourse.processing.org/t/coding-a-simple-game-jump/2181)

<div class="topic-metadata">

**Author:** [@Danny\_Posada](https://discourse.processing.org/u/Danny_Posada)\
**Replies:** 5\
**Last updated:** [July 30, 2018, 8:17pm UTC](https://discourse.processing.org/t/coding-a-simple-game-jump/2181 "2018-07-30T20:17:41Z")

</div>

Hello you all, I need your help. So, recently i’ve been trying to challenge myself by designing a simple game with a red ball that can jump up and down and avoid obstacles. I plan to add the obstacles later, I’m just try…

---

## [duplicateDraw()](https://discourse.processing.org/t/duplicatedraw/2176)

<div class="topic-metadata">

**Author:** [@piscvau](https://discourse.processing.org/u/piscvau)\
**Replies:** 5\
**Last updated:** [July 30, 2018, 5:49pm UTC](https://discourse.processing.org/t/duplicatedraw/2176 "2018-07-30T17:49:21Z")

</div>

Hello, I am trying to understand some processing 2 existing code. I run into duplicateDraw(); This does not seem to appear in the reference. Can anyone help me figure out what it does? I thank you in advance piscvau …

---

## [Typography Wall Transition](https://discourse.processing.org/t/typography-wall-transition/2197)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 2\
**Last updated:** [July 30, 2018, 11:46am UTC](https://discourse.processing.org/t/typography-wall-transition/2197 "2018-07-30T11:46:59Z")

</div>

Hi, Everyone know of to reproduce this effects with Typography in Processing ? And how can I rotate the cube with easy ease and offset ? (Maybe with some key). Here is the full video : https://www.youtube.com/watch?v=3…

---

## [Pow() doesn't handle fractional exponents](https://discourse.processing.org/t/pow-doesnt-handle-fractional-exponents/1973)

<div class="topic-metadata">

**Author:** [@rich](https://discourse.processing.org/u/rich)\
**Replies:** 3\
**Last updated:** [July 28, 2018, 8:11pm UTC](https://discourse.processing.org/t/pow-doesnt-handle-fractional-exponents/1973 "2018-07-28T20:11:46Z")

</div>

Why doesn’t pow() properly handle fractional exponents, and is there a way to force it to? Decimal exponents such as 0.667 are handled correctly, but not fractions such as 2/3. For example, I’d expect float x = pow(8…

---

## [Global vs local variables](https://discourse.processing.org/t/global-vs-local-variables/2070)

<div class="topic-metadata">

**Author:** [@mattwonderwall](https://discourse.processing.org/u/mattwonderwall)\
**Replies:** 3\
**Last updated:** [July 27, 2018, 9:43am UTC](https://discourse.processing.org/t/global-vs-local-variables/2070 "2018-07-27T09:43:08Z")

</div>

I’m following “Learning Processing” by Daniel Shiffman, a great book. But when it comes to explaining some of the exercises it is not always clear. The question is: "Predict the result of the following two sketches. Aft…

---

## [Edit character in text file](https://discourse.processing.org/t/edit-character-in-text-file/1953)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 2\
**Last updated:** [July 23, 2018, 6:34pm UTC](https://discourse.processing.org/t/edit-character-in-text-file/1953 "2018-07-23T18:34:27Z")

</div>

i need to write some data, how do i edit a single character in a text file? -Grim

[Previous page](https://discourse.processing.org/c/processing/processing-beginners/14.md?page=38)

[Next page](https://discourse.processing.org/c/processing/processing-beginners/14.md?page=40)
