示例#1
0
        public void Color4FromString_0_IsBlack()
        {
            var testInput = "(0,0,0)";
            var expected  = Color4.Black;
            var result    = S2VXUtils.StringToColor4(testInput);

            Assert.AreEqual(expected, result);
        }
示例#2
0
        public void Color4FromString_1_IsWhite()
        {
            var testInput = "(1,1,1)";
            var expected  = Color4.White;
            var result    = S2VXUtils.StringToColor4(testInput);

            Assert.AreEqual(expected, result);
        }
        public static HoldApproachesColorCommand FromString(string[] split)
        {
            var command = new HoldApproachesColorCommand()
            {
                StartValue = S2VXUtils.StringToColor4(split[2]),
                EndValue   = S2VXUtils.StringToColor4(split[4]),
            };

            return(command);
        }
        public static NotesOutlineColorCommand FromString(string[] split)
        {
            var command = new NotesOutlineColorCommand()
            {
                StartValue = S2VXUtils.StringToColor4(split[2]),
                EndValue   = S2VXUtils.StringToColor4(split[4]),
            };

            return(command);
        }
示例#5
0
        public static BackgroundColorCommand FromString(string[] split)
        {
            var command = new BackgroundColorCommand()
            {
                StartValue = S2VXUtils.StringToColor4(split[2]),
                EndValue   = S2VXUtils.StringToColor4(split[4]),
            };

            return(command);
        }