Avaruus - taso pisteiden kautta
piste(2,2,2,'p1') piste(2,-2,2,'q1') piste(-2,-2,2,'r1') piste(-2,2,2,'s1') piste(2,2,-2,'p2') piste(2,-2,-2,'q2') piste(-2,-2,-2,'r2') piste(-2,2,-2,'s2') // jana('q1','s1') // jana('q1','s2') const ABC1 = board.create('polygon', ['p1','q1','q2','p2'], {hasInnerPoints: true,Color:'#f00000'}); const ABC2 = board.create('polygon', ['q1','r1','r2','q2'], {hasInnerPoints: true,Color:'#f0f000'}); const ABC3 = board.create('polygon', ['r1','s1','s2','r2'], {hasInnerPoints: true,Color:'#00f000'}); const ABC4 = board.create('polygon', ['s1','p1','p2','s2'], {hasInnerPoints: true,Color:'#00f0f0'}); const ABC5 = board.create('polygon', ['p1','q1','r1','s1'], {hasInnerPoints: true,Color:'#000f00'}); const ABC6 = board.create('polygon', ['p2','q2','r2','s2'], {hasInnerPoints: true,Color:'#000f0f'}); // const ABC7 = board.create('polygon', ['p1','s2','r2'], {hasInnerPoints: true,Color:'#000f0f'}); // const ABC8 = board.create('polygon', ['p1','q2','r2'], {hasInnerPoints: true,Color:'#000f0f'}); // const ABC9 = board.create('polygon', ['p1','r1','r2'], {hasInnerPoints: true,Color:'#000f0f'});