# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=584

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

**Page:** 585

---

## [Drawing Problem](https://discourse.processing.org/t/drawing-problem/3536)

<div class="topic-metadata">

**Author:** [@PhysicsFreak](https://discourse.processing.org/u/PhysicsFreak)\
**Replies:** 3\
**Last updated:** [September 17, 2018, 7:33pm UTC](https://discourse.processing.org/t/drawing-problem/3536 "2018-09-17T19:33:07Z")

</div>

Okay, I made a program that uses a accelerometer on a Arduino Circuit Playground that tracks where the accelerometer is heading, and now in need to turn the “point(x,y);” into a drawing, where it places a point where the…

---

## [What's new for Pi & ARM in 3.3.7.1](https://discourse.processing.org/t/whats-new-for-pi-arm-in-3-3-7-1/1415)

<div class="topic-metadata">

**Author:** [@gohai](https://discourse.processing.org/u/gohai)\
**Replies:** 4\
**Last updated:** [September 17, 2018, 6:28pm UTC](https://discourse.processing.org/t/whats-new-for-pi-arm-in-3-3-7-1/1415 "2018-09-17T18:28:42Z")

</div>

Processing 3.3.7.1 is out of the oven. Here’s the build for ARM as well as our pre-configured Raspbian image. See our steps for how to get started with this those. Hope you enjoy! IO: pinMode() can now set pull-up and …

---

## [How to restrict how far an object can decrease size?](https://discourse.processing.org/t/how-to-restrict-how-far-an-object-can-decrease-size/3600)

<div class="topic-metadata">

**Author:** [@MartinM](https://discourse.processing.org/u/MartinM)\
**Replies:** 4\
**Last updated:** [September 17, 2018, 5:31pm UTC](https://discourse.processing.org/t/how-to-restrict-how-far-an-object-can-decrease-size/3600 "2018-09-17T17:31:16Z")

</div>

I currently have a rectangle shrinking its size upon impact with a ball, is there any way I can make sure that once it shrinks to a certain size it stops shrinking and just remains that size? void paddle(PVector pad){; …

---

## [loadStrings problem \[2\]. Throwing nullPointer?](https://discourse.processing.org/t/loadstrings-problem-2-throwing-nullpointer/3569)

<div class="topic-metadata">

**Author:** [@marcg](https://discourse.processing.org/u/marcg)\
**Replies:** 15\
**Last updated:** [September 17, 2018, 5:03pm UTC](https://discourse.processing.org/t/loadstrings-problem-2-throwing-nullpointer/3569 "2018-09-17T17:03:53Z")

</div>

So my last thread was all about networking in android, not really about loadStrings. This thread is. In my MainActivity I’m trying to use the loadStrings function inside a new thread; Thread thread = new Thread(new Run…

---

## [Incorrect results when doing division with variables](https://discourse.processing.org/t/incorrect-results-when-doing-division-with-variables/3606)

<div class="topic-metadata">

**Author:** [@Cam](https://discourse.processing.org/u/Cam)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 4:39pm UTC](https://discourse.processing.org/t/incorrect-results-when-doing-division-with-variables/3606 "2018-09-17T16:39:26Z")

</div>

This code ^^ Returns this vv width = 1000 selImg.width = 255 height = 1000 selImg.height = 255 ((width / selImg.width) \* selImg.height) = 900 ((height / selImg.height) \* selImg.width) = 900 Obviously somethings…

---

## [How to make different sizes for one renderer](https://discourse.processing.org/t/how-to-make-different-sizes-for-one-renderer/3323)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 5\
**Last updated:** [September 17, 2018, 4:30pm UTC](https://discourse.processing.org/t/how-to-make-different-sizes-for-one-renderer/3323 "2018-09-17T16:30:11Z")

</div>

Hi, I have to make one image at three different sizes : A3 for printing at 300 DPI, would need 3508 x 4961 pix A5 for printing at 300 DPI, would need 1748 \* 2480 pix and a banner for the web at 960 × 334 pixels how w…

---

## [Processing.serial in BlueJ doesn't work](https://discourse.processing.org/t/processing-serial-in-bluej-doesnt-work/3351)

<div class="topic-metadata">

**Author:** [@Paul94](https://discourse.processing.org/u/Paul94)\
**Replies:** 15\
**Last updated:** [September 17, 2018, 5:35am UTC](https://discourse.processing.org/t/processing-serial-in-bluej-doesnt-work/3351 "2018-09-17T05:35:32Z")

</div>

Hello, Currently I am trying to use Processing in BlueJ. So far this works quite well - except for the serial interface to the Arduino. For this I have written the following code in Processing, which also works: import…

---

## [Detecting mouse click on circle](https://discourse.processing.org/t/detecting-mouse-click-on-circle/3599)

<div class="topic-metadata">

**Author:** [@Tristan](https://discourse.processing.org/u/Tristan)\
**Replies:** 9\
**Last updated:** [September 17, 2018, 1:40pm UTC](https://discourse.processing.org/t/detecting-mouse-click-on-circle/3599 "2018-09-17T13:40:40Z")

</div>

I am trying to detect a mouse press on a circle. I know how to do so with a square and am using that for the hitbox right now. I would like to know what is supposed to go into my IF statement to detect MouseX and mouseY …

---

## [Enhanced For Loops and selecting every nth](https://discourse.processing.org/t/enhanced-for-loops-and-selecting-every-nth/3593)

<div class="topic-metadata">

**Author:** [@omerpekin](https://discourse.processing.org/u/omerpekin)\
**Replies:** 4\
**Last updated:** [September 17, 2018, 8:15am UTC](https://discourse.processing.org/t/enhanced-for-loops-and-selecting-every-nth/3593 "2018-09-17T08:15:01Z")

</div>

Hi, I have a simple question about enhanced for loops. I created a new arraylist and filled them with objects. and now I am trying to select every nth object. I tried to use: if(arraylist.size() % 2 == 0) {} but it d…

---

## [How can I extend the context to add globalcompositeoperation = 'destination-out'?](https://discourse.processing.org/t/how-can-i-extend-the-context-to-add-globalcompositeoperation-destination-out/3586)

<div class="topic-metadata">

**Author:** [@lgdelacruz](https://discourse.processing.org/u/lgdelacruz)\
**Replies:** 1\
**Last updated:** [September 17, 2018, 2:40am UTC](https://discourse.processing.org/t/how-can-i-extend-the-context-to-add-globalcompositeoperation-destination-out/3586 "2018-09-17T02:40:44Z")

</div>

I’m trying to create a draw with pencil and eraser. I really want to make use of setting the context in Render2D.globalcompositeoperation = ‘destination-out’ in order to create an erasing the line behavior. How would I g…

---

## [Slot Machine - Time, Consequence, and Gratification](https://discourse.processing.org/t/slot-machine-time-consequence-and-gratification/3566)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 4\
**Last updated:** [September 16, 2018, 10:32pm UTC](https://discourse.processing.org/t/slot-machine-time-consequence-and-gratification/3566 "2018-09-16T22:32:33Z")

</div>

Hello Processing Members, I am excited to share a new multimedia project I made using Processing (with plenty pf help from the forum team - thank you!) It isn’t complex code but it does exactly what I wanted it to do. P…

---

## [Spout for P5.js?](https://discourse.processing.org/t/spout-for-p5-js/3550)

<div class="topic-metadata">

**Author:** [@luxurianttuber](https://discourse.processing.org/u/luxurianttuber)\
**Replies:** 3\
**Last updated:** [September 16, 2018, 10:17pm UTC](https://discourse.processing.org/t/spout-for-p5-js/3550 "2018-09-16T22:17:54Z")

</div>

I every one. I began to learn Processing few weeks ago, Quickly I discover there is something called P5.js. I want to develop tools for interactive and procedural VJing. I would like to know if there is something like …

---

## [How do I import an "idx3-ubyte" file?](https://discourse.processing.org/t/how-do-i-import-an-idx3-ubyte-file/3577)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 2\
**Last updated:** [September 16, 2018, 5:56pm UTC](https://discourse.processing.org/t/how-do-i-import-an-idx3-ubyte-file/3577 "2018-09-16T17:56:01Z")

</div>

I am wondering how to import the files found on this website into Processing: http://yann.lecun.com/exdb/mnist/ They’re supposed to contain thousands of 28x28 byte arrangements, each with its own “grayscale” value. In e…

---

## [Flip along the x-axis](https://discourse.processing.org/t/flip-along-the-x-axis/3543)

<div class="topic-metadata">

**Author:** [@rsomani95](https://discourse.processing.org/u/rsomani95)\
**Replies:** 4\
**Last updated:** [September 16, 2018, 2:46pm UTC](https://discourse.processing.org/t/flip-along-the-x-axis/3543 "2018-09-16T14:46:54Z")

</div>

Here’s some code I’m using to generate a color wheel (you can copy-paste this into your PDE and it should run just fine): void setup() { size(500, 500); noStroke(); background(255); colorMode(HSB, 360, 100, 100…

---

## [Use saveStrings to add timestamp INTO the text File](https://discourse.processing.org/t/use-savestrings-to-add-timestamp-into-the-text-file/3573)

<div class="topic-metadata">

**Author:** [@losferatos](https://discourse.processing.org/u/losferatos)\
**Replies:** 3\
**Last updated:** [September 16, 2018, 2:15pm UTC](https://discourse.processing.org/t/use-savestrings-to-add-timestamp-into-the-text-file/3573 "2018-09-16T14:15:08Z")

</div>

Hi guys! I’m trying to create a certain code generator and it works quite well. Cliffs: It generates a number of codes and saves them into a .txt file. Now I also want to add a specific string to the end of that file …

---

## [PVector transformation](https://discourse.processing.org/t/pvector-transformation/3575)

<div class="topic-metadata">

**Author:** [@Ben1](https://discourse.processing.org/u/Ben1)\
**Replies:** 3\
**Last updated:** [September 16, 2018, 1:46pm UTC](https://discourse.processing.org/t/pvector-transformation/3575 "2018-09-16T13:46:53Z")

</div>

Hello there, in a recent tutorial of “the coding train” with Daniel Shiffman I was learning about PVector. In the video (https://www.youtube.com/watch?v=7nTLzLf7jUg) he transforms a simple bouncing ball sketch with vari…

---

## [Need help; String\[\] and Methods](https://discourse.processing.org/t/need-help-string-and-methods/3564)

<div class="topic-metadata">

**Author:** [@SolDrakibane](https://discourse.processing.org/u/SolDrakibane)\
**Replies:** 2\
**Last updated:** [September 16, 2018, 12:01pm UTC](https://discourse.processing.org/t/need-help-string-and-methods/3564 "2018-09-16T12:01:38Z")

</div>

Hi, for my study i had a task which i have already completed (code below) i needed to draw four different names using a method. What i’ve made below works however how can i improve the method? Code below doesn’t work it…

---

## [Does set() work differently in P5.JS than it does in Processing?](https://discourse.processing.org/t/does-set-work-differently-in-p5-js-than-it-does-in-processing/3570)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 1\
**Last updated:** [September 16, 2018, 11:48am UTC](https://discourse.processing.org/t/does-set-work-differently-in-p5-js-than-it-does-in-processing/3570 "2018-09-16T11:48:10Z")

</div>

point(250,250) draws a point but set(250,250,255) does not. function setup() { createCanvas(500,500); } function draw() { background(0); stroke(255); point(250,250); set(252,250,255) }

---

## [loadStrings from url not working in Android?](https://discourse.processing.org/t/loadstrings-from-url-not-working-in-android/3529)

<div class="topic-metadata">

**Author:** [@marcg](https://discourse.processing.org/u/marcg)\
**Replies:** 3\
**Last updated:** [September 16, 2018, 10:20am UTC](https://discourse.processing.org/t/loadstrings-from-url-not-working-in-android/3529 "2018-09-16T10:20:41Z")

</div>

Hi guys! So I’m developing a small app in Android, and one activity Is made in processing. I thought that going from processing to android is easy, but I got some problems, maily that I can’t use the loadStrings function…

---

## [Sound Code in void draw makes me problem](https://discourse.processing.org/t/sound-code-in-void-draw-makes-me-problem/3538)

<div class="topic-metadata">

**Author:** [@TheKillerHD](https://discourse.processing.org/u/TheKillerHD)\
**Replies:** 18\
**Last updated:** [September 16, 2018, 8:23am UTC](https://discourse.processing.org/t/sound-code-in-void-draw-makes-me-problem/3538 "2018-09-16T08:23:58Z")

</div>

I want the sound to be played when the ball touches the player. At the moment I have the sound in void draw and that makes me problems because messages appear in the console and then the game blocks. Can I somehow write…

---

## [Unable to create a new sketch after upgrading to Processing 3.4 on OSX 10.13.6](https://discourse.processing.org/t/unable-to-create-a-new-sketch-after-upgrading-to-processing-3-4-on-osx-10-13-6/3562)

<div class="topic-metadata">

**Author:** [@dubwalla](https://discourse.processing.org/u/dubwalla)\
**Replies:** 2\
**Last updated:** [September 16, 2018, 3:45am UTC](https://discourse.processing.org/t/unable-to-create-a-new-sketch-after-upgrading-to-processing-3-4-on-osx-10-13-6/3562 "2018-09-16T03:45:29Z")

</div>

I had previously used Processing on my Macbook about a year ago with no issues. I believe I was on version 2.7 or so. I didn’t use the software for quite a while so am not sure during which OSX update, but at some point,…

---

## [How to integrate a .css file into a p5.js sketch into Processing IDE?](https://discourse.processing.org/t/how-to-integrate-a-css-file-into-a-p5-js-sketch-into-processing-ide/2804)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 6\
**Last updated:** [September 16, 2018, 1:21am UTC](https://discourse.processing.org/t/how-to-integrate-a-css-file-into-a-p5-js-sketch-into-processing-ide/2804 "2018-09-16T01:21:43Z")

</div>

Hi everyone. I’d like to format the index.html page of a p5.js sketch into Processng IDE with CSS external file. I’ve add a new tab in the IDE and I’ve named it ‘styles.css’. This file was created by Processing into root…

---

## [Variable not found](https://discourse.processing.org/t/variable-not-found/3541)

<div class="topic-metadata">

**Author:** [@Blue\_Obsidian](https://discourse.processing.org/u/Blue_Obsidian)\
**Replies:** 5\
**Last updated:** [September 15, 2018, 10:25pm UTC](https://discourse.processing.org/t/variable-not-found/3541 "2018-09-15T22:25:30Z")

</div>

I have a problem with my code. At line 105, it doesn’t find p1 and I don’t know why, so can you help me please? Here’s the link: https://editor.p5js.org/Dark\_Obsidian/sketches/H1krCM\_\_Q

---

## [How to run p5 in ElectronJS](https://discourse.processing.org/t/how-to-run-p5-in-electronjs/3467)

<div class="topic-metadata">

**Author:** [@kokoo](https://discourse.processing.org/u/kokoo)\
**Replies:** 2\
**Last updated:** [September 15, 2018, 2:47pm UTC](https://discourse.processing.org/t/how-to-run-p5-in-electronjs/3467 "2018-09-15T14:47:19Z")

</div>

Is there any video tutorial how to setup and run p5 scripts in Electron framework?

---

## [Framerate starting slow](https://discourse.processing.org/t/framerate-starting-slow/3549)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 4\
**Last updated:** [September 15, 2018, 12:18pm UTC](https://discourse.processing.org/t/framerate-starting-slow/3549 "2018-09-15T12:18:51Z")

</div>

Hi, I’ve been testing the frameRate on some of my programs lately, but I’ve noticed that when I first start the program, the frameRate always starts off around 15, then gradually goes up. I’m using a MacBook Air and won…

---

## [Udp problem sending byte (-127)](https://discourse.processing.org/t/udp-problem-sending-byte-127/3545)

<div class="topic-metadata">

**Author:** [@tuxilus](https://discourse.processing.org/u/tuxilus)\
**Replies:** 2\
**Last updated:** [September 15, 2018, 6:41am UTC](https://discourse.processing.org/t/udp-problem-sending-byte-127/3545 "2018-09-15T06:41:32Z")

</div>

Hello, I am trying to send visca commands over udp. To send a command to camera 1 you have to send byte (0x81). Unfortunately udp.send sends the value 63! I discovered this by sending from processing 3 on windows and…

---

## [Neural style transfer in processing](https://discourse.processing.org/t/neural-style-transfer-in-processing/3497)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 2\
**Last updated:** [September 15, 2018, 12:23am UTC](https://discourse.processing.org/t/neural-style-transfer-in-processing/3497 "2018-09-15T00:23:43Z")

</div>

Does anyone know if it can be done in processing or are there similar examples?

---

## [Right-to-left text](https://discourse.processing.org/t/right-to-left-text/3527)

<div class="topic-metadata">

**Author:** [@Miguel](https://discourse.processing.org/u/Miguel)\
**Replies:** 9\
**Last updated:** [September 14, 2018, 3:37pm UTC](https://discourse.processing.org/t/right-to-left-text/3527 "2018-09-14T15:37:15Z")

</div>

Hey folks, long time no see. I’ve been away from processing for a while but now I’ve opened it again for a small project: I am trying to render some Persian text within processing. The text looks fine when the result is …

---

## [Having trouble getting triangle to speed up?](https://discourse.processing.org/t/having-trouble-getting-triangle-to-speed-up/3532)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 9\
**Last updated:** [September 14, 2018, 2:17pm UTC](https://discourse.processing.org/t/having-trouble-getting-triangle-to-speed-up/3532 "2018-09-14T14:17:08Z")

</div>

I’m trying to get the triangle to speed up after it hits the wall, but I’m unsure how to do that. //variables float xa=30;float ya=75;float xb=58;float yb=20; float xc=86;float yc=75;float xSpeed=10;float ySpeed=10; vo…

---

## [How to change chance of heads or tails in a coin flip](https://discourse.processing.org/t/how-to-change-chance-of-heads-or-tails-in-a-coin-flip/3531)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 2\
**Last updated:** [September 14, 2018, 12:46pm UTC](https://discourse.processing.org/t/how-to-change-chance-of-heads-or-tails-in-a-coin-flip/3531 "2018-09-14T12:46:20Z")

</div>

I know this is the code for getting twice the number of heads and I’m trying different things out to rig a coin flip. if (random(1)\< (1/3)) { image (tail, mouseX, mouseY); } else { image (head,mouseX,mouseY); …

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=583)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=585)
