コード例 #1
0
ファイル: Preset.cs プロジェクト: AmadeusW/Aurora
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="original">Another preset to copy</param>
 public Preset(Preset original)
 {
     m_Name = original.Name;
     m_Trigger = original.Trigger;
     m_Compensation = new Helpers.HexColor(original.Compensation.HexValue);
     m_MaxRed = original.MaxRed;
     m_MaxGreen = original.MaxGreen;
     m_MaxBlue = original.MaxBlue;
     m_MinColor = new Helpers.HexColor(original.MinColor.HexValue);
     m_DarkEnhanceDuration = original.DarkEnhanceDuration;
     m_MaxColor = new Helpers.HexColor(original.MaxColor.HexValue);
     m_FlashEnhanceDuration = original.FlashEnhanceDuration;
     m_MonotoneEnhance = original.MonotoneEnhance;
     m_Framerate = original.Framerate;
     m_AveragingParam = original.AveragingParam;
     m_Sectors = original.Sectors; // TODO: make sure they are taken by value
     m_VerticalSectors = original.VerticalSectors;
     m_TopSectors = original.TopSectors;
     m_BottomSectors = original.BottomSectors;
     m_VerticalSectorWidth = original.VerticalSectorWidth;
     m_HorizontalSectorHeight = original.HorizontalSectorHeight;
 }
コード例 #2
0
ファイル: Preset.cs プロジェクト: AmadeusW/Aurora
 /// <summary>
 /// New preset constructor
 /// </summary>
 public Preset()
 {
     m_Name = "New preset";
     m_Trigger = "always on";
     m_Compensation = new Helpers.HexColor("ffffff");
     m_MaxRed = 100;
     m_MaxGreen = 80;
     m_MaxBlue = 40;
     m_MinColor = new Helpers.HexColor("000000");
     m_DarkEnhanceDuration = 200;
     m_MaxColor = new Helpers.HexColor("ffffff");
     m_FlashEnhanceDuration = 20;
     m_MonotoneEnhance = 2;
     m_Framerate = 18;
     m_AveragingParam = 8;
     m_Sectors = new ScreenshotLogicCPP.Sector[Config.numberOfLeds];
     createListOfSectors(); // Initialize the list
     m_VerticalSectors = 6;
     m_TopSectors = 7;
     m_BottomSectors = 6;
     m_VerticalSectorWidth = 300;
     m_HorizontalSectorHeight = 300;
 }