Avaruus - taso pisteiden kautta
piste(2,0,0,'p') piste(0,2,0,'q') piste(0,0,2,'r') piste(-2,0,0,'mp') piste(0,-2,0,'mq') piste(0,0,-2,'mr') const ABC1 = board.create('polygon', ['p','q','r'], {hasInnerPoints: true,Color:'#000000'}); const ABC2 = board.create('polygon', ['mp','q','r'], {hasInnerPoints: true,Color:'#ff0000'}); const ABC3 = board.create('polygon', ['p','mq','r'], {hasInnerPoints: true,Color:'#00ff00'}); const ABC4 = board.create('polygon', ['p','q','mr'], {hasInnerPoints: true,Color:'#0000ff'}); const ABC5 = board.create('polygon', ['mp','mq','r'], {hasInnerPoints: true,Color:'#ffff00'}); const ABC6 = board.create('polygon', ['p','mq','mr'], {hasInnerPoints: true,Color:'#00ffff'}); const ABC7 = board.create('polygon', ['mp','q','mr'], {hasInnerPoints: true,Color:'#ff00ff'}); const ABC8 = board.create('polygon', ['mp','mq','mr'], {hasInnerPoints: true,Color:'#ffffff'});