public PContext(PRenderer renderer_) { Renderer = renderer_; }
protected void SetRenderer(PRenderer r) { Renderer = r; if (r == null) return; fill(fFillColor); stroke(strokeColor); //ResetBrush(); //ResetPen(); }
// print // println #endregion Text Area #region Image // save // saveFrame #endregion Image #region Files // PrintWriter // beginRaw // beginRecord // createOutput // createReader // createWriter // endRaw // endRecord // saveBytes // saveStream // saveStrings // selectOutput #endregion Files #endregion Output #region Rendering // createGraphics PImage createGraphics(int width, int heigh, PRenderer renderer) { return null; }
public PLang(PRenderer rndr) { colorMode(RGB, 255); // Stroke default fStrokeWeight = 1; fStrokeJoin = ROUND; fStrokeEndCap = SQUARE; strokeColor = new color(0, 0, 0, 255); useStroke = true; // Fill Default fFillColor = new color(255, 255, 255, 255); useFill = true; backgroundColor = new color(255, 255, 255, 255); fRectMode = CORNER; fEllipseMode = CENTER; fShapeMode = NOSHAPE; SetRenderer(rndr); }