Esempio n. 1
0
    private void SetSegmentLists()
    {
        int segmentNumber = vline.GetSegmentNumber();

        segments = new List <Segment>(segmentNumber);
        for (int i = 0; i < segmentNumber; i++)
        {
            segments.Add(new Segment(vline.GetColor(i), vline.GetWidth(i)));
        }
    }
    void RandomizeAllColors()
    {
        int maxSegment = line.GetSegmentNumber();

        for (int i = 0; i < maxSegment; i++)
        {
            line.SetColor(new Color(Random.value, Random.value, Random.value), i);
        }
    }