2 using System.Collections.Generic;
35 get {
return _ActiveColor; }
36 set { _ActiveColor = value; }
50 get {
return _InactiveColor; }
51 set { _InactiveColor = value; }
67 D.
Alpha = (int)((
float)Pixel.
Alpha * TriggerValue / 255);
80 public override void Init(Table.Table Table)
90 for (
int Y = 0; Y <=
Frame.GetUpperBound(1); Y++)
93 for (
int X = 0; X <=
Frame.GetUpperBound(0); X++)
97 double Brightness = ((double)(P.
Red + P.
Green + P.
Blue) / 3).Limit(0, 255);
99 P.
Red = (byte)(InactiveColor.Red + (
int)((float)(ActiveColor.Red - InactiveColor.Red) * Brightness / 255)).Limit(0, 255);
100 P.
Green = (byte)(InactiveColor.Green + (
int)((float)(ActiveColor.Green - InactiveColor.Green) * Brightness / 255)).Limit(0, 255);
101 P.
Blue = (byte)(InactiveColor.Blue + (
int)((float)(ActiveColor.Blue - InactiveColor.Blue) * Brightness / 255)).Limit(0, 255);
102 P.
Alpha = (byte)(InactiveColor.Alpha + (
int)((float)(ActiveColor.Alpha - InactiveColor.Alpha) * Brightness / 255)).Limit(0, 255);
This class stores information on colors used for toys and effects (e.g. RGBLed).
The namespace DirectOutput.Cab.Toys contains all toy related classes.
Struct holding the data for a single pixel in a bitmap.
Animation steps though frames of the source image (this mainly for animated gifs).
This displays a defined part of a bitmap as a animation in the given colors on a area of a RGBAtoy Ma...
override RGBAColor GetEffectValue(int TriggerValue, PixelData Pixel)
Gets the value for a single element in the matrix.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
int Alpha
Alpha value for the color.
Namespace for objects dealing with layers
override void Init(Table.Table Table)
Initializes the effect. Resolves object references, extracts source image data.
The namespace DirectOutput.General contains classes for general use.