mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Handling division-by-zero situation in LineStroker, added MIN_CAPS_JOINS_WEIGHT constant in PGL
This commit is contained in:
@@ -100,7 +100,12 @@ public class PGL {
|
||||
|
||||
/** Maximum dimension of a texture used to hold font data. **/
|
||||
public static final int MAX_FONT_TEX_SIZE = 256;
|
||||
|
||||
|
||||
/** Minimum stroke weight needed to apply the full path stroking
|
||||
* algorithm that properly generates caps and joing.
|
||||
*/
|
||||
public static final float MIN_CAPS_JOINS_WEIGHT = 2.f;
|
||||
|
||||
/** Minimum array size to use arrayCopy method(). **/
|
||||
static protected final int MIN_ARRAYCOPY_SIZE = 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user