# Processing

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

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

**Page:** 87

---

## [Load only first line of file](https://discourse.processing.org/t/load-only-first-line-of-file/36058)

<div class="topic-metadata">

**Author:** [@ybr](https://discourse.processing.org/u/ybr)\
**Replies:** 2\
**Last updated:** [March 31, 2022, 8:39pm UTC](https://discourse.processing.org/t/load-only-first-line-of-file/36058 "2022-03-31T20:39:57Z")

</div>

Hi! I have a large CSV file and loading using loadTable() takes a lot of time. For my application, at first I only need the first line of the file. Is there a way to quickly load the first line of the file without loadi…

---

## [Exporting Sketch With Movie Is Blank](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983)

<div class="topic-metadata">

**Author:** [@Bojangles](https://discourse.processing.org/u/Bojangles)\
**Replies:** 8\
**Last updated:** [June 7, 2021, 8:14pm UTC](https://discourse.processing.org/t/exporting-sketch-with-movie-is-blank/27983 "2021-06-07T20:14:12Z")

</div>

Hi, I’m having issues with exporting a sketch that has a movie in it from the Video library from processing. When I run the sketch, it runs fine and the video plays. But, when I export the sketch to an exe and try to run…

---

## [Xbox Controller + Stepper motors](https://discourse.processing.org/t/xbox-controller-stepper-motors/20818)

<div class="topic-metadata">

**Author:** [@Name\_itT](https://discourse.processing.org/u/Name_itT)\
**Replies:** 25\
**Last updated:** [March 30, 2022, 8:11am UTC](https://discourse.processing.org/t/xbox-controller-stepper-motors/20818 "2022-03-30T08:11:42Z")

</div>

Hello everyone, my name is Taniq, I am from Slovakia, Bratislava.I would like to ask for help. Recently I found a video on youtube, demonstration how to control with Xbox360 servo motors.I was very impressed from the in…

---

## [How to upload best quality MP4 to Twitter using ScreenToGif?](https://discourse.processing.org/t/how-to-upload-best-quality-mp4-to-twitter-using-screentogif/36002)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 3\
**Last updated:** [March 30, 2022, 5:44am UTC](https://discourse.processing.org/t/how-to-upload-best-quality-mp4-to-twitter-using-screentogif/36002 "2022-03-30T05:44:24Z")

</div>

I´ve been using this awesome tool https://www.screentogif.com/ and it has a lot of configurations which I don’t really know how to mangle with. I wish to upload great quality stuff to Twitter, but it always compresses a…

---

## [Movie Maker mp4 output drops FrameRate midway in IOS](https://discourse.processing.org/t/movie-maker-mp4-output-drops-framerate-midway-in-ios/35989)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 1\
**Last updated:** [March 29, 2022, 9:30pm UTC](https://discourse.processing.org/t/movie-maker-mp4-output-drops-framerate-midway-in-ios/35989 "2022-03-29T21:30:45Z")

</div>

Hi all, I believe this topic has appeared a couple times however my case is slightly different. I run my sketch in Processing perfectly fine at 60fps, lasting ~60 secs. Then I use Movie Maker increasing the frame rate t…

---

## [Function triggering events with time and phase offset PAYABLE WORK POSSIBLE](https://discourse.processing.org/t/function-triggering-events-with-time-and-phase-offset-payable-work-possible/35954)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 4\
**Last updated:** [March 29, 2022, 11:51am UTC](https://discourse.processing.org/t/function-triggering-events-with-time-and-phase-offset-payable-work-possible/35954 "2022-03-29T11:51:24Z")

</div>

Hi everyones! I’m trying to make a sort of ‘follow mode’ of a point rotating . One point follows the point rotating and an other point follows the point following the rotating point. I would like that thoses points n+1 …

---

## [How to move two multiple shapes as one with keys](https://discourse.processing.org/t/how-to-move-two-multiple-shapes-as-one-with-keys/35995)

<div class="topic-metadata">

**Author:** [@tojifan](https://discourse.processing.org/u/tojifan)\
**Replies:** 4\
**Last updated:** [March 29, 2022, 10:34am UTC](https://discourse.processing.org/t/how-to-move-two-multiple-shapes-as-one-with-keys/35995 "2022-03-29T10:34:09Z")

</div>

Does anyone know how to move multiple shapes as one? Like how you can move a circle with W,A,S,D or arrow keys and make it move up, down, left and right, how can this be done for lets say two rectangles that are ontop of…

---

## [ASCII art animations](https://discourse.processing.org/t/ascii-art-animations/35988)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 1\
**Last updated:** [March 29, 2022, 4:15am UTC](https://discourse.processing.org/t/ascii-art-animations/35988 "2022-03-29T04:15:04Z")

</div>

Hi I’d like to try to create something along the lines of the super dope ascii animations of Andreas Gysin and others: I believe the method he uses is to hand select a set of characters in increasing visual density a…

---

## [\[JAVA\] Remove background and record screen through chroma key](https://discourse.processing.org/t/java-remove-background-and-record-screen-through-chroma-key/35912)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 6\
**Last updated:** [March 28, 2022, 10:19pm UTC](https://discourse.processing.org/t/java-remove-background-and-record-screen-through-chroma-key/35912 "2022-03-28T22:19:39Z")

</div>

Is it possible to remove the picture background(ex. green color) through the chroma key technique? (Is there a library or an easy workaround?) / (ex. Chromakey) I want to record the screen after removing the back…

---

## [Trouble with creating two player game](https://discourse.processing.org/t/trouble-with-creating-two-player-game/35968)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.processing.org/u/mary)\
**Replies:** 0\
**Last updated:** [March 27, 2022, 9:04pm UTC](https://discourse.processing.org/t/trouble-with-creating-two-player-game/35968 "2022-03-27T21:04:58Z")

</div>

Hello. I’m writing a two-player game and I’m hitting a lot of roadblocks. (I’m a complete beginner). I’m having trouble making classes since I trip up on the basics. I don’t know how to create limits(with if statements)…

---

## [How to make FrameRate faster](https://discourse.processing.org/t/how-to-make-framerate-faster/35790)

<div class="topic-metadata">

**Author:** [@WhiteRose](https://discourse.processing.org/u/WhiteRose)\
**Replies:** 3\
**Last updated:** [March 27, 2022, 7:54pm UTC](https://discourse.processing.org/t/how-to-make-framerate-faster/35790 "2022-03-27T19:54:18Z")

</div>

Hello is there way to get more than 60fps

---

## [Can't type apostrophe(') or quote(") in Processing IDE](https://discourse.processing.org/t/cant-type-apostrophe-or-quote-in-processing-ide/35915)

<div class="topic-metadata">

**Author:** [@cern](https://discourse.processing.org/u/cern)\
**Replies:** 2\
**Last updated:** [March 27, 2022, 6:45pm UTC](https://discourse.processing.org/t/cant-type-apostrophe-or-quote-in-processing-ide/35915 "2022-03-27T18:45:35Z")

</div>

Hi all, I have this weird issue… Any ideas on why? I’m using Mac OS Monterey (12.2.1) and Processing 4.0b7 p.s. I can type these characters in Processing 3.5.4 on the same OS.

---

## [How to make this rotating square reverse direction](https://discourse.processing.org/t/how-to-make-this-rotating-square-reverse-direction/35957)

<div class="topic-metadata">

**Author:** [@Hasse](https://discourse.processing.org/u/Hasse)\
**Replies:** 1\
**Last updated:** [March 26, 2022, 11:01pm UTC](https://discourse.processing.org/t/how-to-make-this-rotating-square-reverse-direction/35957 "2022-03-26T23:01:01Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello! I’m quite new to this so this is probably really easy but I’ve made this rotating square that I want to, after having completed a certain…

---

## [Random functionality with SVG PShapes](https://discourse.processing.org/t/random-functionality-with-svg-pshapes/35950)

<div class="topic-metadata">

**Author:** [@MrGrizzler](https://discourse.processing.org/u/MrGrizzler)\
**Replies:** 1\
**Last updated:** [March 26, 2022, 11:43am UTC](https://discourse.processing.org/t/random-functionality-with-svg-pshapes/35950 "2022-03-26T11:43:48Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi all, I’m trying to import multiple SVG objects and display these at random locations, random scales, also using random colours from a defined…

---

## ['NoClassDefFoundError: com/sun/jna/Library' error with kinect v1](https://discourse.processing.org/t/noclassdeffounderror-com-sun-jna-library-error-with-kinect-v1/32167)

<div class="topic-metadata">

**Author:** [@weiterlee](https://discourse.processing.org/u/weiterlee)\
**Replies:** 3\
**Last updated:** [March 26, 2022, 9:16am UTC](https://discourse.processing.org/t/noclassdeffounderror-com-sun-jna-library-error-with-kinect-v1/32167 "2022-03-26T09:16:50Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m using processing 4.0b1 and trying to use kinect v1 in processing. I’ve downloaded ‘Open Kinect for Processing’ Library by Daniel Shiffm…

---

## [How to output UTF8 character on screen?](https://discourse.processing.org/t/how-to-output-utf8-character-on-screen/35944)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 2\
**Last updated:** [March 26, 2022, 6:33am UTC](https://discourse.processing.org/t/how-to-output-utf8-character-on-screen/35944 "2022-03-26T06:33:52Z")

</div>

I’m using Processing 3.5.4 on Windows 10. I managed to read a UTF8 file name and write it to a text file. But when I tried to use text() command to show it on screen I only saw some squares. Also, when I tried to put s…

---

## [How can I translate this to javascript? I have tried several times but it confuses me](https://discourse.processing.org/t/how-can-i-translate-this-to-javascript-i-have-tried-several-times-but-it-confuses-me/35942)

<div class="topic-metadata">

**Author:** [@VassKenn](https://discourse.processing.org/u/VassKenn)\
**Replies:** 1\
**Last updated:** [March 26, 2022, 2:23am UTC](https://discourse.processing.org/t/how-can-i-translate-this-to-javascript-i-have-tried-several-times-but-it-confuses-me/35942 "2022-03-26T02:23:59Z")

</div>

Write a method that prompts the user for 3 different integers and display on the screen on a single line, separated by commas. If one of the values is repeated, show only the repeated value.

---

## [Issue with using PrintStream](https://discourse.processing.org/t/issue-with-using-printstream/35901)

<div class="topic-metadata">

**Author:** [@plantagenet](https://discourse.processing.org/u/plantagenet)\
**Replies:** 1\
**Last updated:** [March 25, 2022, 11:12pm UTC](https://discourse.processing.org/t/issue-with-using-printstream/35901 "2022-03-25T23:12:53Z")

</div>

I am trying to create a print stream class and store the errors/console in there, so when errors pop up they are stored in the printstream. This is because I want to send any errors to a server when they appear. I have …

---

## [Getting null pointer exception error in class using PVector](https://discourse.processing.org/t/getting-null-pointer-exception-error-in-class-using-pvector/35932)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 3\
**Last updated:** [March 25, 2022, 5:49am UTC](https://discourse.processing.org/t/getting-null-pointer-exception-error-in-class-using-pvector/35932 "2022-03-25T05:49:29Z")

</div>

I don’t understand why I’m getting NPE error. Processing points me to: Walker(PVector \_location) { location.set(\_location); } Here is all my code: PVector location; PVector velocity; Walker walker1; void set…

---

## [Store the console/error log of the Processing IDE](https://discourse.processing.org/t/store-the-console-error-log-of-the-processing-ide/35918)

<div class="topic-metadata">

**Author:** [@plantagenet](https://discourse.processing.org/u/plantagenet)\
**Replies:** 3\
**Last updated:** [March 24, 2022, 4:39pm UTC](https://discourse.processing.org/t/store-the-console-error-log-of-the-processing-ide/35918 "2022-03-24T16:39:41Z")

</div>

I am trying to store the console to store errors when they occur in processing ide. I am making a custom library and using eclipse to make it. I was trying to use print streams to and store errors messages in them. Which…

---

## [Copy() bug, pixel bleeding lower half of the screen](https://discourse.processing.org/t/copy-bug-pixel-bleeding-lower-half-of-the-screen/35917)

<div class="topic-metadata">

**Author:** [@rroarrg](https://discourse.processing.org/u/rroarrg)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 10:57pm UTC](https://discourse.processing.org/t/copy-bug-pixel-bleeding-lower-half-of-the-screen/35917 "2022-03-24T22:57:17Z")

</div>

Hi, i’m trying to make some analog-like video feedback effects using the copy() function. copy(sx, sy, sw, sh, dx, dy, dw, dh) s=source, d=destination When copying the screen and scaling it by some pixels, making a s…

---

## [Writing to a txt file from library in Processing](https://discourse.processing.org/t/writing-to-a-txt-file-from-library-in-processing/35927)

<div class="topic-metadata">

**Author:** [@plantagenet](https://discourse.processing.org/u/plantagenet)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 3:48pm UTC](https://discourse.processing.org/t/writing-to-a-txt-file-from-library-in-processing/35927 "2022-03-24T15:48:46Z")

</div>

I am creating a custom library for processing, and I am trying to create a txt file to store some basic txt. In eclipse I have been using: PrintWriter writer = new PrintWriter("storage.txt", "UTF-8"); writer.println("S…

---

## [Alternative to background()](https://discourse.processing.org/t/alternative-to-background/35923)

<div class="topic-metadata">

**Author:** [@Raul](https://discourse.processing.org/u/Raul)\
**Replies:** 0\
**Last updated:** [March 24, 2022, 2:11pm UTC](https://discourse.processing.org/t/alternative-to-background/35923 "2022-03-24T14:11:14Z")

</div>

Hi there, It would be long to explain, but I can’t use background() in my sketch (something related with P3D sketches whose windows are bigger than your display). So, I though this code would do the same as background(…

---

## [Access to a class variable](https://discourse.processing.org/t/access-to-a-class-variable/35883)

<div class="topic-metadata">

**Author:** [@Cthulhu](https://discourse.processing.org/u/Cthulhu)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 1:23pm UTC](https://discourse.processing.org/t/access-to-a-class-variable/35883 "2022-03-24T13:23:10Z")

</div>

Hello, I want to acess to a class variable but I can´t. How do I do it? \</if (dist(xpos,ypos,balls.xpost,balls.ypost)\<=0){ } Class name is Ball

---

## [Can’t find the Syphon in the library 😭](https://discourse.processing.org/t/can-t-find-the-syphon-in-the-library/35871)

<div class="topic-metadata">

**Author:** [@ZenyonLee](https://discourse.processing.org/u/ZenyonLee)\
**Replies:** 1\
**Last updated:** [March 24, 2022, 11:58am UTC](https://discourse.processing.org/t/can-t-find-the-syphon-in-the-library/35871 "2022-03-24T11:58:29Z")

</div>

My processing version is 3.5.4. I can find other libraries, but I don’t know why I can’t see the syphon

---

## [Idea for subclassing java.awt.Paint in order to use a sketch as a raster implementation of the pure Java Paint class](https://discourse.processing.org/t/idea-for-subclassing-java-awt-paint-in-order-to-use-a-sketch-as-a-raster-implementation-of-the-pure-java-paint-class/35807)

<div class="topic-metadata">

**Author:** [@istinn](https://discourse.processing.org/u/istinn)\
**Replies:** 0\
**Last updated:** [March 18, 2022, 1:35am UTC](https://discourse.processing.org/t/idea-for-subclassing-java-awt-paint-in-order-to-use-a-sketch-as-a-raster-implementation-of-the-pure-java-paint-class/35807 "2022-03-18T01:35:34Z")

</div>

I would like to make some notes and expose an idea about the possible use of the paint java class along side with processing. The idea is to create a “new java class that implements Paint” and use it as a graphics2d cap…

---

## [Anyone encounter the issue with fullScreen(); not span across all monitor in Pde4?](https://discourse.processing.org/t/anyone-encounter-the-issue-with-fullscreen-not-span-across-all-monitor-in-pde4/35909)

<div class="topic-metadata">

**Author:** [@teemee](https://discourse.processing.org/u/teemee)\
**Replies:** 0\
**Last updated:** [March 23, 2022, 2:48pm UTC](https://discourse.processing.org/t/anyone-encounter-the-issue-with-fullscreen-not-span-across-all-monitor-in-pde4/35909 "2022-03-23T14:48:25Z")

</div>

I’m working on Pde 4 and my Macbook Pro is Catalina 10.15.7 I found that the basic SPAN tutorial does not work for me int x = 0; void setup() { fullScreen(P2D, SPAN); background(0); noStroke(); fill(102); } v…

---

## [Array Index Out of Bounds Exception when Inserting an image](https://discourse.processing.org/t/array-index-out-of-bounds-exception-when-inserting-an-image/35881)

<div class="topic-metadata">

**Author:** [@gameworn](https://discourse.processing.org/u/gameworn)\
**Replies:** 12\
**Last updated:** [March 23, 2022, 7:58am UTC](https://discourse.processing.org/t/array-index-out-of-bounds-exception-when-inserting-an-image/35881 "2022-03-23T07:58:59Z")

</div>

Hi to all So I messed up the first step being, trying to get my code in a readable format. I saw the link to Processing.js Template, but had no idea what to do with it once my code was in there. Then there was the oppor…

---

## [Draw a dotted line with the mouse using if statements](https://discourse.processing.org/t/draw-a-dotted-line-with-the-mouse-using-if-statements/35888)

<div class="topic-metadata">

**Author:** [@onyx88](https://discourse.processing.org/u/onyx88)\
**Replies:** 9\
**Last updated:** [March 23, 2022, 12:34am UTC](https://discourse.processing.org/t/draw-a-dotted-line-with-the-mouse-using-if-statements/35888 "2022-03-23T00:34:13Z")

</div>

Hi everyone im a beginner and im not sure how to approach this question. The hint part of the question is confusing me and everything ive tried hasn’t given me a dotted line. Does it want us to draw two different line…

---

## [Can someone help by making my code into a SVG file?](https://discourse.processing.org/t/can-someone-help-by-making-my-code-into-a-svg-file/35874)

<div class="topic-metadata">

**Author:** [@C.J](https://discourse.processing.org/u/C.J)\
**Replies:** 1\
**Last updated:** [March 21, 2022, 10:18am UTC](https://discourse.processing.org/t/can-someone-help-by-making-my-code-into-a-svg-file/35874 "2022-03-21T10:18:20Z")

</div>

Hey! I’m a student CS at a Highschool in the Netherlands and I need some help. I’ve been making a code but I can’t seem to make it into a SVG file. Could someone help me with that? Here’s the code: //code made by C.J …

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

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