# Processing

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

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

**Page:** 62

---

## [Adjusting a sample of positions by interpolation. Perfect shape and movement](https://discourse.processing.org/t/adjusting-a-sample-of-positions-by-interpolation-perfect-shape-and-movement/38978)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 10\
**Last updated:** [October 30, 2022, 4:07pm UTC](https://discourse.processing.org/t/adjusting-a-sample-of-positions-by-interpolation-perfect-shape-and-movement/38978 "2022-10-30T16:07:25Z")

</div>

Hi everyone! I’m trying to make a movement repeating himself by adapting the end with the beginning of the movement. For example I try to draw a circle or the shape " 8 " during an elapsed time. I would like to have o…

---

## [Ellipse and trail](https://discourse.processing.org/t/ellipse-and-trail/39508)

<div class="topic-metadata">

**Author:** [@Ero](https://discourse.processing.org/u/Ero)\
**Replies:** 4\
**Last updated:** [October 30, 2022, 3:00pm UTC](https://discourse.processing.org/t/ellipse-and-trail/39508 "2022-10-30T15:00:24Z")

</div>

How can I make an ellipse that leaves behind a “trail”?

---

## [Cube texture image is upside down](https://discourse.processing.org/t/cube-texture-image-is-upside-down/39233)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 7\
**Last updated:** [October 30, 2022, 2:55pm UTC](https://discourse.processing.org/t/cube-texture-image-is-upside-down/39233 "2022-10-30T14:55:21Z")

</div>

I’m trying to place an image with text on the outside of a cube. The code below works well except for the fact that the text is upside down. How would I flip the text (img), either in PGraphics when the image is constr…

---

## [getColor() for Kinect](https://discourse.processing.org/t/getcolor-for-kinect/39463)

<div class="topic-metadata">

**Author:** [@lorenlepton](https://discourse.processing.org/u/lorenlepton)\
**Replies:** 2\
**Last updated:** [October 30, 2022, 12:40pm UTC](https://discourse.processing.org/t/getcolor-for-kinect/39463 "2022-10-30T12:40:15Z")

</div>

howdy folks so ive come back to coding after a long time. I used to do openFrameworks & other things for many moons, & have come to Processing due to wanting to cut out the huge IDE & in some ways, not use C++ :wink: p…

---

## [Tweaks needed to make a custom Java-based mode?](https://discourse.processing.org/t/tweaks-needed-to-make-a-custom-java-based-mode/39491)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 0\
**Last updated:** [October 29, 2022, 5:11pm UTC](https://discourse.processing.org/t/tweaks-needed-to-make-a-custom-java-based-mode/39491 "2022-10-29T17:11:34Z")

</div>

I am currently trying to develop my first Processing mode. This mode will be java-based and the code conversion would look like this: void build(){ //some code } //some other methods,global variables etc. would be con…

---

## [Help with setting window size](https://discourse.processing.org/t/help-with-setting-window-size/39469)

<div class="topic-metadata">

**Author:** [@DeeDee](https://discourse.processing.org/u/DeeDee)\
**Replies:** 1\
**Last updated:** [October 30, 2022, 11:40am UTC](https://discourse.processing.org/t/help-with-setting-window-size/39469 "2022-10-30T11:40:42Z")

</div>

Hello Can anyone help - this code works on a mac but on windows it displays the window as fukkscreen i.e. it does not do the divided by 2. Why? void settings() { // This command sets the size of the sketch window. …

---

## [Can you resize an image and only show the new Image](https://discourse.processing.org/t/can-you-resize-an-image-and-only-show-the-new-image/39472)

<div class="topic-metadata">

**Author:** [@Kalarila](https://discourse.processing.org/u/Kalarila)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 11:30am UTC](https://discourse.processing.org/t/can-you-resize-an-image-and-only-show-the-new-image/39472 "2022-10-30T11:30:36Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, so I have an easy question (I think). I’m trying to show an image and then resize it. Is there a way to only display the resized image and …

---

## [Processing: 'Under the hood' - Circles and Arcs](https://discourse.processing.org/t/processing-under-the-hood-circles-and-arcs/39473)

<div class="topic-metadata">

**Author:** [@Nevermnd](https://discourse.processing.org/u/Nevermnd)\
**Replies:** 4\
**Last updated:** [October 29, 2022, 2:19pm UTC](https://discourse.processing.org/t/processing-under-the-hood-circles-and-arcs/39473 "2022-10-29T14:19:00Z")

</div>

Hi, So I have been trying to develop a separate application that relies heavy on the generation of pixel-by-pixel generation of circles and ellipses. However, do note 1) I am doing this app in Python, not Processing and…

---

## [Display an Image for 5 Seconds Only Flashing](https://discourse.processing.org/t/display-an-image-for-5-seconds-only-flashing/39480)

<div class="topic-metadata">

**Author:** [@carlymoj](https://discourse.processing.org/u/carlymoj)\
**Replies:** 4\
**Last updated:** [October 29, 2022, 1:15pm UTC](https://discourse.processing.org/t/display-an-image-for-5-seconds-only-flashing/39480 "2022-10-29T13:15:02Z")

</div>

I’m creating a basic catcher-style game that catches balls of varying sizes and colors. I have a “game over” image that I’d like to display for 5 seconds before restarting the game. Right now, the image flashes but the g…

---

## [I have a question regarding OCR](https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 12:08am UTC](https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466 "2022-10-29T00:08:33Z")

</div>

http://www.magicandlove.com/blog/2015/11/26/processing-with-ocr/ The version I’m using: tess4j-3.4.8.jar import net.sourceforge.tess4j.\*; import java.awt.image.BufferedImage; Tesseract ocr; BufferedImage img; PImage …

---

## [Arduino and Processing gives NullPointerException](https://discourse.processing.org/t/arduino-and-processing-gives-nullpointerexception/39399)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 7\
**Last updated:** [October 28, 2022, 3:05pm UTC](https://discourse.processing.org/t/arduino-and-processing-gives-nullpointerexception/39399 "2022-10-28T15:05:40Z")

</div>

Hi all! Just started with making a game in processing, connected to Arduino where I am using a joystick. Super exciting, however I am a bit stuck because I keep getting the following error message: NullPointerException …

---

## [Memory usage increases as images are loaded. Help me](https://discourse.processing.org/t/memory-usage-increases-as-images-are-loaded-help-me/39450)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 6\
**Last updated:** [October 26, 2022, 11:01pm UTC](https://discourse.processing.org/t/memory-usage-increases-as-images-are-loaded-help-me/39450 "2022-10-26T23:01:31Z")

</div>

PImage fig\_image; long TIMER\_RE = 0; void setup(){ size(1000,1000); fig\_image = loadImage("fig\_image.jpg"); } void draw(){ if(TIMER\_RE \< millis()){ TIMER\_RE = millis()+1000; fig\_image = loadImage(…

---

## [Open Kinect for Processing Cannot find Kinect](https://discourse.processing.org/t/open-kinect-for-processing-cannot-find-kinect/1076)

<div class="topic-metadata">

**Author:** [@matteocabe](https://discourse.processing.org/u/matteocabe)\
**Replies:** 4\
**Last updated:** [October 27, 2022, 8:15pm UTC](https://discourse.processing.org/t/open-kinect-for-processing-cannot-find-kinect/1076 "2022-10-27T20:15:50Z")

</div>

Hello there, I’m trying to use kinect in Processing using Shifmann’s libraries, I have installed Kinect SDK and the libusbk with Zadig. When I start a simple program in processing it says “cannot find devices” Can som…

---

## [Where can I download Processing 3? Need to use the Handy library](https://discourse.processing.org/t/where-can-i-download-processing-3-need-to-use-the-handy-library/39461)

<div class="topic-metadata">

**Author:** [@mi23](https://discourse.processing.org/u/mi23)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 7:04pm UTC](https://discourse.processing.org/t/where-can-i-download-processing-3-need-to-use-the-handy-library/39461 "2022-10-27T19:04:43Z")

</div>

Hi. I want to use the Handy library but it is not compatible with Processing 4. Thanks!

---

## [Looking for a way to display particles as random .png images](https://discourse.processing.org/t/looking-for-a-way-to-display-particles-as-random-png-images/39435)

<div class="topic-metadata">

**Author:** [@chxtaigne](https://discourse.processing.org/u/chxtaigne)\
**Replies:** 14\
**Last updated:** [October 27, 2022, 6:43pm UTC](https://discourse.processing.org/t/looking-for-a-way-to-display-particles-as-random-png-images/39435 "2022-10-27T18:43:56Z")

</div>

Hello, I started a project with an ecosystem type code, now i’m trying to display some particles (Particle1 class) as random .png images, everytime a new particle 1 appear i want that it display as a different .png image…

---

## [Can't pass a 3D integer array into a GLSL shader](https://discourse.processing.org/t/cant-pass-a-3d-integer-array-into-a-glsl-shader/39392)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 9\
**Last updated:** [October 26, 2022, 11:27pm UTC](https://discourse.processing.org/t/cant-pass-a-3d-integer-array-into-a-glsl-shader/39392 "2022-10-26T23:27:27Z")

</div>

I have been working on a shader project using the Processing Java Library. I need to be able to use PShader.set() to pass a 3D array of integers into my GLSL shader. I tried all of the present set() methods that they ha…

---

## [Apps using G4P on macOS sometimes miss mouse clicks](https://discourse.processing.org/t/apps-using-g4p-on-macos-sometimes-miss-mouse-clicks/38327)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 13\
**Last updated:** [October 26, 2022, 6:27pm UTC](https://discourse.processing.org/t/apps-using-g4p-on-macos-sometimes-miss-mouse-clicks/38327 "2022-10-26T18:27:01Z")

</div>

I have a built couple of apps using G4P to create a GUI that run on Windows and also on macOS. When on the macOS I sometimes have to click a button several times before the app responds. It might be trying to choose an o…

---

## [Conditionals for resetting moving object](https://discourse.processing.org/t/conditionals-for-resetting-moving-object/39389)

<div class="topic-metadata">

**Author:** [@turtle1](https://discourse.processing.org/u/turtle1)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 12:45pm UTC](https://discourse.processing.org/t/conditionals-for-resetting-moving-object/39389 "2022-10-26T12:45:05Z")

</div>

hi, i want to repeat a moving object using a conditional statement. my object moves off the canvas, but i want that to keep repeating from the top. i have my conditional statement, but how would i incorporate the two?

---

## [Grid of custom designs using beginShape(); vertex(); endShape(CLOSE);](https://discourse.processing.org/t/grid-of-custom-designs-using-beginshape-vertex-endshape-close/39404)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 8\
**Last updated:** [October 26, 2022, 10:57am UTC](https://discourse.processing.org/t/grid-of-custom-designs-using-beginshape-vertex-endshape-close/39404 "2022-10-26T10:57:07Z")

</div>

How do you make a grid of custom shapes like the one that follows (via Daniel Shiffman’s book “Learning Processing”)? void setup(){ size(800,800,P2D); background(255); } void draw(){ stroke(0); translate(30, 30…

---

## [Duplicate bezier figure](https://discourse.processing.org/t/duplicate-bezier-figure/39341)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 6\
**Last updated:** [October 26, 2022, 8:48am UTC](https://discourse.processing.org/t/duplicate-bezier-figure/39341 "2022-10-26T08:48:05Z")

</div>

Hi all, I’ve created this simple figure by rotating a bezier curve: void setup() { size(800, 800); } void draw() { background(255); translate(width/2, height/2); //produce figure by rotating bezier curve …

---

## [Need help with enemy and bullet collision in my little game](https://discourse.processing.org/t/need-help-with-enemy-and-bullet-collision-in-my-little-game/39430)

<div class="topic-metadata">

**Author:** [@butterjwab](https://discourse.processing.org/u/butterjwab)\
**Replies:** 2\
**Last updated:** [October 25, 2022, 7:40pm UTC](https://discourse.processing.org/t/need-help-with-enemy-and-bullet-collision-in-my-little-game/39430 "2022-10-25T19:40:25Z")

</div>

hi, so im making a shooting simple game in processing but I have no idea how to make my enemy disappear and then respawn after my bullets hit it. this is my code: int pixelsize = 4; int gridsize = pixelsize \* 7 + 5; P…

---

## [Can't start Processing 4 macOS Big Sur](https://discourse.processing.org/t/cant-start-processing-4-macos-big-sur/39381)

<div class="topic-metadata">

**Author:** [@Smantik](https://discourse.processing.org/u/Smantik)\
**Replies:** 7\
**Last updated:** [October 25, 2022, 5:39pm UTC](https://discourse.processing.org/t/cant-start-processing-4-macos-big-sur/39381 "2022-10-25T17:39:20Z")

</div>

Hi! I’m working on a MacBook Pro with MacOSX Big Sur. I can’t start last version of Processing 4 as it shows me a message saying “We’re off on the wrong foot” (see picture attached). I have modified read/write permi…

---

## [Extract vertex from a svg file](https://discourse.processing.org/t/extract-vertex-from-a-svg-file/39414)

<div class="topic-metadata">

**Author:** [@DrHooDoo](https://discourse.processing.org/u/DrHooDoo)\
**Replies:** 4\
**Last updated:** [October 25, 2022, 1:32pm UTC](https://discourse.processing.org/t/extract-vertex-from-a-svg-file/39414 "2022-10-25T13:32:28Z")

</div>

Hello all ! :slight\_smile: In short, I’m trying to extract vertex from a svg but no matter how I do I always get an error: “getVertexCount() only works with PATH or GEOMETRY shapes” What I did was: create a little s…

---

## [Svg created have no proper path](https://discourse.processing.org/t/svg-created-have-no-proper-path/39412)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [October 25, 2022, 12:00pm UTC](https://discourse.processing.org/t/svg-created-have-no-proper-path/39412 "2022-10-25T12:00:14Z")

</div>

Hi, I’m trying to create a proper path from shapes. I would like to use the svg as path for my pen plotter (here Axidraw). The svg file opened in inkscape made has a deepness and is doubled for every line. How can I s…

---

## [📢 Calling translators and proofreaders for Processing Community Survey](https://discourse.processing.org/t/calling-translators-and-proofreaders-for-processing-community-survey/39423)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 0\
**Last updated:** [October 25, 2022, 11:02am UTC](https://discourse.processing.org/t/calling-translators-and-proofreaders-for-processing-community-survey/39423 "2022-10-25T11:02:34Z")

</div>

Hello Processing Community, The last Processing Community Survey was in 2018 and I’ve been working on a new one. This time I’d like it to represent a larger diversity of Processing users, including more of our communiti…

---

## [Intersection of 2 circle arcs](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424)

<div class="topic-metadata">

**Author:** [@CallMeGhosty](https://discourse.processing.org/u/CallMeGhosty)\
**Replies:** 5\
**Last updated:** [October 25, 2022, 8:02am UTC](https://discourse.processing.org/t/intersection-of-2-circle-arcs/10424 "2022-10-25T08:02:49Z")

</div>

Hello, As the title says, I would like to get the X and Y coordinates of where the 2 arcs intersect. I only know how to check if they do intersect… hides in shame Challenge: Animate the drawing of the bisector of a tr…

---

## [OpenCV error in Processing 4.0b2](https://discourse.processing.org/t/opencv-error-in-processing-4-0b2/33284)

<div class="topic-metadata">

**Author:** [@Dazzid](https://discourse.processing.org/u/Dazzid)\
**Replies:** 12\
**Last updated:** [October 24, 2022, 4:38pm UTC](https://discourse.processing.org/t/opencv-error-in-processing-4-0b2/33284 "2022-10-24T16:38:58Z")

</div>

I’m preparing a workshop using Processing 4.02b, but OpenCV library seems to have an issue with permissions. WARNING: Illegal reflective access by gab.opencv.OpenCV (file:/Users/Name/Documents/Processing/libraries/open…

---

## [Processing 4.0.1 sketch window scales 200%](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349)

<div class="topic-metadata">

**Author:** [@Fluffball](https://discourse.processing.org/u/Fluffball)\
**Replies:** 5\
**Last updated:** [October 24, 2022, 12:56am UTC](https://discourse.processing.org/t/processing-4-0-1-sketch-window-scales-200/39349 "2022-10-24T00:56:06Z")

</div>

Hi, I’ve been using Processing for several years and recently updated to version 4.0.1. It’s fantastic except that all of a sudden every sketch window is scaled up 200% of true screen resolution! This happens on both mon…

---

## [\[JAVA opencv library\] Have you tried the 'WhichFace' example?](https://discourse.processing.org/t/java-opencv-library-have-you-tried-the-whichface-example/39407)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [October 24, 2022, 4:28am UTC](https://discourse.processing.org/t/java-opencv-library-have-you-tried-the-whichface-example/39407 "2022-10-24T04:28:12Z")

</div>

\[JAVA opencv library\] Have you tried the ‘WhichFace’ example? hello. If anyone knows, please reply, thank you. \[Explanation\] In the ‘OpenCV’ library folder/example folder, there is a ‘WhichFace.pde’ file. It r…

---

## [I can't figure out how to make this array compatible with my Button class](https://discourse.processing.org/t/i-cant-figure-out-how-to-make-this-array-compatible-with-my-button-class/39403)

<div class="topic-metadata">

**Author:** [@darthbray](https://discourse.processing.org/u/darthbray)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 10:43pm UTC](https://discourse.processing.org/t/i-cant-figure-out-how-to-make-this-array-compatible-with-my-button-class/39403 "2022-10-23T22:43:16Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m trying to create a randomly generated chord progression program but I haven’t even reached that part yet, I’m stuck on making an array with …

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

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