201708-01 vertex()顶点 Namevertex()顶点 Examples beginShape(POINTS); vertex(30, 20); vertex(85, 20); vertex(85, 75); vertex(30, 75); endShape(); // Drawing ver.... Read More >
201708-01 quadraticVertex()二次贝塞尔曲线的顶点坐标 NamequadraticVertex()二次贝塞尔曲线的顶点坐标 Examples noFill(); strokeWeight(4); beginShape(); vertex(20, 20); quadraticVertex(80, 20, 50, 50); endShape(.... Read More >
201708-01 endShape()结束图形 NameendShape()结束图形 Examples noFill(); beginShape(); vertex(20, 20); vertex(45, 20); vertex(45, 80); endShape(CLOSE); beginShape(); vertex(.... Read More >
201708-01 endContour()结束绘制负形状 NameendContour()结束绘制负形状 Examples size(100, 100); translate(50, 50); stroke(255, 0, 0); beginShape(); // Exterior part of shape, clockwise wind.... Read More >
201708-01 curveVertex()曲线顶点 NamecurveVertex()曲线顶点 Examples noFill(); beginShape(); curveVertex(84, 91); curveVertex(84, 91); curveVertex(68, 19); curveVertex(21, 17);.... Read More >
201708-01 bezierVertex()贝塞尔曲线顶点 NamebezierVertex()贝塞尔曲线顶点 Examples noFill(); beginShape(); vertex(30, 20); bezierVertex(80, 0, 80, 75, 30, 75); endShape(); beginShape.... Read More >
201708-01 beginShape()开始绘制图形 NamebeginShape()开始绘制图形 Examples beginShape(); vertex(30, 20); vertex(85, 20); vertex(85, 75); vertex(30, 75); endShape(CLOSE); beginSh.... Read More >
201708-01 beginContour()开始负形状 NamebeginContour()开始负形状 Examples size(100, 100); translate(50, 50); stroke(255, 0, 0); beginShape(); // Exterior part of shape, clockwise wind.... Read More >
201708-01 strokeWeight()线重 NamestrokeWeight()线重 Examples strokeWeight(1); // Default line(20, 20, 80, 20); strokeWeight(4); // Thicker line(20, 40, 80, 40); strokeWeig.... Read More >
201708-01 strokeJoin()描边接头 NamestrokeJoin()描边接头 Examples noFill(); strokeWeight(10.0); strokeJoin(MITER); beginShape(); vertex(35, 20); vertex(65, 50); vertex(35, 80); e.... Read More >
201708-01 strokeCap()描边帽 NamestrokeCap()描边帽 Examples strokeWeight(12.0); strokeCap(ROUND); line(20, 30, 80, 30); strokeCap(SQUARE); line(20, 50, 80, 50); strokeCap(PRO.... Read More >
201708-01 rectMode()矩形模式 NamerectMode()矩形模式 Examples rectMode(CORNER); // Default rectMode is CORNER fill(255); // Set fill to white rect(25, 25, 50, 50); // Draw w.... Read More >
201708-01 ellipseMode()椭圆模式 NameellipseMode()椭圆模式 Examples ellipseMode(RADIUS); // Set ellipseMode to RADIUS fill(255); // Set fill to white ellipse(50, 50, 30, 30); /.... Read More >
201708-01 sphereDetail()球面分辨率 NamesphereDetail()球面分辨率 Examplesvoid setup() { size(100, 100, P3D); } void draw() { background(200); stroke(255, 50); translate(50, 50, 0); rotateX(mouseY * 0.05); rotateY(mouseX * 0.0.... Read More >