Uses of Class
processing.core.PGraphics
-
Packages that use PGraphics Package Description processing.core processing.opengl -
-
Uses of PGraphics in processing.core
Fields in processing.core declared as PGraphics Modifier and Type Field Description PGraphicsPApplet. gThe PGraphics renderer associated with this PAppletprotected PGraphicsPSurfaceNone. graphicsprotected PGraphicsPGraphics. rawPGraphicsPApplet. recorderA leech graphics object that is echoing all events.Methods in processing.core that return PGraphics Modifier and Type Method Description PGraphicsPApplet. beginRaw(String renderer, String filename)( begin auto-generated from beginRaw.xml ) To create vectors from 3D data, use the beginRaw() and endRaw() commands.PGraphicsPApplet. beginRecord(String renderer, String filename)( begin auto-generated from beginRecord.xml ) Opens a new file and all subsequent drawing functions are echoed to this file as well as the display window.PGraphicsPApplet. createGraphics(int w, int h)PGraphicsPApplet. createGraphics(int w, int h, String renderer)( begin auto-generated from createGraphics.xml ) Creates and returns a new PGraphics object of the types P2D or P3D.PGraphicsPApplet. createGraphics(int w, int h, String renderer, String path)Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file (such as PDF or DXF).protected PGraphicsPApplet. createPrimaryGraphics()Create default renderer, likely to be resized, but needed for surface init.PGraphicsPApplet. getGraphics()PGraphicsPGraphics. getRaw()protected PGraphicsPApplet. makeGraphics(int w, int h, String renderer, String path, boolean primary)Version of createGraphics() used internally.Methods in processing.core that return types with arguments of type PGraphics Modifier and Type Method Description Optional<PGraphics>PApplet.GraphicsFactory. createGraphics(PApplet parent, String type)Create a PGraphics for the given PApplet and renderer type if this factory supports that type, or an empty optional.Methods in processing.core with parameters of type PGraphics Modifier and Type Method Description voidPApplet. beginRaw(PGraphics rawGraphics)voidPGraphics. beginRaw(PGraphics rawGraphics)Record individual lines and triangles by echoing them to another renderer.voidPApplet. beginRecord(PGraphics recorder)voidPShape. draw(PGraphics g)Called by the following (the shape() command adds the g) PShape s = loadShape("blah.svg"); shape(s);voidPShapeSVG.Font. drawChar(PGraphics g, char c, float x, float y, float size)protected voidPShape. drawGeometry(PGraphics g)protected voidPShape. drawGroup(PGraphics g)protected voidPShape. drawImpl(PGraphics g)Draws the SVG document.voidPShapeSVG.LineOfText. drawImpl(PGraphics g)protected voidPShape. drawPath(PGraphics g)protected voidPShape. drawPrimitive(PGraphics g)voidPShapeSVG.Font. drawString(PGraphics g, String str, float x, float y, float size)protected voidPShape. post(PGraphics g)protected voidPShape. pre(PGraphics g)voidPGraphics.AsyncImageSaver. saveTargetAsync(PGraphics renderer, PImage target, File file)protected voidPShape. styles(PGraphics g)Constructors in processing.core with parameters of type PGraphics Constructor Description PShape(PGraphics g, int family)PShape(PGraphics g, int kind, float... params)PSurfaceNone(PGraphics graphics) -
Uses of PGraphics in processing.opengl
Subclasses of PGraphics in processing.opengl Modifier and Type Class Description classPGraphics2DclassPGraphics3DclassPGraphicsOpenGLOpenGL renderer.Methods in processing.opengl with parameters of type PGraphics Modifier and Type Method Description voidPShapeOpenGL. draw(PGraphics g)protected voidPShapeOpenGL. drawGeometry(PGraphics g)protected static PShapePGraphics2D. loadShapeImpl(PGraphics pg, String filename, String extension)protected static PShapePGraphics3D. loadShapeImpl(PGraphics pg, String filename, String extension)protected voidPShapeOpenGL. post(PGraphics g)protected voidPShapeOpenGL. pre(PGraphics g)protected voidPShapeOpenGL. styles(PGraphics g)
-