float L1=100,L2=100,L3=100; //lengths of the box void setup() { size(700,700,P3D); //initializes display window stroke(0,0,0,200); fill(255,255,255); } void draw() { background(100,100,100); translate(350,350,0); box(L1,L2,L3); } class Matrix { float[][] a= new float[3][3]; public Matrix(float scalar) { for(int i=0;i<3;i++) { a[i][i]=scalar; for(int j=0;j