public static void Start() { Tortoise.Show(); Tortoise.SetSpeed(10); ColorWheel.AddColor(Colors.BlueViolet); ColorWheel.AddColor(Colors.Violet); ColorWheel.AddColor(Colors.Purple); for (int i = 0; i < 75; i++) { try { //var aaa = 100 / i; var nextColor = ColorWheel.GetNextColor(); Tortoise.SetPenColor(nextColor); Tortoise.Move((i + 1) * 5); Tortoise.Turn(360.0 / 3); } catch (Exception re) { MessageBox.ShowMessage("Hold up: " + re); } } }
public static void Start() { Tortoise.Show(); Tortoise.Hide(); Tortoise.SetX(225); Tortoise.SetY(150); Tortoise.SetSpeed(10); ColorWheel.AddColor(Colors.Crimson); ColorWheel.AddColor(Colors.DarkRed); ColorWheel.AddColor(Colors.FireBrick); for (int i = 0; i < 6; i++) { Tortoise.SetPenColor(ColorWheel.GetNextColor()); Tortoise.Move((i + 1) * 4); Tortoise.Turn(-360.0 / 6); for (int j = 0; j < 15; j++) { Tortoise.SetPenWidth(17); Tortoise.Move((j + 1) * 8); Tortoise.Turn(360.0 / 5); } //--Tortoise.getBackgroundWindow().setBackground(PenColors.Yellows.PeachPuff); } Tortoise.SetX(300); Tortoise.SetY(200); for (int i = 0; i < 5; i++) { Tortoise.SetPenColor("Black"); Tortoise.Move(25); Tortoise.Turn(360.0 / 5); } }
private static void CreateColorPalette() { ColorWheel.AddColor(Colors.SteelBlue); ColorWheel.AddColor(Colors.DarkOrchid); ColorWheel.AddColor(Colors.DarkSlateBlue); ColorWheel.AddColor(Colors.Teal); ColorWheel.AddColor(Colors.Indigo); }
private static void CreateColorPalette() { ColorWheel.AddColor(Colors.HotPink); ColorWheel.AddColor(Colors.Red); ColorWheel.AddColor(Colors.Fuchsia); ColorWheel.AddColor(Colors.OrangeRed); ColorWheel.AddColor(Colors.DeepPink); ColorWheel.AddColor(Colors.MediumVioletRed); ColorWheel.AddColor(Colors.Crimson); ColorWheel.AddColor(Colors.Tomato); }
private static void CreateColorPalette() { var color1 = Colors.Red; var color2 = Colors.DarkOrange; var color3 = Colors.Gold; var color4 = Colors.Yellow; ColorWheel.AddColor(color1); ColorWheel.AddColor(color2); ColorWheel.AddColor(color3); ColorWheel.AddColor(color4); ColorWheel.AddColor(color4); ColorWheel.AddColor(color3); ColorWheel.AddColor(color2); ColorWheel.AddColor(color1); }
public void Question4() { ColorWheel.AddColor(Colors.Red); }
public void Question3() { ColorWheel.AddColor("lime"); }