Artemis.Utilities.Keyboard.KeyboardRectangle.KeyboardRectangle C# (CSharp) Method

KeyboardRectangle() public method

Represents a Rectangle on the keyboard which can be drawn to a Bitmap. By default, a rectangle is the entire keyboard's size.
public KeyboardRectangle ( KeyboardProvider keyboard, int x, int y, List colors, LinearGradientMode gradientMode ) : System.Collections.Generic
keyboard Artemis.DeviceProviders.KeyboardProvider The keyboard this rectangle will be used for
x int
y int
colors List An array of colors the ColorBlend will use
gradientMode LinearGradientMode
return System.Collections.Generic
        public KeyboardRectangle(KeyboardProvider keyboard, int x, int y, List<Color> colors,
            LinearGradientMode gradientMode)
        {
            _keyboard = keyboard;
            _rotationProgress = 0;
            _blinkWorker.DoWork += BlinkWorker_DoWork;

            Scale = 4;
            X = x;
            Y = y;
            Width = keyboard.Width*Scale;
            Height = keyboard.Height*Scale;
            Visible = true;
            Opacity = 255;

            ContainedBrush = true;
            GradientMode = gradientMode;
            Rotate = false;
            LoopSpeed = 1;
            Colors = colors;
        }