pageok

LumarcaLibrary class: drawShape(PVector color, Shape shape)

Example:

  Shape shape;
  
   void setup(){
   	Lumarca lumarca = new LumarcaLibrary(this, 256, false);  //create LumarcaLibrary
        
       PVector center = new PVector();
		lumarca.getCenterPosition(center);
       shape = new ObjFile(this, center, new PVector(1, 0, 0), "obj/cube.obj", 300);
	}
    
	void draw() {
       lumarca.drawShape(shape.color, shape);  
   }   

Description

    Draw solid color lines inside the shape passed. White dots will appear at the end of these lines.

Parameteres

    PVector color
      This PVector sets the color of the line. The x is the red value, the y is the green value, and the blue is the y value.
      Note: Lumarca colors go from 0-1, not 0-255. So if you want something to be half red, the value is 0.5.
    Shape shape
      The Shape to be drawn.

Related

    drawLine(PVector color, PVector top, PVector bottom)
    drawLineNoDots(PVector color, PVector top, PVector bottom)
    drawShape(PVector color, Shape shape)
    drawShapeNotDots(PVector color, Shape shape)
    drawWireframe(Shape shape)

pageok