Example #1
0
        public void TestColor()
        {
            Action      action = VP.Create().Sign(color: Color.Red);
            SignCommand sign   = action.Create.GetCommandOfType <SignCommand>();

            Assert.IsNotNull(sign);
            Assert.IsTrue(sign.ForeColor.Equals(System.Drawing.Color.Red));
        }
        public static void RunExample()
        {
            // build an action using a fluent API
            Action action = VP.Create()
                            .Texture("stone1.jpg")
                            .Bump()
                            .Texture("stone2.jpg", global: true)
                            .Activate()
                            .Texture("stone3.jpg", global: true);

            // output the action as a string
            Console.WriteLine(action);
        }