public void noFill() { g.noFill(); }
/** * ( begin auto-generated from noFill.xml ) * * Disables filling geometry. If both <b>noStroke()</b> and <b>noFill()</b> * are called, nothing will be drawn to the screen. * * ( end auto-generated ) * * @webref color:setting * @usage web_application * @see PGraphics#fill(float, float, float, float) * @see PGraphics#stroke(int, float) * @see PGraphics#noStroke() */ public void noFill() { if (recorder != null) recorder.noFill(); 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(); } }
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(); } }
PGraphics p; void setup(){ size(400,400,P3D); p = createGraphics(400,400,P3D); smooth(); stroke(180,90,210); } void draw(){ background(180,90,210); p.beginDraw(); p.background(220, 180, 40,0); p.noFill(); p.stroke(220, 180, 40); p.translate(width/2 - (width/2 - mouseX), height/2, 400-mouseY*5); p.sphere(100); p.endDraw(); pushMatrix(); translate(width/2, height/2, -200); rotateY(radians(frameCount)); rotateX(radians(frameCount/2)); box(100); popMatrix(); image(p,0,0); }
pg.rotate (PI/6); pg.stroke(255); pg.noFill(); pg.strokeWeight(0.5); pg.rect (0,0,100,100);
raw.noFill(); 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);
raw.noFill(); raw.strokeCap(strokeCap); raw.beginShape(POINTS);
fill(s.fillColor); } else { noFill();
fill(s.fillColor); } else { noFill();
pg.noFill(); pg.stroke(0); pg.strokeWeight(2);
raw.noFill(); raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin);
raw.noFill(); raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin);
void rawLines() { raw.colorMode(RGB); raw.noFill(); raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin);
void rawLines() { raw.colorMode(RGB); raw.noFill(); raw.strokeCap(strokeCap); raw.strokeJoin(strokeJoin);