Exemple #1
0
 public PContext(PRenderer renderer_)
 {
     Renderer = renderer_;
 }
Exemple #2
0
        protected void SetRenderer(PRenderer r)
        {
            Renderer = r;

            if (r == null)
                return;

            fill(fFillColor);
            stroke(strokeColor);
            //ResetBrush();
            //ResetPen();
        }
Exemple #3
0
        // 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;
        }
Exemple #4
0
        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);
        }