export global MatrixState { in-out property <[[bool]]> matrix; callback set-matrix([[bool]]); public function set-matrix-item(x: int, y: int, value: bool) { matrix[x][y] = value; set-matrix(matrix); } in-out property brightness; callback set-brightness(); }