Inheritance: ModelColoring
Ejemplo n.º 1
0
        /// <summary>
        /// Erstellt ein neues Informationsobjekt für ein 3D-Modell, das einen Kantenübergang darstellt.
        /// [base="node1", Angles3.Zero, new Vector3 (1,1,1)]
        /// </summary>
        public Junction(IScreen screen, IGrid grid, Edge from, Edge to, Node node, int index)
            : base(screen)
        {
            UniqueKey = from.ToString () + to.ToString ();

            EdgeFrom = from;
            EdgeTo = to;
            Node = node;
            Grid = grid;
            Index = index;
            Position = node;

            incomplete = true;

            Coloring = new GradientColor (Color.Transparent, Color.Transparent);
            Coloring.OnColorChanged += UpdateCategory;
        }
Ejemplo n.º 2
0
 public static Texture2D CreateGradient(GraphicsDevice graphicsDevice, GradientColor coloring)
 {
     return CreateGradient (graphicsDevice: graphicsDevice, color1: coloring.Color1, color2: coloring.Color2);
 }