示例#1
0
        private void ShowWinPath()
        {
            var startPoint = WinPath[0];

            startPoint.TurnBacklight(true);
            startPoint.IsBusy = true;

            for (var i = 1; i < WinPath.Length; i++)
            {
                WinPath[i].TurnBacklight(true);
                WinPath[i].IsBusy = true;
                _brush.AddLine(startPoint.transform.localPosition, WinPath[i].transform.localPosition);
                startPoint = WinPath[i];
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            float[] test   = new float[1000];
            Random  random = new Random();

            Parallel.For(0, test.Length, i =>
            {
                test[i] = (float)(random.NextDouble() * 1024 - 512);
            });
            using (Draw draw = new Draw())
            {
                LineItem line = new LineItem(name: "test");
                draw.AddLine(line);
                draw.AddData(line, test);
                draw.ReFlush($"C:\\{DateTime.Now:yyyyMMddHHmmss}.jpg");
            }
        }
示例#3
0
 void RPC_broadcastLine(string lineID, int slice, string structure, Vector3[] line)
 {
     _draw.AddLine(lineID, slice, structure, line);
 }