public void ChromaHcl() { var color = "#aad28c"; Chroma.Hcl(130, 40, 80).ToString().ShouldBeEquivalentTo(color); Chroma.Color(130, 40, 80, ColorMode.Hcl).ToString().ShouldBeEquivalentTo(color); }
public bool Initialize() { if (!isInitialized) { try { if (!Chroma.IsSdkAvailable()) { Global.logger.LogLine("No Chroma SDK available", Logging_Level.Info); throw new Exception("No Chroma SDK available"); //return false; } Chroma.Instance.Initialize(); Global.logger.LogLine("Razer device, Initialized", Logging_Level.Info); keyboard = Chroma.Instance.Keyboard; mouse = Chroma.Instance.Mouse; headset = Chroma.Instance.Headset; mousepad = Chroma.Instance.Mousepad; keypad = Chroma.Instance.Keypad; if (keyboard == null && mouse == null && headset == null && mousepad == null && keypad == null ) { throw new Exception("No devices connected"); } else { if (Global.Configuration.razer_first_time) { RazerInstallInstructions instructions = new RazerInstallInstructions(); instructions.ShowDialog(); Global.Configuration.razer_first_time = false; Settings.ConfigManager.Save(Global.Configuration); } isInitialized = true; return(true); } } catch (Exception ex) { Global.logger.LogLine("Razer device, Exception! Message:" + ex, Logging_Level.Error); } isInitialized = false; return(false); } return(isInitialized); }
public void ChromaCmyk() { //Each between 0 and 1. var color = "#CC33FF"; Chroma.Cmyk(0.2f, 0.8f, 0f, 0f).ToString().ShouldBeEquivalentTo(color); Chroma.Color(0.2f, 0.8f, 0f, 0f, ColorMode.Cmyk).ToString().ShouldBeEquivalentTo(color); }
public void DeltaE() { Chroma.DeltaE("#ededee", "#edeeed").ShouldBeEquivalentTo(1.64); Chroma.DeltaE("#ececee", "#eceeec").ShouldBeEquivalentTo(3.157); Chroma.DeltaE("#e9e9ee", "#e9eee9").ShouldBeEquivalentTo(7.362); Chroma.DeltaE("#e4e4ee", "#e4eee4").ShouldBeEquivalentTo(14.84); Chroma.DeltaE("#e0e0ee", "#e0eee0").ShouldBeEquivalentTo(21.325); }
public void ChromaLch() { Assert.Fail("Check range string"); //The range for lightness and chroma depend on the hue, but go roughly from 0..100 - 150.The range for hue is 0..360. var color = "#AAD28C"; Chroma.Lch(80, 40, 130).ToString().ShouldBeEquivalentTo(color); Chroma.Color(255, 51, 153, ColorMode.Lch).ToString().ShouldBeEquivalentTo(color); }
public void ChromaGl() { var color = "#9900CC"; Assert.Fail("Check range string"); //GL is a variant of RGB(A), with the only difference that the components are normalized to the range of 0..1. Chroma.Gl(0.6f, 0f, 0.8f).ToString().ShouldBeEquivalentTo(color); Chroma.Gl(0.6f, 0f, 0.8f, 0.5f).ToString().ShouldBeEquivalentTo(color); Chroma.Color(0.6f, 0f, 0.8f, ColorMode.Gl).ToString().ShouldBeEquivalentTo(color); }
internal static PixelFarm.TempContext <Chroma> BorrowChromaTool( out Chroma chroma) { if (!PixelFarm.Temp <Chroma> .IsInit()) { PixelFarm.Temp <Chroma> .SetNewHandler( () => new Chroma(), p => p.Reset());//when relese back } return(PixelFarm.Temp <Chroma> .Borrow(out chroma)); }
public override bool CanEnable() { if (!Chroma.IsSdkAvailable()) { return(false); } // Some people have Synapse installed, but not a Chroma keyboard, deal with this var blackWidowFound = Chroma.Instance.Query(Devices.Blackwidow).Connected; var blackWidowTeFound = Chroma.Instance.Query(Devices.BlackwidowTe).Connected; return(blackWidowFound || blackWidowTeFound); }
public void ChromaAverage() { Assert.Fail("Compile Error"); var colors = new[] { Chroma.Color("#ddd"), Chroma.Color("#yellow"), Chroma.Color("#red"), Chroma.Color("#teal"), }; //Chroma.Average(colors).ToString().ShouldBeEquivalentTo("#b79757"); //Chroma.Average(colors, ColorMode.Lab).ToString().ShouldBeEquivalentTo("#d3a96a"); //Chroma.Average(colors, ColorMode.Lch).ToString().ShouldBeEquivalentTo("#fe955c"); //Chroma.Average("red", 'rgba(0,0,0,0.5)']).css(); //"rgba(128,0,0,0.75)" }
public void Сhroma() { var color = "#FF69B4"; Chroma.Color("hotpink").ToString().ShouldBeEquivalentTo(color); Chroma.Color("#FF3399").ToString().ShouldBeEquivalentTo(color); Chroma.Color("F39").ToString().ShouldBeEquivalentTo(color); Chroma.Color(0xff3399).ToString().ShouldBeEquivalentTo(color); Chroma.Color(0xff, 0x33, 0x99).ToString().ShouldBeEquivalentTo(color); Chroma.Color(255, 51, 153).ToString().ShouldBeEquivalentTo(color); //Chroma.Color(new[] {255, 51, 153 }).ToString().ShouldBeEquivalentTo(color); //Chroma.Color(330, 1, 0.6, 'hsl').ToString().ShouldBeEquivalentTo(color); }
/// <summary> /// Computes the chromagram of an audio file. /// </summary> /// <param name="decoder">The <see cref="IDecoder"/> instance.</param> /// <returns>Chroma image.</returns> public static Image ComputeChromagram(IDecoder decoder) { var image = new Image(12); var image_builder = new ImageBuilder(image); var chroma_normalizer = new ChromaNormalizer(image_builder); var chroma_filter = new ChromaFilter(ChromaFilterCoefficients, chroma_normalizer); var chroma = new Chroma(MIN_FREQ, MAX_FREQ, FRAME_SIZE, SAMPLE_RATE, chroma_filter); var fft = new FFT(FRAME_SIZE, OVERLAP, chroma); var processor = new AudioProcessor(SAMPLE_RATE, fft); processor.Reset(decoder.SampleRate, decoder.Channels); decoder.Decode(processor, 120); processor.Flush(); return(image); }
public void TestBasicImage() { short[] data = TestsHelper.LoadAudioFile("test_stereo_44100.raw"); Assert.IsNotNull(data, "Failed to load test data (check DATA_PATH in TestsHelper.cs)"); Image image = new Image(12); ImageBuilder image_builder = new ImageBuilder(image); ChromaNormalizer chroma_normalizer = new ChromaNormalizer(image_builder); Chroma chroma = new Chroma(MIN_FREQ, MAX_FREQ, FRAME_SIZE, SAMPLE_RATE, chroma_normalizer); FFT fft = new FFT(FRAME_SIZE, OVERLAP, chroma); AudioProcessor processor = new AudioProcessor(SAMPLE_RATE, fft); processor.Reset(44100, 2); processor.Consume(data, data.Length); processor.Flush(); double[][] chromagram = { new double[] { 0.155444, 0.268618, 0.474445, 0.159887, 0.1761, 0.423511, 0.178933, 0.34433, 0.360958, 0.30421, 0.200217, 0.17072 }, new double[] { 0.159809, 0.238675, 0.286526, 0.166119, 0.225144, 0.449236, 0.162444, 0.371875, 0.259626, 0.483961, 0.24491, 0.17034 }, new double[] { 0.156518, 0.271503, 0.256073, 0.152689, 0.174664, 0.52585, 0.141517, 0.253695, 0.293199, 0.332114, 0.442906, 0.170459 }, new double[] { 0.154183, 0.38592, 0.497451, 0.203884, 0.362608, 0.355691, 0.125349, 0.146766, 0.315143, 0.318133, 0.172547, 0.112769 }, new double[] { 0.201289, 0.42033, 0.509467, 0.259247, 0.322772, 0.325837, 0.140072, 0.177756, 0.320356, 0.228176, 0.148994, 0.132588 }, new double[] { 0.187921, 0.302804, 0.46976, 0.302809, 0.183035, 0.228691, 0.206216, 0.35174, 0.308208, 0.233234, 0.316017, 0.243563 }, new double[] { 0.213539, 0.240346, 0.308664, 0.250704, 0.204879, 0.365022, 0.241966, 0.312579, 0.361886, 0.277293, 0.338944, 0.290351 }, new double[] { 0.227784, 0.252841, 0.295752, 0.265796, 0.227973, 0.451155, 0.219418, 0.272508, 0.376082, 0.312717, 0.285395, 0.165745 }, new double[] { 0.168662, 0.180795, 0.264397, 0.225101, 0.562332, 0.33243, 0.236684, 0.199847, 0.409727, 0.247569, 0.21153, 0.147286 }, new double[] { 0.0491864, 0.0503369, 0.130942, 0.0505802, 0.0694409, 0.0303877, 0.0389852, 0.674067, 0.712933, 0.05762, 0.0245158, 0.0389336 }, new double[] { 0.0814379, 0.0312366, 0.240546, 0.134609, 0.063374, 0.0466124, 0.0752175, 0.657041, 0.680085, 0.0720311, 0.0249404, 0.0673359 }, new double[] { 0.139331, 0.0173442, 0.49035, 0.287237, 0.0453947, 0.0873279, 0.15423, 0.447475, 0.621502, 0.127166, 0.0355933, 0.141163 }, new double[] { 0.115417, 0.0132515, 0.356601, 0.245902, 0.0283943, 0.0588233, 0.117077, 0.499376, 0.715366, 0.100398, 0.0281382, 0.0943482 }, new double[] { 0.047297, 0.0065354, 0.181074, 0.121455, 0.0135504, 0.030693, 0.0613105, 0.631705, 0.73548, 0.0550565, 0.0128093, 0.0460393 }, }; Assert.AreEqual(14, image.Rows, "Numbers of rows doesn't match"); for (int y = 0; y < 14; y++) { for (int x = 0; x < 12; x++) { Assert.AreEqual(chromagram[y][x], image[y, x], 1e-5); } } }
public static Image Compute(string file, IDecoder decoder) { Image image = new Image(12); ImageBuilder image_builder = new ImageBuilder(image); ChromaNormalizer chroma_normalizer = new ChromaNormalizer(image_builder); ChromaFilter chroma_filter = new ChromaFilter(ChromaFilterCoefficients, chroma_normalizer); //Chroma chroma = new Chroma(MIN_FREQ, MAX_FREQ, FRAME_SIZE, SAMPLE_RATE, &chroma_normalizer); Chroma chroma = new Chroma(MIN_FREQ, MAX_FREQ, FRAME_SIZE, SAMPLE_RATE, chroma_filter); FFT fft = new FFT(FRAME_SIZE, OVERLAP, chroma); AudioProcessor processor = new AudioProcessor(SAMPLE_RATE, fft); processor.Reset(decoder.SampleRate, decoder.Channels); decoder.Decode(processor, 120); processor.Flush(); //ExportImage(image, name); return(image); }
public void TestNormalB() { FeatureVectorBuffer buffer = new FeatureVectorBuffer(); Chroma chroma = new Chroma(10, 510, 256, 1000, buffer); double[] frame = new double[128]; frame[64] = 1.0; // 250 Hz chroma.Consume(frame); Assert.AreEqual(12, buffer.features.Length); double[] expected_features = { 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, }; for (int i = 0; i < 12; i++) { Assert.AreEqual(expected_features[i], buffer.features[i], 0.0001); } }
public void TestNormalA() { FeatureVectorBuffer buffer = new FeatureVectorBuffer(); Chroma chroma = new Chroma(10, 510, 256, 1000, buffer); FFTFrame frame = new FFTFrame(128); frame.Data[113] = 1.0; chroma.Consume(frame); Assert.AreEqual(12, buffer.features.Length); double[] expected_features = { 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, }; for (int i = 0; i < 12; i++) { Assert.AreEqual(expected_features[i], buffer.features[i], 0.0001); } }
public void TestInterpolatedA() { FeatureVectorBuffer buffer = new FeatureVectorBuffer(); Chroma chroma = new Chroma(10, 510, 256, 1000, buffer); chroma.Interpolate = true; double[] frame = new double[128]; frame[113] = 1.0; chroma.Consume(frame); Assert.AreEqual(12, buffer.features.Length); double[] expected_features = { 0.555242, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.444758, }; for (int i = 0; i < 12; i++) { Assert.AreEqual(expected_features[i], buffer.features[i], 0.0001); } }
public void TestInterpolatedB() { FeatureVectorBuffer buffer = new FeatureVectorBuffer(); Chroma chroma = new Chroma(10, 510, 256, 1000, buffer); chroma.Interpolate = true; FFTFrame frame = new FFTFrame(128); frame.Data[64] = 1.0; chroma.Consume(frame); Assert.AreEqual(12, buffer.features.Length); double[] expected_features = { 0.0, 0.286905, 0.713095, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, }; for (int i = 0; i < 12; i++) { Assert.AreEqual(expected_features[i], buffer.features[i], 0.0001); } }
private void Button_Click(object sender, RoutedEventArgs e) { bool run = true; if (lifx.IsChecked == true) { LIFX lifx = new LIFX(); lifx.lifxEnabled = true; System.Windows.Controls.TextBox lifxKey = (System.Windows.Controls.TextBox)sender; string lifxKeyString = lifxKey.Text; lifx.lifxKeyString = lifxKeyString; // setup lifx } if (chroma.IsChecked == true) { Chroma chroma = new Chroma(); chroma.chromaEnabled = true; // setup chroma } if (cue.IsChecked == true) { // setup cue } if (hue.IsChecked == true) { // setup hue } while (run) { string log = GetLogs.GetLogFile(this.logFolder); } }
public void Random() { Assert.NotNull(Chroma.Random()); Assert.NotNull(Chroma.Random()); Assert.NotNull(Chroma.Random()); }
public static PixelFarm.TempContext <Chroma> BorrowChromaTool( this PixelFarm.CpuBlit.Tools tools, out Chroma chroma) { return(BorrowChromaTool(out chroma)); }
public void ChromaLab() { var color = "#FF69B4"; Chroma.Lab(330, 1, 0.6f).ToString().ShouldBeEquivalentTo(color); }
public void Generate(AudioTrack track) { IAudioStream audioStream = new ResamplingStream( new MonoStream(AudioStreamFactory.FromFileInfoIeee32(track.FileInfo)), ResamplingQuality.Medium, profile.SamplingRate); var chroma = new Chroma(audioStream, profile.WindowSize, profile.HopSize, profile.WindowType, profile.ChromaMinFrequency, profile.ChromaMaxFrequency, false, profile.ChromaMappingMode); float[] chromaFrame; var chromaBuffer = new RingBuffer <float[]>(profile.ChromaFilterCoefficients.Length); var chromaFilterCoefficients = profile.ChromaFilterCoefficients; var filteredChromaFrame = new double[Chroma.Bins]; var classifiers = profile.Classifiers; var maxFilterWidth = classifiers.Max(c => c.Filter.Width); var integralImage = new IntegralImage(maxFilterWidth, Chroma.Bins); int index = 0; int indices = chroma.WindowCount; var subFingerprints = new List <SubFingerprint>(); while (chroma.HasNext()) { // Get chroma frame buffer // When the chroma buffer is full, we can take and reuse the oldest array chromaFrame = chromaBuffer.Count == chromaBuffer.Length ? chromaBuffer[0] : new float[Chroma.Bins]; // Read chroma frame into buffer chroma.ReadFrame(chromaFrame); // ChromaFilter chromaBuffer.Add(chromaFrame); if (chromaBuffer.Count < chromaBuffer.Length) { // Wait for the buffer to fill completely for the filtering to start continue; } Array.Clear(filteredChromaFrame, 0, filteredChromaFrame.Length); for (int i = 0; i < chromaFilterCoefficients.Length; i++) { var frame = chromaBuffer[i]; for (int j = 0; j < frame.Length; j++) { filteredChromaFrame[j] += frame[j] * chromaFilterCoefficients[i]; } } // ChromaNormalizer double euclideanNorm = 0; for (int i = 0; i < filteredChromaFrame.Length; i++) { var value = filteredChromaFrame[i]; euclideanNorm += value * value; } euclideanNorm = Math.Sqrt(euclideanNorm); if (euclideanNorm < profile.ChromaNormalizationThreshold) { Array.Clear(filteredChromaFrame, 0, filteredChromaFrame.Length); } else { for (int i = 0; i < filteredChromaFrame.Length; i++) { filteredChromaFrame[i] /= euclideanNorm; } } // ImageBuilder // ... just add one feature vector after another as rows to the image integralImage.AddColumn(filteredChromaFrame); // FingerprintCalculator if (integralImage.Columns < maxFilterWidth) { // Wait for the image to fill completely before hashes can be generated continue; } // Calculate subfingerprint hash uint hash = 0; for (int i = 0; i < classifiers.Length; i++) { hash = (hash << 2) | grayCodeMapping[classifiers[i].Classify(integralImage, 0)]; } // We have a SubFingerprint@frameTime subFingerprints.Add(new SubFingerprint(index, new SubFingerprintHash(hash), false)); index++; if (index % 512 == 0 && SubFingerprintsGenerated != null) { SubFingerprintsGenerated(this, new SubFingerprintsGeneratedEventArgs(track, subFingerprints, index, indices)); subFingerprints.Clear(); } } if (SubFingerprintsGenerated != null) { SubFingerprintsGenerated(this, new SubFingerprintsGeneratedEventArgs(track, subFingerprints, index, indices)); } if (Completed != null) { Completed(this, EventArgs.Empty); } audioStream.Close(); }
/// <summary> /// Returns a color with the specified chroma and luma /// </summary> /// <returns>Color with the specified chroma and luma.</returns> /// <param name="chroma">Chroma.</param> /// <param name="luma">Luma.</param> /// <param name="useBT709">Uses BT.709 instead of BT.601 if set to true.</param> public static Color FromChromaAndLuma(Chroma chroma, float luma, bool useBT709 = false) { return(FromChromaAndLuma(chroma.hue, chroma.saturation, luma, useBT709)); }
static void Main(string[] args) { Skin One = new Skin("Riot Girl Tristana", "24/6/2014", 0, "Promotional"); Skin Two = new Skin("Unchained Alistar", "24/6/2014", 0, "Promotional"); Legacy Three = new Legacy("FrankenTibbers Annie", "10/1/2015", 975, "Legacy", "Harrowing", false); Skin Four = new Skin("Pool Party Graves", "24/5/2015", 1350, "Epic"); Legacy Five = new Legacy("Heartseeker Ashe", "24/5/2015", 975, "Legacy", "Valentines", false); Skin Six = new Skin("Frostblade Irelia", "24/5/2015", 975, "Common"); Skin Seven = new Skin("Zombie Slayer Jinx", "15/11/2015", 1350, "Epic"); Skin Eight = new Skin("Headhunter Master Yi", "15/11/2015", 975, "Common"); Chroma Nine = new Chroma("Headhunter Master Yi Strike", "23/11/2015", 290, "Common", "Golden"); Chroma Ten = new Chroma("Headhunter Master Yi Strike", "23/11/2015", 290, "Common", "Blue"); Chroma Eleven = new Chroma("Headhunter Master Yi Strike", "23/11/2015", 290, "Common", "Red"); Chroma Twelve = new Chroma("Caitlyn Rebel", "28/11/2015", 290, "Common", "Blue"); Chroma Thirteen = new Chroma("Caitlyn Rebel", "28/11/2015", 290, "Common", "Pink"); Chroma Fourteen = new Chroma("Caitlyn Rebel", "28/11/2015", 290, "Common", "Green"); Skin Fifteen = new Skin("Neon Strike Vi", "28/11/2015", 975, "Common"); Skin Sixteen = new Skin("Arcade Miss Fortune", "23/12/2015", 1350, "Epic"); Skin Seventeen = new Skin("Jade Dragon Wukong", "30/12/2015", 975, "Common"); Skin Eighteen = new Skin("Death Blossom Kha'Zix", "18/3/2016", 975, "Common"); Legacy Nineteen = new Legacy("Sweeper Alistar", "18/3/2016", 750, "Common", "2014 World Cup", true); Skin Twenty = new Skin("Headhunter Nidalee", "18/3/2016", 975, "Common"); Legacy TwentyOne = new Legacy("Riot Kayle", "15/9/2016", 0, "Promotional", "2014 Event", true); Legacy TwentyTwo = new Legacy("Sandstorm Ekko", "24/1/2018", 1350, "Epic", "Season Six World Championship", true); Skin TwentyThree = new Skin("Glacial Malphite", "24/1/2018", 1350, "Epic"); Skin TwentyFour = new Skin("Dragon Sorceress Zyra", "2/8/2018", 1350, "Epic"); Skin TwentyFive = new Skin("Officer Vi", "2/8/2018", 975, "Common"); Chroma TwentySix = new Chroma("Officer Vi", "10/8/2018", 290, "Common", "Red"); Chroma TwentySeven = new Chroma("Officer Vi", "10/8/2018", 290, "Common", "Black"); Chroma TwentyEight = new Chroma("Officer Vi", "10/8/2018", 290, "Common", "White"); Legacy TwentyNine = new Legacy("SKT T1 Zyra", "10/8/2018", 975, "Common", "Season Three Championship", true); Legacy Thirty = new Legacy("Warring Kingdoms Vi", "29/3/2020", 1350, "Epic", "Lunar Revel", false); Skin ThirtyOne = new Skin("God Staff Jax", "10/4/2020", 1350, "Epic"); Skin ThirtyTwo = new Skin("Demon Vi", "10/4/2020", 1350, "Epic"); Skin ThirtyThree = new Skin("Pool Party Lee Sin", "10/4/2020", 975, "Common"); Skin ThirtyFour = new Skin("Crime City Graves", "10/4/2020", 975, "Common"); Legacy ThirtyFive = new Legacy("Sweetheart Sona", "21/4/2020", 975, "Common", "Valentines", false); Skin ThirtySix = new Skin("Star Guardian Syndra", "26/4/2020", 1350, "Epic"); Skin ThirtySeven = new Skin("PROJECT: Vi", "26/4/2020", 1350, "Epic"); Skin ThirtyEight = new Skin("Secret Ageng Xin Zhao", "26/4/2020", 975, "Common"); Skin ThirtyNine = new Skin("Presigious Leblanc", "26/4/2020", 520, "Common"); Skin Forty = new Skin("Warden Nautilus", "26/4/2020", 750, "Common"); Skin FortyOne = new Skin("Blood Moon Diana", "30/4/2020", 1350, "Epic"); Skin FortyTwo = new Skin("Hired Gun Lucaian", "30/4/2020", 975, "Common"); Skin FortyThree = new Skin("Frosted Ezreal", "30/4/2020", 975, "Common"); Skin FortyFour = new Skin("Dragonslayer Vayne", "30/4/2020", 975, "Common"); Skin FortyFive = new Skin("Koi Nami", "30/4/2020", 975, "Common"); Skin FortySix = new Skin("Iron Solari Leona", "30/4/2020", 975, "Common"); Skin FortySeven = new Skin("Blade Mistress Morgana", "30/4/2020", 975, "Common"); Skin FortyEight = new Skin("Infernal Varus", "30/4/2020", 1350, "Epic"); Skin FortyNine = new Skin("Dragonslayer Trundle", "30/4/2020", 1350, "Epic"); Skin Fifty = new Skin("PROJECT: Fiora", "30/4/2020", 1350, "Epic"); Skin FiftyOne = new Skin("Warring Kingdoms Nidalee", "30/4/2020", 975, "Common"); Chroma FiftyTwo = new Chroma("Dragon Slayer Trundle", "30/4/2020", 290, "Common", "White"); Chroma FiftyThree = new Chroma("Dragon Slayer Trundle", "30/4/2020", 290, "Common", "Obsidian"); Chroma FiftyFour = new Chroma("Dragon Slayer Trundle", "30/4/2020", 290, "Common", "Purple"); Chroma FiftyFive = new Chroma("Dragon Slayer Trundle", "30/4/2020", 290, "Common", "Green"); Chroma FiftySix = new Chroma("Dragon Slayer Trundle", "30/4/2020", 290, "Rare", "Red"); Chroma FiftySeven = new Chroma("Dragon Slayer Vayne", "30/4/2020", 290, "Common", "Golden"); Chroma FiftyEight = new Chroma("Dragon Slayer Vayne", "30/4/2020", 290, "Common", "Crimson"); Chroma FiftyNine = new Chroma("Dragon Slayer Vayne", "30/4/2020", 290, "Common", "Grey"); Chroma Sixty = new Chroma("Arcade Miss Fortune", "3/5/2020", 290, "Common", "Yellow"); Skin SixtyOne = new Skin("Cosmic Queen Ashe", "4/5/2020", 1350, "Epic"); Chroma SixtyTwo = new Chroma("Cosmic Queen Ashe", "4/5/2020", 290, "Epic", "Ruby"); Chroma SixtyThree = new Chroma("Officer Vi", "4/5/2020", 290, "Common", "Aquamarine"); Chroma SixtyFour = new Chroma("Officer Vi", "4/5/2020", 290, "Common", "Military"); Skin SixtyFive = new Skin("Blood Moon Elise", "5/5/2020", 975, "Common"); Chroma SixtySix = new Chroma("Pool Party Graves", "7/5/2020", 290, "Common", "Yellow"); Chroma SixtySeven = new Chroma("Pool Party Graves", "7/5/2020", 290, "Common", "Purple"); Chroma SixtyEight = new Chroma("Cosmic Queen Ashe", "8/5/2020", 290, "Epic", "Emerald"); Chroma SixtyNine = new Chroma("Cosmic Queen Ashe", "11/5/2020", 290, "Epic", "Sapphire"); Skin Seventy = new Skin("K/DA Akali", "11/5/2020", 1350, "Epic"); Chroma SeventyOne = new Chroma("Arcade Miss Fortune", "16/5/2020", 290, "Common", "Red"); Chroma SeventyTwo = new Chroma("Infernal Varus", "16/5/2021", 290, "Common", "Red"); Legacy SeventyThree = new Legacy("Hearbreaker Vi", "30/5/2020", 1350, "Epic", "Valentines", false); Skin SeventyFour = new Skin("Urf the Nami-Tee", "19/7/2020", 975, "Common"); Legacy SeventyFive = new Legacy("SKT T1 Syndra", "24/7/2020", 1350, "Epic", "Season Six Championships", true); Legacy SeventySix = new Legacy("Heartseeker Vayne", "24/7/2020", 975, "Common", "Valentines", false); Skin SeventySeven = new Skin("Debonair Vi", "24/7/2020", 750, "Common"); Skin SeventyEight = new Skin("Sandstorm Katarina", "5/8/2020", 975, "Common"); Legacy SeventyNine = new Legacy("Goalkeeper Blitzcrank", "6/8/2020", 520, "Common", "World Cup 2010", true); Skin Eighty = new Skin("Ice Drake Shyvana", "7/8/2020", 975, "Common"); Skin EightyOne = new Skin("Elderwood Ahri", "14/8/2020", 1350, "Epic"); Skin EightyTwo = new Skin("Super Galaxy Shyvana", "24/8/2020", 1350, "Epic"); Skin EightyThree = new Skin("Boneclaw Shyvana", "24/8/2020", 520, "Common"); Skin EightyFour = new Skin("Marquis Vladimir", "24/8/2020", 750, "Common"); Skin EightyFive = new Skin("PsyOps Vi", "4/9/2020", 1350, "Epic"); Chroma EightySix = new Chroma("PsyOps Vi", "4/9/2020", 290, "Rare", "Ruby"); Chroma EightySeven = new Chroma("PsyOps Vi", "4/9/2020", 290, "Rare", "Hunter"); Chroma EightyEight = new Chroma("PsyOps Vi", "4/9/2020", 290, "Common", "Tanzanite"); Chroma EightyNine = new Chroma("PsyOps Vi", "4/9/2020", 290, "Common", "Sandstone"); Chroma Ninety = new Chroma("PsyOps Vi", "4/9/2020", 290, "Common", "Rose Quartz"); Chroma NinetyOne = new Chroma("PsyOps Vi", "4/9/2020", 290, "Common", "Turqouise"); Chroma NinetyTwo = new Chroma("PsyOps Vi", "4/9/2020", 290, "Common", "Granite"); Chroma NinetyThree = new Chroma("PsyOps Vi", "4/9/2020", 290, "Common", "Obsidian"); Skin NinetyFour = new Skin("PsyOps Ezreal", "7/9/2020", 1350, "Epic"); Skin NinetyFive = new Skin("Darkflame Shyvana", "8/9/2020", 975, "Common"); Skin NinetySix = new Skin("Pulsefire Ezreal", "13/9/2020", 3250, "Ultimate"); Skin NinetySeven = new Skin("Jade Fang Cassiopeia", "19/9/2020", 975, "Common"); Skin NinetyEight = new Skin("Battlecast Alpha Skarner", "22/9/2020", 1820, "Legendary"); Legacy NinetyNine = new Legacy("Sweetheart Annie", "25/9/2020", 750, "Common", "Valentines", false); Legacy Hundred = new Legacy("Championship Leblanc", "30/9/2020", 1350, "Epic", "Season 10 Championships", true); Skin HundredOne = new Skin("Cosmic Dusk Xayah", "30/9/2020", 1350, "Epic"); Skin HundredTwo = new Skin("Arclight Vel'Koz", "1/10/2020", 1350, "Epic"); Skin HundredThree = new Skin("Obsidian Dragon Sett", "3/10/2020", 1350, "Epic"); Legacy HundredFour = new Legacy("Championship Shyvana", "3/10/2020", 975, "Common", "End of Season", false); Skin HundredFive = new Skin("Dark Star Xerath", "3/10/2020", 1350, "Epic"); Skin HundredSix = new Skin("Aviator Irelia", "3/10/2020", 520, "Common"); Skin HundredSeven = new Skin("PROJECT: Yasuo", "4/10/2020", 1350, "Epic"); Skin HundredEight = new Skin("Crime City Jinx", "5/10/2020", 975, "Common"); Skin HundredNine = new Skin("Cosmic Reaver Kassadin", "9/12/2020", 1350, "Epic"); Legacy HundredTen = new Legacy("Championship Khazix", "25/1/2021", 1350, "Epic", "End of Season", false); Skin HundredEleven = new Skin("Star Guardian Jinx", "4/3/2021", 1820, "Legendary"); Skin HundredTwelve = new Skin("Guardian of the sands Skarner", "20/4/2021", 975, "Common"); Skin HundredThirteen = new Skin("PROJECT: Ashe", "16/5/2021", 1820, "Legendary"); Skin HundredFourteen = new Skin("Pizza Delivery Sivir", "23/5/2021", 1350, "Epic"); Skin HundredFifteen = new Skin("Fae Dragon Ashe", "23/5/2021", 1350, "Epic"); Chroma HundredSixteen = new Chroma("Fae Dragon Ashe", "23/5/2021", 290, "Common", "Obsidian"); Chroma HundredSeventeen = new Chroma("Fae Dragon Ashe", "23/5/2021", 290, "Common", "Purple"); Chroma HundredEighteen = new Chroma("Fae Dragon Ashe", "23/5/2021", 290, "Common", "Pink"); Legacy HundredNineteen = new Legacy("Ambitious Elf Jinx", "26/5/2021", 1350, "Epic", "Christmas", false); Skin HundredTwenty = new Skin("Marauder Xin Zhao", "27/5/2021", 1350, "Epic"); Skin HundredTwentyOne = new Skin("Cosmic Defender Xin Zhao", "27/5/2021", 1350, "Epic"); Skin HundredTwentyTwo = new Skin("Dragonslayer Xin Zhao", "27/5/2021", 1350, "Epic"); Skin HundredTwentyThree = new Skin("Warring Kingdoms Xin Zhao", "27/5/2021", 1350, "Epic"); Skin HundredTwentyFour = new Skin("PROJECT: Sylas", "28/5/2021", 1350, "Epic"); Legacy HundredTwentyFive = new Legacy("Fnatic Janna", "28/5/2021", 750, "Common", "Season One Championships", true); Skin HundredTwentySix = new Skin("Battle Professor Graves", "28/5/2021", 1350, "Epic"); Skin HundredTwentySeven = new Skin("Crime City Miss Fortune", "30/5/2021", 975, "Common"); Skin HundredTwentyEight = new Skin("PROJECT: Varus", "31/5/2021", 1350, "Epic"); Skin HundredTwentyNine = new Skin("Officer Caitlyn", "1/6/2021", 975, "Common"); Skin HundredThirty = new Skin("Coven Zyra", "1/6/2021", 1350, "Epic"); Skin HundredThirtyOne = new Skin("Pentakill Kayle", "4/6/2021", 1350, "Epic"); Legacy HundredThirtyTwo = new Legacy("Temptest Janna", "8/6/2021", 520, "Common", "None", true); Legacy HudnredThirtyThree = new Legacy("Union Jack Fiddlesticks", "8/6/2021", 520, "Common", "World Cup 2010", true); Legacy HudnredThirtyFour = new Legacy("Snow Day Syndra", "8/6/2021", 1350, "Epic", "Christmas", false); Skin HundredThirtyFive = new Skin("Infernal Nasus", "8/6/2021", 1820, "Legendary"); Skin HundredThirtySix = new Skin("Academy Vladimir", "8/6/2021", 975, "Common"); Skin HundredThirtySeven = new Skin("Pengu Cosplay Tristana", "8/6/2021", 1350, "Epic"); Skin HundredThirtyEight = new Skin("Pool Party Syndra", "8/6/2021", 1350, "Epic"); Skin HundredThirtyNine = new Skin("Battle Academia Leona", "8/6/2021", 1350, "Epic"); Skin HundredForty = new Skin("Coven Zyra Prestige Edition", "8/6/2021", 15250, "Mythic"); Skin HundredFortyOne = new Skin("Nightmare Tryndamere", "9/6/2021", 750, "Common"); }
public void ChromaTemperature() { Chroma.Temperature(2000).ToString().ShouldBeEquivalentTo("#FF8B14"); // candle light // #ff8b14 Chroma.Temperature(3500).Hex().ShouldBeEquivalentTo("#FFC38A"); // sunset //ffc38a Chroma.Temperature(6500).ToString().ShouldBeEquivalentTo("#FFFAFE"); // daylight //fffafe }