mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
fixup PImage defaults for subclasses (set to RGB).
This commit is contained in:
@@ -321,7 +321,10 @@ public class PGraphics extends PImage
|
||||
|
||||
|
||||
/**
|
||||
* Constructor for the PGraphics object
|
||||
* Constructor for the PGraphics object. Use this to ensure that
|
||||
* the defaults get set properly. In a subclass, use this(w, h)
|
||||
* as the first line of a subclass' constructor to properly set
|
||||
* the internal fields and defaults.
|
||||
*
|
||||
* @param iwidth viewport width
|
||||
* @param iheight viewport height
|
||||
|
||||
Reference in New Issue
Block a user