public bool Draw(int[,] matrix) { DTLDelegate.VoronoiDiagramDelegate voronoiDiagramDelegate = (ref Pair point, ref int color, uint startX, uint startY, uint w, uint h) => { if (rand.Probability((this.probabilityValue))) { color = this.trueColor; } else { color = this.falseColor; } }; voronoiDiagram.Draw(matrix, voronoiDiagramDelegate); return(true); }