# Coding Questions

**URL:** https://discourse.processing.org/c/processing/processing-questions/15.md?page=126

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

**Page:** 127

---

## [How to change the size of Georgian language text](https://discourse.processing.org/t/how-to-change-the-size-of-georgian-language-text/14098)

<div class="topic-metadata">

**Author:** [@steele](https://discourse.processing.org/u/steele)\
**Replies:** 13\
**Last updated:** [September 24, 2019, 8:45pm UTC](https://discourse.processing.org/t/how-to-change-the-size-of-georgian-language-text/14098 "2019-09-24T20:45:35Z")

</div>

I want to change the size of Georgian-language text that I have input from a .txt file in the data folder (.txt file encoded in UTF-8). I can display the Georgian script (this is Georgian language script, not the Georgia…

---

## [Using Texture and vertex (with texture mapping) in OPENGL renderer](https://discourse.processing.org/t/using-texture-and-vertex-with-texture-mapping-in-opengl-renderer/14162)

<div class="topic-metadata">

**Author:** [@snaders](https://discourse.processing.org/u/snaders)\
**Replies:** 0\
**Last updated:** [September 24, 2019, 8:28am UTC](https://discourse.processing.org/t/using-texture-and-vertex-with-texture-mapping-in-opengl-renderer/14162 "2019-09-24T08:28:39Z")

</div>

Hello all, I’ve been googling and searching the forum, but can’t seem to find how to make this work. This may have to do with my total absence of OPENGL-knowledge. I am drawing shapes with vertices, and apply an image …

---

## [Individual Box Gradient in HSB](https://discourse.processing.org/t/individual-box-gradient-in-hsb/14132)

<div class="topic-metadata">

**Author:** [@nathanchun](https://discourse.processing.org/u/nathanchun)\
**Replies:** 10\
**Last updated:** [September 23, 2019, 10:01pm UTC](https://discourse.processing.org/t/individual-box-gradient-in-hsb/14132 "2019-09-23T22:01:27Z")

</div>

I was assigned to code a gradient of 100 different squares in a 100x100 window with each square being 10x10. I know how to code for a vertical or horizontal gradient but I don’t know how to make a gradient that appears t…

---

## [Keep sketch proportioned while using x++ y++](https://discourse.processing.org/t/keep-sketch-proportioned-while-using-x-y/14113)

<div class="topic-metadata">

**Author:** [@las6525](https://discourse.processing.org/u/las6525)\
**Replies:** 4\
**Last updated:** [September 23, 2019, 7:13pm UTC](https://discourse.processing.org/t/keep-sketch-proportioned-while-using-x-y/14113 "2019-09-23T19:13:02Z")

</div>

Hi all, super newbie here with a few questions! How do I troubleshoot my code where parts of my sketch are moving in one direction and other parts move in another direction? I am applying x++ and y++ to the entire sketc…

---

## [Condition for angle range spanning 0](https://discourse.processing.org/t/condition-for-angle-range-spanning-0/14125)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 6\
**Last updated:** [September 23, 2019, 3:52pm UTC](https://discourse.processing.org/t/condition-for-angle-range-spanning-0/14125 "2019-09-23T15:52:10Z")

</div>

Hello. I am trying to write a condition that will test if the mouse heading is within an angle range, and I’m having trouble figuring out how to make it work for cases when the angle range spans 0. The idea is that an a…

---

## [How to put random dots inside a square?](https://discourse.processing.org/t/how-to-put-random-dots-inside-a-square/14102)

<div class="topic-metadata">

**Author:** [@woluk](https://discourse.processing.org/u/woluk)\
**Replies:** 2\
**Last updated:** [September 22, 2019, 5:44am UTC](https://discourse.processing.org/t/how-to-put-random-dots-inside-a-square/14102 "2019-09-22T05:44:06Z")

</div>

Hi, Sorry if my question sounds dumb, I just started using Processing. I am trying to create a square that pops randomly on the screen with a different number each time. So far, I managed to create the squares, to make…

---

## [Why my enemy doesn't work?](https://discourse.processing.org/t/why-my-enemy-doesnt-work/13494)

<div class="topic-metadata">

**Author:** [@carolina\_moreira](https://discourse.processing.org/u/carolina_moreira)\
**Replies:** 22\
**Last updated:** [September 21, 2019, 8:11pm UTC](https://discourse.processing.org/t/why-my-enemy-doesnt-work/13494 "2019-09-21T20:11:01Z")

</div>

Hello good afternoon I wanted to ask for help on a game I’m developing :smiley: It’s a snake game but the enemy isn’t working it was supposed to touch the enemy and the game is over. And the game does not open in openpr…

---

## [Byte size shortened](https://discourse.processing.org/t/byte-size-shortened/13765)

<div class="topic-metadata">

**Author:** [@moimat56](https://discourse.processing.org/u/moimat56)\
**Replies:** 7\
**Last updated:** [September 21, 2019, 9:07am UTC](https://discourse.processing.org/t/byte-size-shortened/13765 "2019-09-21T09:07:49Z")

</div>

Hello, i’m trying to rebuild a float number sent on a serial line. I had trouble working on a bitwise operation. Code : I expected a byte to be 8bits of length but I can only fill the array with 4bits values (Ex : …

---

## [Processing image not showing](https://discourse.processing.org/t/processing-image-not-showing/13986)

<div class="topic-metadata">

**Author:** [@uv\_100\_100](https://discourse.processing.org/u/uv_100_100)\
**Replies:** 9\
**Last updated:** [September 19, 2019, 5:12am UTC](https://discourse.processing.org/t/processing-image-not-showing/13986 "2019-09-19T05:12:22Z")

</div>

I am trying to make a Tic-tac-toe and all is good except for the fact that I want to show an image saying “X wins” until the user clicks the mouse. But somehow the mousePressed variable is true even when I don’t click an…

---

## [Urgent, comand ignored](https://discourse.processing.org/t/urgent-comand-ignored/14063)

<div class="topic-metadata">

**Author:** [@chaps421](https://discourse.processing.org/u/chaps421)\
**Replies:** 1\
**Last updated:** [September 19, 2019, 3:32am UTC](https://discourse.processing.org/t/urgent-comand-ignored/14063 "2019-09-19T03:32:03Z")

</div>

I have a team maker, but it has a little animation of randomness" the team only can be 3 people and every time you press enter it puts the name in the team that it shows the problem comes when the team is full and it ch…

---

## [How do you parse a nested JSON file like below using Processing JSON object?](https://discourse.processing.org/t/how-do-you-parse-a-nested-json-file-like-below-using-processing-json-object/14053)

<div class="topic-metadata">

**Author:** [@advancecoder](https://discourse.processing.org/u/advancecoder)\
**Replies:** 2\
**Last updated:** [September 18, 2019, 6:18pm UTC](https://discourse.processing.org/t/how-do-you-parse-a-nested-json-file-like-below-using-processing-json-object/14053 "2019-09-18T18:18:17Z")

</div>

How do you parse a nested JSON file like below using Processing JSON object? { "info": { "description": "COCO 2014 Dataset", "url": "http://cocodataset.org", "version": "1.0", "year": 2014, "contri…

---

## [Performance loss with PGraphics and SVG](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 25\
**Last updated:** [September 18, 2019, 5:09pm UTC](https://discourse.processing.org/t/performance-loss-with-pgraphics-and-svg/12897 "2019-09-18T17:09:03Z")

</div>

Hi there. I’m having a large issue with performance loss using PGraphics. The situation is: I’m importing an svg with 860 child Polygons. I need to do a color sampling for each and every child shape based on it’s centro…

---

## [Strange offset between shader and encoded data](https://discourse.processing.org/t/strange-offset-between-shader-and-encoded-data/14048)

<div class="topic-metadata">

**Author:** [@Xelo](https://discourse.processing.org/u/Xelo)\
**Replies:** 4\
**Last updated:** [September 18, 2019, 1:58pm UTC](https://discourse.processing.org/t/strange-offset-between-shader-and-encoded-data/14048 "2019-09-18T13:58:29Z")

</div>

Hey, I am working on a real-time 2d radiosity lighting demo similar to the inactive pixelflow demo in pure processing. This uses no external libraries, and does not use pixelflow itself. So far the pipeline runs smooth…

---

## [Rotating an ellipse](https://discourse.processing.org/t/rotating-an-ellipse/13927)

<div class="topic-metadata">

**Author:** [@Katerina\_P](https://discourse.processing.org/u/Katerina_P)\
**Replies:** 17\
**Last updated:** [September 18, 2019, 10:41am UTC](https://discourse.processing.org/t/rotating-an-ellipse/13927 "2019-09-18T10:41:25Z")

</div>

Hi guys, I’m trying to get my ellipse to spin around on its axis but it doesn’t seem to be working. this is the section of the code that i want to rotate: fill(#EBF233); ellipse(700, 75, 75, 75);

---

## [Display random image(s) according to random number](https://discourse.processing.org/t/display-random-image-s-according-to-random-number/14016)

<div class="topic-metadata">

**Author:** [@Drastard](https://discourse.processing.org/u/Drastard)\
**Replies:** 1\
**Last updated:** [September 16, 2019, 8:51pm UTC](https://discourse.processing.org/t/display-random-image-s-according-to-random-number/14016 "2019-09-16T20:51:51Z")

</div>

It’s been several years since I scraped through any kind of coding but I’ve come back to Processing as I finally have a problem to solve rather than completing something a teacher set! I would like to display a series o…

---

## [Export to Google Sheet](https://discourse.processing.org/t/export-to-google-sheet/13999)

<div class="topic-metadata">

**Author:** [@sna003](https://discourse.processing.org/u/sna003)\
**Replies:** 1\
**Last updated:** [September 15, 2019, 3:27pm UTC](https://discourse.processing.org/t/export-to-google-sheet/13999 "2019-09-15T15:27:08Z")

</div>

Hi all, May I ask if it is possible to export the data I received into Google Sheet using Processing? I manage to export the data locally every minute but would like to explore further. Thanks in advance. Best Regards …

---

## [Parsing SVG file](https://discourse.processing.org/t/parsing-svg-file/13991)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 1\
**Last updated:** [September 14, 2019, 7:46pm UTC](https://discourse.processing.org/t/parsing-svg-file/13991 "2019-09-14T19:46:35Z")

</div>

I have this svg \<g id="Layer\_1"\> \<path style="fill:none;stroke:#FA8B00;stroke-width:4;stroke-linecap:round;stroke-miterlimit:10;" d="M1272.8,558l19.2,20l-49,81 l-18-19L1272.8,558z"/\> how do i access style propertie…

---

## [Line the hard way](https://discourse.processing.org/t/line-the-hard-way/13978)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 7\
**Last updated:** [September 14, 2019, 1:59pm UTC](https://discourse.processing.org/t/line-the-hard-way/13978 "2019-09-14T13:59:53Z")

</div>

Hello! I apologize in advance for my appalling math knowledge. How can I calculate coords of locations of regular distance in a straight line between two points? IE I have a source vector and a target vector, and I want…

---

## [How to color one object in an ArrayList?](https://discourse.processing.org/t/how-to-color-one-object-in-an-arraylist/13949)

<div class="topic-metadata">

**Author:** [@fleischfarbe](https://discourse.processing.org/u/fleischfarbe)\
**Replies:** 2\
**Last updated:** [September 13, 2019, 11:17am UTC](https://discourse.processing.org/t/how-to-color-one-object-in-an-arraylist/13949 "2019-09-13T11:17:15Z")

</div>

Hey everyone, after searching through the internet i really couldn’t find a proper answer so i a make this post. I am currently working through the flocking expample of daniel shiffmann and i would love to finally know,…

---

## [Key and keyCode flicker on release](https://discourse.processing.org/t/key-and-keycode-flicker-on-release/13960)

<div class="topic-metadata">

**Author:** [@blosh](https://discourse.processing.org/u/blosh)\
**Replies:** 1\
**Last updated:** [September 13, 2019, 8:07am UTC](https://discourse.processing.org/t/key-and-keycode-flicker-on-release/13960 "2019-09-13T08:07:36Z")

</div>

When pressing two keys at the same time, then releasing one, processing registers that key as being pressed for a couple of frames. To replicate this issue, use this code: void setup() { size(400,400); fill(0); t…

---

## [Thread inside class](https://discourse.processing.org/t/thread-inside-class/13959)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 1\
**Last updated:** [September 13, 2019, 5:55am UTC](https://discourse.processing.org/t/thread-inside-class/13959 "2019-09-13T05:55:25Z")

</div>

How can i run thread inside class?when im trying for example class test { public test() { thread("method123"); } public void method123() { println("123"); } } that will not work…it says that there is no public method m…

---

## [Get WiFi RSSI on Mac](https://discourse.processing.org/t/get-wifi-rssi-on-mac/13942)

<div class="topic-metadata">

**Author:** [@Nasif](https://discourse.processing.org/u/Nasif)\
**Replies:** 7\
**Last updated:** [September 12, 2019, 11:07pm UTC](https://discourse.processing.org/t/get-wifi-rssi-on-mac/13942 "2019-09-12T23:07:10Z")

</div>

Hey! I’m trying to make a WiFi signal strength mapper so that when I click I can store the RSSI on the current network. However, I can’t find any methods in processing to get the RSSI. I thought it would be something si…

---

## [Selecting a number from an array, only allowing certain numbers to follow](https://discourse.processing.org/t/selecting-a-number-from-an-array-only-allowing-certain-numbers-to-follow/13951)

<div class="topic-metadata">

**Author:** [@Marinus](https://discourse.processing.org/u/Marinus)\
**Replies:** 3\
**Last updated:** [September 12, 2019, 10:29pm UTC](https://discourse.processing.org/t/selecting-a-number-from-an-array-only-allowing-certain-numbers-to-follow/13951 "2019-09-12T22:29:21Z")

</div>

Hi all, Today I’m trying to create another work of generative art. the goal is simple, to generate simple curves and lines that connect to each other, but only connecting curves and lines are allowed to be injected afte…

---

## [Change or fix text Background in P3D](https://discourse.processing.org/t/change-or-fix-text-background-in-p3d/13903)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 3\
**Last updated:** [September 10, 2019, 4:22pm UTC](https://discourse.processing.org/t/change-or-fix-text-background-in-p3d/13903 "2019-09-10T16:22:48Z")

</div>

Hi people, have a new question: When using P3D the text is written with the original background of your sketch (or any color, don’t know from where it takes the color). I was trying to put a text but there appear a tex…

---

## [How to make a bezier curver not start at top left corner when using mouseX, mouseY as the initial anchor point?](https://discourse.processing.org/t/how-to-make-a-bezier-curver-not-start-at-top-left-corner-when-using-mousex-mousey-as-the-initial-anchor-point/13912)

<div class="topic-metadata">

**Author:** [@nathanchun](https://discourse.processing.org/u/nathanchun)\
**Replies:** 4\
**Last updated:** [September 10, 2019, 2:04pm UTC](https://discourse.processing.org/t/how-to-make-a-bezier-curver-not-start-at-top-left-corner-when-using-mousex-mousey-as-the-initial-anchor-point/13912 "2019-09-10T14:04:42Z")

</div>

I am new to processing and was assigned in class to create a bezier curve that makes one of the control points mouseX and mouseY along with some other necessary shapes needed for the assignment. Whenever I hit run, howev…

---

## [Clock, reset hour and new day statement](https://discourse.processing.org/t/clock-reset-hour-and-new-day-statement/13837)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 6\
**Last updated:** [September 6, 2019, 7:27pm UTC](https://discourse.processing.org/t/clock-reset-hour-and-new-day-statement/13837 "2019-09-06T19:27:37Z")

</div>

Hi, i made a very basic clock and i have two questions. 1: I wonder how can i reset the hours. Like when it past 24 it restart to 0. 2: How can i make a statement when a new day start. Can i use a boolean ? void setup…

---

## [Vectors not adding?](https://discourse.processing.org/t/vectors-not-adding/13900)

<div class="topic-metadata">

**Author:** [@blue1](https://discourse.processing.org/u/blue1)\
**Replies:** 2\
**Last updated:** [September 10, 2019, 7:21am UTC](https://discourse.processing.org/t/vectors-not-adding/13900 "2019-09-10T07:21:54Z")

</div>

//I cant figure out how to get the isMoving function to work, im kind of comfortable with p5js and trying to learn processing but it seems there are always small bugs i cant find. Ground ground; Character character; PVe…

---

## [Chain hierarchy](https://discourse.processing.org/t/chain-hierarchy/13845)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 6\
**Last updated:** [September 9, 2019, 9:20pm UTC](https://discourse.processing.org/t/chain-hierarchy/13845 "2019-09-09T21:20:20Z")

</div>

Here’s something I’ve been trying to figure out. Im trying to build a hierarchy of ellipses such that each child ellipse has to stay within a certain range of its parent. I understand how it needs to work, Im just not…

---

## [Can't draw on main window, calling methods from a secondary window (PApplet, image())](https://discourse.processing.org/t/cant-draw-on-main-window-calling-methods-from-a-secondary-window-papplet-image/13889)

<div class="topic-metadata">

**Author:** [@Pvag](https://discourse.processing.org/u/Pvag)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 7:32am UTC](https://discourse.processing.org/t/cant-draw-on-main-window-calling-methods-from-a-secondary-window-papplet-image/13889 "2019-09-09T07:32:14Z")

</div>

Hello ! From the main processing sketch file, I am instantiating objectA that defines methodA, which draws stuff on a PImage, that it then draws on the main window, using the image() function. This works as expected, wh…

---

## [Issue With Making a House](https://discourse.processing.org/t/issue-with-making-a-house/13875)

<div class="topic-metadata">

**Author:** [@Katerina\_P](https://discourse.processing.org/u/Katerina_P)\
**Replies:** 13\
**Last updated:** [September 9, 2019, 12:37am UTC](https://discourse.processing.org/t/issue-with-making-a-house/13875 "2019-09-09T00:37:01Z")

</div>

Hi Guys, Im trying to make a house and my code isn’t running. Can someone please tell me why? This is the code: void setup() { size(200, 200); background(255); smooth(); } void draw () { fill(#1E4609); rect (0…

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=125)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=127)
