public void SetKeys(IEnumerable <Point> points, RazerChroma.Net.NativeWin32.ColorRef color) { foreach (Point singlePoint in points) { rawEffect.Color[singlePoint.Y, singlePoint.X].Add(color); } }
public void SetKeys(int index1, int index2, RazerChroma.Net.NativeWin32.ColorRef color) { int minIndex = (index1 > index2) ? index2 : index1; int maxIndex = (index1 > index2) ? index1 : index2; for (int i = index1; i <= index2; i++) { rawEffect.Color[i].Add(color); } }
public void SetKeys(int row1, int col1, int row2, int col2, RazerChroma.Net.NativeWin32.ColorRef color) { int minCol = (col1 > col2) ? col2 : col1; int minRow = (row1 > row2) ? row2 : row1; int MaxCol = (col1 > col2) ? col1 : col2; int MaxRow = (row1 > row2) ? row1 : row2; for (int currentRow = minRow; currentRow <= MaxRow; currentRow++) { for (int currentCol = minCol; currentCol <= MaxCol; currentCol++) { rawEffect.Color[currentRow, currentCol].Add(color); } } }
public void Clear(RazerChroma.Net.NativeWin32.ColorRef color) { SetKeys(0, (int)RazerChroma.Net.MousePad.Definitions.MaxLeds - 1, color); }
public void SetKey(int index, RazerChroma.Net.NativeWin32.ColorRef color) { rawEffect.Color[index].Add(color); }
public void SetKeys(IEnumerable <RazerChroma.Net.Keyboard.Definitions.RzKey> keys, RazerChroma.Net.NativeWin32.ColorRef color) { foreach (RazerChroma.Net.Keyboard.Definitions.RzKey singleKey in keys) { rawEffect.Color[((int)singleKey & 0xff00) >> 8, (int)singleKey & 0xff].Add(color); } }
public void SetKey(Point point, RazerChroma.Net.NativeWin32.ColorRef color) { rawEffect.Color[point.Y, point.X].Add(color); }
public void SetKey(int row, int col, RazerChroma.Net.NativeWin32.ColorRef color) { rawEffect.Color[row, col].Add(color); }
public void SetKey(RazerChroma.Net.Keyboard.Definitions.RzKey key, RazerChroma.Net.NativeWin32.ColorRef color) { SetKey(((int)key & 0xff00) >> 8, (int)key & 0xff, color); }
public void Clear(RazerChroma.Net.NativeWin32.ColorRef color) { SetKeys(0, 0, (int)RazerChroma.Net.Keyboard.Definitions.MaxRow - 1, (int)RazerChroma.Net.Keyboard.Definitions.MaxCol - 1, color); }
public void SetKeys(Point p1, Point p2, RazerChroma.Net.NativeWin32.ColorRef color) { SetKeys(p1.Y, p1.X, p2.Y, p2.X, color); }
public void SetKey(RazerChroma.Net.Mouse.Definitions.RzLed2 key, RazerChroma.Net.NativeWin32.ColorRef color) { SetKey(((int)key & 0xff00) >> 8, (int)key & 0xff, color); }
public void Set(RazerChroma.Net.NativeWin32.ColorRef color) { rawEffect.Color.Add(color); }