public void strokeCap(int cap) { g.strokeCap(cap); }
/** * ( begin auto-generated from strokeCap.xml ) * * Sets the style for rendering line endings. These ends are either * squared, extended, or rounded and specified with the corresponding * parameters SQUARE, PROJECT, and ROUND. The default cap is ROUND. * <br/> <br/> * This function is not available with the P3D renderer (<a * href="http://code.google.com/p/processing/issues/detail?id=123">see * Issue 123</a>). More information about the renderers can be found in the * <b>size()</b> reference. * * ( end auto-generated ) * * @webref shape:attributes * @param cap either SQUARE, PROJECT, or ROUND * @see PGraphics#stroke(int, float) * @see PGraphics#strokeWeight(float) * @see PGraphics#strokeJoin(int) * @see PApplet#size(int, int, String, String) */ public void strokeCap(int cap) { if (recorder != null) recorder.strokeCap(cap); g.strokeCap(cap); }
@Override public void strokeCap(int cap) { super.strokeCap(cap); if (strokeCap == ROUND) { strokePaint.setStrokeCap(Paint.Cap.ROUND); } else if (strokeCap == PROJECT) { strokePaint.setStrokeCap(Paint.Cap.SQUARE); } else { strokePaint.setStrokeCap(Paint.Cap.BUTT); } }
@Override public void strokeCap(int cap) { super.strokeCap(cap); strokeImpl(); }
@Override public void strokeCap(int cap) { super.strokeCap(cap); if (strokeCap == ROUND) { context.setLineCap(StrokeLineCap.ROUND); } else if (strokeCap == PROJECT) { context.setLineCap(StrokeLineCap.SQUARE); } else { context.setLineCap(StrokeLineCap.BUTT); } }
protected void styles(PGraphics g) { // should not be necessary because using only the int version of color //parent.colorMode(PConstants.RGB, 255); if (stroke) { g.stroke(strokeColor); g.strokeWeight(strokeWeight); g.strokeCap(strokeCap); g.strokeJoin(strokeJoin); } else { g.noStroke(); } if (fill) { //System.out.println("filling " + PApplet.hex(fillColor)); g.fill(fillColor); } else { g.noFill(); } }
protected void styles(PGraphics g) { // should not be necessary because using only the int version of color //parent.colorMode(PConstants.RGB, 255); if (stroke) { g.stroke(strokeColor); g.strokeWeight(strokeWeight); g.strokeCap(strokeCap); g.strokeJoin(strokeJoin); } else { g.noStroke(); } if (fill) { //System.out.println("filling " + PApplet.hex(fillColor)); g.fill(fillColor); } else { g.noFill(); } }
strokeCap(DEFAULT_STROKE_CAP);
strokeCap(DEFAULT_STROKE_CAP);
strokeCap(strokeCap);
strokeCap(strokeCap);
raw.strokeCap(strokeCap); raw.beginShape(POINTS);
raw.strokeCap(strokeCap); raw.beginShape(POINTS);
void rawPoints() { raw.colorMode(RGB); raw.noFill(); raw.strokeCap(strokeCap); raw.beginShape(POINTS);
void rawPoints() { raw.colorMode(RGB); raw.noFill(); raw.strokeCap(strokeCap); raw.beginShape(POINTS);
strokeCap(s.strokeCap); strokeJoin(s.strokeJoin);
raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin); raw.beginShape(LINES);
raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin); raw.beginShape(LINES);
void rawLines() { raw.colorMode(RGB); raw.noFill(); raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin); raw.beginShape(LINES);
void rawLines() { raw.colorMode(RGB); raw.noFill(); raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin); raw.beginShape(LINES);