Package processing.core

Examples of processing.core.PApplet.stroke()


     
      if (this.isNoStroke())  
        pa.noStroke();
      else{
        MTColor strokeColor = this.getStrokeColor();
        pa.stroke(strokeColor.getR(), strokeColor.getG(), strokeColor.getB(), strokeColor.getAlpha());
      }
     
      //Set the tint values
      MTColor fillColor = this.getFillColor();
      pa.tint(fillColor.getR(), fillColor.getG(), fillColor.getB(), fillColor.getAlpha())
View Full Code Here


//        }
//      }else{
      if (!this.isNoStroke()){
        pa.noFill();
        MTColor strokeColor = this.getStrokeColor();
        pa.stroke(strokeColor.getR(), strokeColor.getG(), strokeColor.getB(), strokeColor.getAlpha());
        pa.strokeWeight(2);
       
        if (this.isDrawSmooth())
          pa.smooth();
       
View Full Code Here

   * Draws the face normals of the mesh.
   */
  private void drawNormals(){
    PApplet r = this.getRenderer();
//    Vector3D[] normals = this.getGeometryInfo().getNormals();
    r.stroke(255, 0, 0);
    r.strokeWeight(0.5f);
   
    for (int i = 0; i < triangles.length; i++) {
      Triangle t = triangles[i];
      r.pushMatrix();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.