Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
RuntimeException when calling strokeWeight using FX2D #4206
When using FX2D renderer, I get a RuntimeException (see below). Exception does not occur when using default renderer, or in processing 2.
The issue is the call to strokeWeight(1.0) on line 82. If you comment out this line, project works without issue.
Note: If you also set strokeWeight to a value greater that 1.0, everything works. When it is set to 1.0, then PGraphicsFX2D.drawingThinLines() returns true, which cause all of the pushMatrix calls.
drawingThingLines was added in this commit in august: 0b143c6
To reproduce, run code, move mouse around on screen. RTE.
Thanks. Moving the stokeWeight call outside of the beginShape fixed the RTE.
This might be something worth adding to: https://github.com/processing/processing/wiki/Changes-in-3.0