Package processing.core

Examples of processing.core.PApplet.strokeWeight()


    if (this.isUseDirectGL()){
      GL gl=((PGraphicsOpenGL)g).beginGL();
        this.drawComponent(gl);
      ((PGraphicsOpenGL)this.getRenderer().g).endGL();
    }else{ //Draw with pure proccessing...
      pa.strokeWeight(this.getStrokeWeight());
     
//      if (ConstantsAndSettings.getInstance().isOpenGlMode()){
        if (this.isDrawSmooth())
          pa.smooth();
        else      
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();
       
        for (Vertex[] outline : this.outlineContours){
View Full Code Here

   */
  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();
      Vector3D centerPoint = t.getCenterPointLocal();
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.