Esempio n. 1
0
        //Draw line between pStart and pEnd with color(c) on keyboard(k)
        public void DrawLineAt(ConsoleColor c, PointF pStart, PointF pEnd)
        {
            int res = canvSize.Width;

            for (int x = 0; x < res; x++)
            {
                DrawAt(c, PointF3D.Lerp(pStart, pEnd, x / (float)res));
            }
        }
        //Draw line between pStart and pEnd with color(c) on keyboard(k)
        public void DrawLineAt(Color c, PointF pStart, PointF pEnd)
        {
            int res = 23;

            for (int x = 0; x < res; x++)
            {
                DrawAt(c, PointF3D.Lerp(pStart, pEnd, x / (float)res));
            }
        }
Esempio n. 3
0
        //Draw line between pStart and pEnd with color(c) on keyboard(k)
        public static void LEDDrawLineAt(CorsairKeyboard k, Color c, PointF pStart, PointF pEnd)
        {
            int res = 23;

            for (int x = 0; x < res; x++)
            {
                LEDDrawAt(k, c, PointF3D.Lerp(pStart, pEnd, x / (float)res));
            }
        }