# Processing

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

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

**Page:** 377

---

## [Math for translating mouse coordinates](https://discourse.processing.org/t/math-for-translating-mouse-coordinates/2284)

<div class="topic-metadata">

**Author:** [@shawnlau](https://discourse.processing.org/u/shawnlau)\
**Replies:** 8\
**Last updated:** [August 2, 2018, 3:54am UTC](https://discourse.processing.org/t/math-for-translating-mouse-coordinates/2284 "2018-08-02T03:54:44Z")

</div>

This is a very simplified program showing my problem. I need to draw to an image that is rotated. I can’t use any of processing’s line or point functions because of different type brushes in the real program. I have to …

---

## [Arduino Air Instrument with Ultrasonic Sensor and Processing](https://discourse.processing.org/t/arduino-air-instrument-with-ultrasonic-sensor-and-processing/2245)

<div class="topic-metadata">

**Author:** [@nateswill](https://discourse.processing.org/u/nateswill)\
**Replies:** 4\
**Last updated:** [August 2, 2018, 3:32am UTC](https://discourse.processing.org/t/arduino-air-instrument-with-ultrasonic-sensor-and-processing/2245 "2018-08-02T03:32:56Z")

</div>

This is my first time using processing although I’ve been making Arduino projects for awhile. I’m trying to to create an instrument that changes pitch as the distance from an ultrasonic sensor varies. So far I am unabl…

---

## [Cannot find a class or type name Circle](https://discourse.processing.org/t/cannot-find-a-class-or-type-name-circle/1951)

<div class="topic-metadata">

**Author:** [@sjames2](https://discourse.processing.org/u/sjames2)\
**Replies:** 2\
**Last updated:** [August 1, 2018, 8:40pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-name-circle/1951 "2018-08-01T20:40:41Z")

</div>

Hello! I’m recently new to java -processing, and we’re curently working on an animation assignment. I keep getting a class error message, that states "Cannot find a class or type named “Circle”. If anyone could help me …

---

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

---

## [Read two separate sensor value](https://discourse.processing.org/t/read-two-separate-sensor-value/2161)

<div class="topic-metadata">

**Author:** [@jbalbarez](https://discourse.processing.org/u/jbalbarez)\
**Replies:** 2\
**Last updated:** [August 1, 2018, 2:04pm UTC](https://discourse.processing.org/t/read-two-separate-sensor-value/2161 "2018-08-01T14:04:36Z")

</div>

I have two light sensor setup to my Arduino Uno, and I want to send the value of two sensors to processing and then separately assign it to val1 and val2 and show it in window. But in my Processing code it is only design…

---

## [Code for saving the sketch as an image for printing](https://discourse.processing.org/t/code-for-saving-the-sketch-as-an-image-for-printing/2131)

<div class="topic-metadata">

**Author:** [@haschdl](https://discourse.processing.org/u/haschdl)\
**Replies:** 2\
**Last updated:** [August 1, 2018, 1:00pm UTC](https://discourse.processing.org/t/code-for-saving-the-sketch-as-an-image-for-printing/2131 "2018-08-01T13:00:13Z")

</div>

Anyone else creating art for print? :smiley: I’m currently working on a project where I create images for printing, by drawing to an off-screen buffer (a PGraphics variable), and calling save() on the PGraphics. This a…

---

## [Use other sockets with Processing network client](https://discourse.processing.org/t/use-other-sockets-with-processing-network-client/2203)

<div class="topic-metadata">

**Author:** [@0x5e](https://discourse.processing.org/u/0x5e)\
**Replies:** 3\
**Last updated:** [August 1, 2018, 10:23am UTC](https://discourse.processing.org/t/use-other-sockets-with-processing-network-client/2203 "2018-08-01T10:23:34Z")

</div>

I have written a game server in Python (it’s more fit for the job, with async and all). Now I’m working to integrate its functionality with Processing. I’m using Client from processing.net.\* Here’s an example of my issu…

---

## [Sketch is running slow](https://discourse.processing.org/t/sketch-is-running-slow/2253)

<div class="topic-metadata">

**Author:** [@nessangelica](https://discourse.processing.org/u/nessangelica)\
**Replies:** 2\
**Last updated:** [August 1, 2018, 2:50am UTC](https://discourse.processing.org/t/sketch-is-running-slow/2253 "2018-08-01T02:50:00Z")

</div>

hi! I am currently doing the color track example from thecodingtrain’s youtube video (https://www.youtube.com/watch?v=h8tk0hmWB44&list=PLRqwX-V7Uu6bw0bVn4M63p8TMJf3OhGy8&index=4). I tried writing the code myself, and a…

---

## [Using pow() for non-integers](https://discourse.processing.org/t/using-pow-for-non-integers/2246)

<div class="topic-metadata">

**Author:** [@stevenette](https://discourse.processing.org/u/stevenette)\
**Replies:** 6\
**Last updated:** [August 1, 2018, 12:00am UTC](https://discourse.processing.org/t/using-pow-for-non-integers/2246 "2018-08-01T00:00:17Z")

</div>

I am trying to raise X ^ 0.026 using float X = 2.0; float Y = pow(X,0.026); This returns 0.0 when it should return 1.018. Does pow() require an integer? Is there a way around this? I have also tried float Y = exp(0.0…

---

## [Framedrops when displaying PImage at negative coords](https://discourse.processing.org/t/framedrops-when-displaying-pimage-at-negative-coords/2215)

<div class="topic-metadata">

**Author:** [@Bottom](https://discourse.processing.org/u/Bottom)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 9:17pm UTC](https://discourse.processing.org/t/framedrops-when-displaying-pimage-at-negative-coords/2215 "2018-07-31T21:17:44Z")

</div>

Hi, I noticed that when I call the image() function with negative coordinates but part of the image is still visible, I get massive framedrops from the set framerate(60) to around 30 to 45. Does anyone know if this is a…

---

## [Plot date using Grafica in Processing](https://discourse.processing.org/t/plot-date-using-grafica-in-processing/2239)

<div class="topic-metadata">

**Author:** [@stevenette](https://discourse.processing.org/u/stevenette)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 4:56pm UTC](https://discourse.processing.org/t/plot-date-using-grafica-in-processing/2239 "2018-07-31T16:56:45Z")

</div>

Hello, I have a csv that I have created in processing. Now I want the user to be able to create a graph from these data using the date as the x-axis, and other data on the y-axis. Here is a snippet of the csv. ‘Time Bat…

---

## [Pause and restart Soundfile](https://discourse.processing.org/t/pause-and-restart-soundfile/2122)

<div class="topic-metadata">

**Author:** [@cameyo](https://discourse.processing.org/u/cameyo)\
**Replies:** 5\
**Last updated:** [July 31, 2018, 12:41pm UTC](https://discourse.processing.org/t/pause-and-restart-soundfile/2122 "2018-07-31T12:41:53Z")

</div>

How to pause and restart (from paused position) a Soundfile (mp3) ? Thanks

---

## [java.lang.NoClassDefFoundError for GIF image](https://discourse.processing.org/t/java-lang-noclassdeffounderror-for-gif-image/2231)

<div class="topic-metadata">

**Author:** [@nvwingh](https://discourse.processing.org/u/nvwingh)\
**Replies:** 4\
**Last updated:** [July 31, 2018, 9:37am UTC](https://discourse.processing.org/t/java-lang-noclassdeffounderror-for-gif-image/2231 "2018-07-31T09:37:49Z")

</div>

I am playing a GIF image in the main window, just for testing the GifAnimation Library. I used the following code as prescribed by the library… import gifAnimation.\*; Gif myAnimation; void setup() { size(400,400);…

---

## [Video library to use new GStreamer bindings](https://discourse.processing.org/t/video-library-to-use-new-gstreamer-bindings/2223)

<div class="topic-metadata">

**Author:** [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Replies:** 2\
**Last updated:** [July 31, 2018, 8:47am UTC](https://discourse.processing.org/t/video-library-to-use-new-gstreamer-bindings/2223 "2018-07-31T08:47:04Z")

</div>

These are posts discussing a potential upgrade to the Video library: Video 1.0.1 - Read a frame from a paused video? - Processing 2.x and 3.x Forum Help with text and video - #16 by neilcsmith Project List · proc…

---

## [Screen is Blinking](https://discourse.processing.org/t/screen-is-blinking/2195)

<div class="topic-metadata">

**Author:** [@nvwingh](https://discourse.processing.org/u/nvwingh)\
**Replies:** 5\
**Last updated:** [July 31, 2018, 7:21am UTC](https://discourse.processing.org/t/screen-is-blinking/2195 "2018-07-31T07:21:49Z")

</div>

I am using an Image I drew with a dynamic background colour to simulate day/ night… Depending on the time of day the background colour changes dynamically. What happens is that not only my background changes, but the who…

---

## [Help with static methods!](https://discourse.processing.org/t/help-with-static-methods/2228)

<div class="topic-metadata">

**Author:** [@michaelberge](https://discourse.processing.org/u/michaelberge)\
**Replies:** 6\
**Last updated:** [July 31, 2018, 6:50am UTC](https://discourse.processing.org/t/help-with-static-methods/2228 "2018-07-31T06:50:20Z")

</div>

I’m getting an error that says ‘No enclosing instance of type \_\_\_\_ is accessible’. I basically want a class that has both non-static and static variables but Processing doesn’t allow that for some reason. I tried putting…

---

## [Rotation an object using processing](https://discourse.processing.org/t/rotation-an-object-using-processing/2089)

<div class="topic-metadata">

**Author:** [@bill](https://discourse.processing.org/u/bill)\
**Replies:** 8\
**Last updated:** [July 31, 2018, 1:14am UTC](https://discourse.processing.org/t/rotation-an-object-using-processing/2089 "2018-07-31T01:14:52Z")

</div>

Hi there, I am new to processing. I have an idea to do a sketch of tower crane’s top view. so I have two objects to consider one is the jib rotating and the second is the trolley moving along the jib. I have did the par…

---

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

---

## [Drawing line between to different objects](https://discourse.processing.org/t/drawing-line-between-to-different-objects/2185)

<div class="topic-metadata">

**Author:** [@janberkjk](https://discourse.processing.org/u/janberkjk)\
**Replies:** 11\
**Last updated:** [July 30, 2018, 8:10pm UTC](https://discourse.processing.org/t/drawing-line-between-to-different-objects/2185 "2018-07-30T20:10:04Z")

</div>

Hello everyone, I have object stars and what i need to do, draw line between two stars, if two stars close to each other, and delete line if not, star(x,y); for example if the distance between star 1 x and star 2 x cl…

---

## [Creating a (vector) path from acceleration values derived from txt file](https://discourse.processing.org/t/creating-a-vector-path-from-acceleration-values-derived-from-txt-file/2034)

<div class="topic-metadata">

**Author:** [@cathytsir](https://discourse.processing.org/u/cathytsir)\
**Replies:** 6\
**Last updated:** [July 30, 2018, 6:34pm UTC](https://discourse.processing.org/t/creating-a-vector-path-from-acceleration-values-derived-from-txt-file/2034 "2018-07-30T18:34:02Z")

</div>

Hello everyone and thank you in advance for your help!! I have data collected from a sensor attached on Arduino which have been saved on an SD card as a txt file. Now i’m trying to visualize those values into Processing…

---

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

---

## [Weird Type mismatch when calling value from ArrayList](https://discourse.processing.org/t/weird-type-mismatch-when-calling-value-from-arraylist/2204)

<div class="topic-metadata">

**Author:** [@flashbacker](https://discourse.processing.org/u/flashbacker)\
**Replies:** 4\
**Last updated:** [July 30, 2018, 2:56pm UTC](https://discourse.processing.org/t/weird-type-mismatch-when-calling-value-from-arraylist/2204 "2018-07-30T14:56:53Z")

</div>

Hello, in a project, i’m creating an array of arrayLists that i’m filling with integers in a function and then sending through OSC messages. But if I try to add one of the value to the osc message: myMessage.add(messa…

---

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

---

## [Special characters on android mode -- encoding problem](https://discourse.processing.org/t/special-characters-on-android-mode-encoding-problem/1994)

<div class="topic-metadata">

**Author:** [@Tiago](https://discourse.processing.org/u/Tiago)\
**Replies:** 23\
**Last updated:** [July 30, 2018, 9:12am UTC](https://discourse.processing.org/t/special-characters-on-android-mode-encoding-problem/1994 "2018-07-30T09:12:29Z")

</div>

Hello all, I’ve a problem with my sketch, everytime I have a text with special characters, with text() function or with println(). It works well on JAVA but makes strange characters on android mode! reportingProcessin…

---

## [Help with text and video](https://discourse.processing.org/t/help-with-text-and-video/2104)

<div class="topic-metadata">

**Author:** [@Cemaronte](https://discourse.processing.org/u/Cemaronte)\
**Replies:** 15\
**Last updated:** [July 30, 2018, 8:32am UTC](https://discourse.processing.org/t/help-with-text-and-video/2104 "2018-07-30T08:32:58Z")

</div>

Hello everyone, I need to solve this and I’ve been trying for several hours now. I’m learning how to code. This is the code that I’m working on that starts of with one of the coding train challenges. What I want to do is…

---

## [Toy Neural Networks](https://discourse.processing.org/t/toy-neural-networks/1901)

<div class="topic-metadata">

**Author:** [@vadsavin-a](https://discourse.processing.org/u/vadsavin-a)\
**Replies:** 4\
**Last updated:** [July 29, 2018, 6:56pm UTC](https://discourse.processing.org/t/toy-neural-networks/1901 "2018-07-29T18:56:50Z")

</div>

How can I reverse my NN? I want to feed the data backwards

---

## [Thermal Imaging](https://discourse.processing.org/t/thermal-imaging/2172)

<div class="topic-metadata">

**Author:** [@DZR](https://discourse.processing.org/u/DZR)\
**Replies:** 5\
**Last updated:** [July 29, 2018, 3:47pm UTC](https://discourse.processing.org/t/thermal-imaging/2172 "2018-07-29T15:47:38Z")

</div>

I have a thermal imager (AMG8833) that is connected to an Arduino Uno and is communicating to my serial port. I want to use Processing to display the thermal data as an image. It has an 8 X 8 resolution. So far none of t…

---

## [Larger Console/Display Window](https://discourse.processing.org/t/larger-console-display-window/2170)

<div class="topic-metadata">

**Author:** [@Livi](https://discourse.processing.org/u/Livi)\
**Replies:** 1\
**Last updated:** [July 28, 2018, 11:56pm UTC](https://discourse.processing.org/t/larger-console-display-window/2170 "2018-07-28T23:56:28Z")

</div>

Hi There, I am wondering if anyone knows how to make the display window larger please? I’m working on a project in that I need to print out bubbles in the different corners and change the order in which they’re printed …

---

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

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

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