# Processing

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

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

**Page:** 379

---

## [How can use this java file inside processing sketch](https://discourse.processing.org/t/how-can-use-this-java-file-inside-processing-sketch/2001)

<div class="topic-metadata">

**Author:** [@basher24](https://discourse.processing.org/u/basher24)\
**Replies:** 2\
**Last updated:** [July 24, 2018, 3:32am UTC](https://discourse.processing.org/t/how-can-use-this-java-file-inside-processing-sketch/2001 "2018-07-24T03:32:04Z")

</div>

how can i call the startup() function from processing sketch ? /\* LiveRecognitionApp.java \*/ package liverecognition; import org.jdesktop.application.Application; import org.jdesktop.application.SingleFrameApplica…

---

## [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

---

## [Trying to open Images with jSon Object shows unreliable behavior](https://discourse.processing.org/t/trying-to-open-images-with-json-object-shows-unreliable-behavior/1968)

<div class="topic-metadata">

**Author:** [@niko\_fhtw](https://discourse.processing.org/u/niko_fhtw)\
**Replies:** 13\
**Last updated:** [July 23, 2018, 5:27pm UTC](https://discourse.processing.org/t/trying-to-open-images-with-json-object-shows-unreliable-behavior/1968 "2018-07-23T17:27:39Z")

</div>

Hi, Currently we are working on a project where we send signals from an Android app to an arduino. The arduino controls a robot and send the signals via serial communication (in jSon format) to a GUI. The GUI is written…

---

## [Trying to Reduce the Number of Global Variables](https://discourse.processing.org/t/trying-to-reduce-the-number-of-global-variables/1942)

<div class="topic-metadata">

**Author:** [@QuazArxx](https://discourse.processing.org/u/QuazArxx)\
**Replies:** 8\
**Last updated:** [July 23, 2018, 4:26pm UTC](https://discourse.processing.org/t/trying-to-reduce-the-number-of-global-variables/1942 "2018-07-23T16:26:35Z")

</div>

int x, y; int xSpeed = 0; int ySpeed = 0; int diam = 50; int xConstr; int yConstr; void setup() { size(400,400); smooth(); x = width / 2; y = height / 2; } void draw() { drawBackground(); drawObject(); …

---

## [9-Point mesh warping](https://discourse.processing.org/t/9-point-mesh-warping/1932)

<div class="topic-metadata">

**Author:** [@jakedubber](https://discourse.processing.org/u/jakedubber)\
**Replies:** 5\
**Last updated:** [July 23, 2018, 9:01am UTC](https://discourse.processing.org/t/9-point-mesh-warping/1932 "2018-07-23T09:01:38Z")

</div>

I’m trying to figure out how to go about warping a mesh using 9 handles (marked in red). I can already deform the mesh by moving the corners but it’s the intermediary handles I’m really struggling with. I need this to wo…

---

## [PGraphics Empty with copy() Function](https://discourse.processing.org/t/pgraphics-empty-with-copy-function/1980)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 15\
**Last updated:** [July 23, 2018, 8:54am UTC](https://discourse.processing.org/t/pgraphics-empty-with-copy-function/1980 "2018-07-23T08:54:21Z")

</div>

Hi, I made a Slit-Scan effect in Processing, now I’m trying to export the pdf of the scan effect with only render the new image, and I thought about PGraphics. The problem is that PGraphics looks empty, I don’t know wh…

---

## [Help! processing interface with Json of Philips hue](https://discourse.processing.org/t/help-processing-interface-with-json-of-philips-hue/1991)

<div class="topic-metadata">

**Author:** [@Olivia](https://discourse.processing.org/u/Olivia)\
**Replies:** 1\
**Last updated:** [July 22, 2018, 11:50pm UTC](https://discourse.processing.org/t/help-processing-interface-with-json-of-philips-hue/1991 "2018-07-22T23:50:57Z")

</div>

Does anyone know how processing interface with Philips hue Json to control the light? I find a sample code online but it seems not working. https://github.com/callil/hueP5 And I also find another way of doing it. it se…

---

## [\[Answered\] How to get text from paste buffer?](https://discourse.processing.org/t/answered-how-to-get-text-from-paste-buffer/1900)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 3\
**Last updated:** [July 22, 2018, 8:26pm UTC](https://discourse.processing.org/t/answered-how-to-get-text-from-paste-buffer/1900 "2018-07-22T20:26:43Z")

</div>

OS: Windows 10 64bit. Processing 3.3.7. I am looking for a solution on how to get text from the copy/paste system buffer (aka CTRL+C CTRL+V buffer). So far I have this code compiled from examples and such from other pe…

---

## [Box() - set boundary on the Y axis](https://discourse.processing.org/t/box-set-boundary-on-the-y-axis/1959)

<div class="topic-metadata">

**Author:** [@Caitlin123](https://discourse.processing.org/u/Caitlin123)\
**Replies:** 2\
**Last updated:** [July 22, 2018, 8:26pm UTC](https://discourse.processing.org/t/box-set-boundary-on-the-y-axis/1959 "2018-07-22T20:26:41Z")

</div>

Hi all, Very new to processing, essentially im trying to loop through a csv folder to create a bar graph. the bars will be 3d boxes. Using the below as an example, what i dont understand is, when using the box function,…

---

## [Getrow() - unwanted rounding](https://discourse.processing.org/t/getrow-unwanted-rounding/1926)

<div class="topic-metadata">

**Author:** [@Groot](https://discourse.processing.org/u/Groot)\
**Replies:** 3\
**Last updated:** [July 22, 2018, 8:26pm UTC](https://discourse.processing.org/t/getrow-unwanted-rounding/1926 "2018-07-22T20:26:38Z")

</div>

hi all, ultra new to processing, apologies in advance if this has been asked/is basic. im trying to read data out of a table that i have imported from a csv file. i load the table, select a specific row i am intereste…

---

## [Help With My New Game](https://discourse.processing.org/t/help-with-my-new-game/1910)

<div class="topic-metadata">

**Author:** [@Tat-Tay](https://discourse.processing.org/u/Tat-Tay)\
**Replies:** 3\
**Last updated:** [July 22, 2018, 8:26pm UTC](https://discourse.processing.org/t/help-with-my-new-game/1910 "2018-07-22T20:26:35Z")

</div>

Hello. I’m am extremely new to coding in general. I do not know anything about libraries and functions or any of that vocabulary of coding because I started about one month ago and I taught myself to code using Youtube v…

---

## [Flappy Bird game](https://discourse.processing.org/t/flappy-bird-game/1955)

<div class="topic-metadata">

**Author:** [@justdredre](https://discourse.processing.org/u/justdredre)\
**Replies:** 4\
**Last updated:** [July 22, 2018, 7:16am UTC](https://discourse.processing.org/t/flappy-bird-game/1955 "2018-07-22T07:16:52Z")

</div>

New to java scrip and need some help please :slight\_smile: Can someone tell me why my obstacles arent showing up when i live preview? I have used the console log to see if its registering the obstacles every 2 seconds (…

---

## [Loading a file results in weird chars](https://discourse.processing.org/t/loading-a-file-results-in-weird-chars/1947)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 4\
**Last updated:** [July 22, 2018, 5:07am UTC](https://discourse.processing.org/t/loading-a-file-results-in-weird-chars/1947 "2018-07-22T05:07:46Z")

</div>

im loading a hexadecimal file, and i put ff, it returns FFFD. any help? -Grim

---

## [How to Convert File Doc to pdf](https://discourse.processing.org/t/how-to-convert-file-doc-to-pdf/1961)

<div class="topic-metadata">

**Author:** [@ofconvert](https://discourse.processing.org/u/ofconvert)\
**Replies:** 1\
**Last updated:** [July 21, 2018, 8:05pm UTC](https://discourse.processing.org/t/how-to-convert-file-doc-to-pdf/1961 "2018-07-21T20:05:49Z")

</div>

Hello everyone My name is john and i am trying to convert doc to pdf, so how to convert File

---

## [Rendering audio visual applications](https://discourse.processing.org/t/rendering-audio-visual-applications/1956)

<div class="topic-metadata">

**Author:** [@Kimri](https://discourse.processing.org/u/Kimri)\
**Replies:** 2\
**Last updated:** [July 21, 2018, 8:55am UTC](https://discourse.processing.org/t/rendering-audio-visual-applications/1956 "2018-07-21T08:55:53Z")

</div>

The question is: how do you render Processing applications which are real time audio reactive, i.e. where the the video reacts to parameters extracted from audio? For instance, this was done via screen capture, and cl…

---

## [Implements an interface of a library](https://discourse.processing.org/t/implements-an-interface-of-a-library/1928)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 9\
**Last updated:** [July 21, 2018, 4:06am UTC](https://discourse.processing.org/t/implements-an-interface-of-a-library/1928 "2018-07-21T04:06:07Z")

</div>

hello. im trying to create a path tube with shape3D library, but i have a problem to implements a I\_PathGen interface… is the first time that i “implements” a interface and i dont know how exactly make it works. import…

---

## [Questions about Processing codes and copyright.](https://discourse.processing.org/t/questions-about-processing-codes-and-copyright/1867)

<div class="topic-metadata">

**Author:** [@Adrion](https://discourse.processing.org/u/Adrion)\
**Replies:** 7\
**Last updated:** [July 21, 2018, 2:43am UTC](https://discourse.processing.org/t/questions-about-processing-codes-and-copyright/1867 "2018-07-21T02:43:22Z")

</div>

My name is Adrion T. Kelley and I am an Art & Tech major at the University of Oregon. I am interested in making an online Processing tutorial through Udemy.com and charging for the tutorials but I am unsure about the …

---

## [Reading the keys on the keyboard](https://discourse.processing.org/t/reading-the-keys-on-the-keyboard/1944)

<div class="topic-metadata">

**Author:** [@pcripe](https://discourse.processing.org/u/pcripe)\
**Replies:** 2\
**Last updated:** [July 20, 2018, 11:37pm UTC](https://discourse.processing.org/t/reading-the-keys-on-the-keyboard/1944 "2018-07-20T23:37:21Z")

</div>

I have been brushing up o Processing after buying a Microsoft Surface Book 2. When I get to trying to draw letters on the keyboard, it seems the key code is not passed into the program. Anyone have a similar problem? …

---

## [Hemesh change parameters](https://discourse.processing.org/t/hemesh-change-parameters/1863)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 6\
**Last updated:** [July 20, 2018, 5:38pm UTC](https://discourse.processing.org/t/hemesh-change-parameters/1863 "2018-07-20T17:38:11Z")

</div>

hello! im using the hemesh library to construct 3D meshes, but ive a problem when i want to change the values of a constructor.. how can i change them? here in the example, i want to change the radius according mouseX po…

---

## [Predefined variables affecting execution](https://discourse.processing.org/t/predefined-variables-affecting-execution/1930)

<div class="topic-metadata">

**Author:** [@giulio](https://discourse.processing.org/u/giulio)\
**Replies:** 3\
**Last updated:** [July 20, 2018, 5:07pm UTC](https://discourse.processing.org/t/predefined-variables-affecting-execution/1930 "2018-07-20T17:07:17Z")

</div>

I was modifying and cleaning my code. Suddenly the draw() loop stopped to be repeated (it only executed the first time, up to the last line, as I saw by inserting some println calls). After looking at the code, I saw th…

---

## [How do I make an app in a video?(message box)](https://discourse.processing.org/t/how-do-i-make-an-app-in-a-video-message-box/1934)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 4:28pm UTC](https://discourse.processing.org/t/how-do-i-make-an-app-in-a-video-message-box/1934 "2018-07-20T16:28:16Z")

</div>

ummary: When a shock is detected, Arduino transmits data to the smartphone via Bluetooth communication. At this time, the following message box appears on the background screen. How do I make the message …

---

## [How to use textWidth on a text generated with Geomerative library?](https://discourse.processing.org/t/how-to-use-textwidth-on-a-text-generated-with-geomerative-library/1636)

<div class="topic-metadata">

**Author:** [@lolonulu](https://discourse.processing.org/u/lolonulu)\
**Replies:** 6\
**Last updated:** [July 20, 2018, 9:33am UTC](https://discourse.processing.org/t/how-to-use-textwidth-on-a-text-generated-with-geomerative-library/1636 "2018-07-20T09:33:23Z")

</div>

Hello everybody, I am looking for a solution to get the width of each of my sentences written with the Geomerative library, is someone know how to proceed?! Thanks a lot in advance for your help! Best, L

---

## [Color Grading using LUT and PShader](https://discourse.processing.org/t/color-grading-using-lut-and-pshader/1929)

<div class="topic-metadata">

**Author:** [@alexr4](https://discourse.processing.org/u/alexr4)\
**Replies:** 0\
**Last updated:** [July 20, 2018, 8:11am UTC](https://discourse.processing.org/t/color-grading-using-lut-and-pshader/1929 "2018-07-20T08:11:27Z")

</div>

Hi everyone, I am trying to implement a color grading shader using LUT as described here by Matt DesLauriers et here by Lev Zelensky but I get a strange result when I apply the shader with a standard lut : On the lef…

---

## [I need two songs to sound after the other](https://discourse.processing.org/t/i-need-two-songs-to-sound-after-the-other/1274)

<div class="topic-metadata">

**Author:** [@ruski15](https://discourse.processing.org/u/ruski15)\
**Replies:** 10\
**Last updated:** [July 20, 2018, 6:12am UTC](https://discourse.processing.org/t/i-need-two-songs-to-sound-after-the-other/1274 "2018-07-20T06:12:23Z")

</div>

Hi community, I would like my code to play a sound, stop for 5 secs and play another sound. There will be 7 sounds that have to combine randomly with each other (that makes 42 combinations). Following the p5.js exampl…

---

## [ Phantom Video Frame in Sketch](https://discourse.processing.org/t/phantom-video-frame-in-sketch/635)

<div class="topic-metadata">

**Author:** [@lukemcconnell](https://discourse.processing.org/u/lukemcconnell)\
**Replies:** 9\
**Last updated:** [July 20, 2018, 6:01am UTC](https://discourse.processing.org/t/phantom-video-frame-in-sketch/635 "2018-07-20T06:01:36Z")

</div>

I am new to Processing so I’ve hit a wall. I’ve developed a simple sketch for an interactive work which triggers videos on keypress d,f,g. When a key is pressed the video should start from the beginning and play. If no o…

---

## [Syntax and Hints for Processing](https://discourse.processing.org/t/syntax-and-hints-for-processing/1904)

<div class="topic-metadata">

**Author:** [@abubakar](https://discourse.processing.org/u/abubakar)\
**Replies:** 2\
**Last updated:** [July 20, 2018, 1:13am UTC](https://discourse.processing.org/t/syntax-and-hints-for-processing/1904 "2018-07-20T01:13:25Z")

</div>

I am new to Processing3, I am facing issues in finding the syntax of different commands in processing. e.g contour. Can someone guide me how i can simply check if my contours are convex. precisely how to use cv.isConto…

---

## [Notifications on windows](https://discourse.processing.org/t/notifications-on-windows/1918)

<div class="topic-metadata">

**Author:** [@AidanLand](https://discourse.processing.org/u/AidanLand)\
**Replies:** 1\
**Last updated:** [July 20, 2018, 1:11am UTC](https://discourse.processing.org/t/notifications-on-windows/1918 "2018-07-20T01:11:10Z")

</div>

I’m writing an alarm clock program, and right now You have to be looking at the program to see the alarm. I would like to be able to make my program to display a notification when the alarm goes off, like the built in a…

---

## [Using an external java class](https://discourse.processing.org/t/using-an-external-java-class/1895)

<div class="topic-metadata">

**Author:** [@colinh](https://discourse.processing.org/u/colinh)\
**Replies:** 5\
**Last updated:** [July 19, 2018, 9:19pm UTC](https://discourse.processing.org/t/using-an-external-java-class/1895 "2018-07-19T21:19:51Z")

</div>

I’ve written a java class (which interfaces to a C library via JNI) and which I’d like to use in a sketch. //\*\*\*\* bezier/BezFit.java package bezier; public class BezFit { static { System.loadLibrary("bezier"); } …

---

## [Ignore changes to matrix](https://discourse.processing.org/t/ignore-changes-to-matrix/1917)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 4\
**Last updated:** [July 19, 2018, 6:55pm UTC](https://discourse.processing.org/t/ignore-changes-to-matrix/1917 "2018-07-19T18:55:18Z")

</div>

Is there a clever way to ignore/reset any changes to the matrix that happen outside of a push/popMatrix? Say I draw some objects normally using push/popMatrix(), then I’m calculating various things and have some debug vi…

---

## [Print the value of a function](https://discourse.processing.org/t/print-the-value-of-a-function/1902)

<div class="topic-metadata">

**Author:** [@Javier](https://discourse.processing.org/u/Javier)\
**Replies:** 3\
**Last updated:** [July 19, 2018, 4:59pm UTC](https://discourse.processing.org/t/print-the-value-of-a-function/1902 "2018-07-19T16:59:25Z")

</div>

Hi all¡¡ I have defined a very simple function that transfer fahrenheit to celsius and I want to introduce as a variable the Fharenheit and return Celsius. I would like to print the value of the Celsius but i cant undest…

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

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