Triangulo de Sierpinski
Triangulo de Sierpinski
Applying the following algorithm yields the Sierpinski triangle, a self-similar fractal.
1. Take three vertices of a triangle.
2. Choose an arbitrary position inside the triangle for a wandering point.
3. Choose a random vertex and move the wandering point halfway toward it.
4. Repeat step 3.
La aplicación del siguiente algoritmo produce el triángulo de Sierpinski, un fractal de la misma figura.
1. Tomar tres vértices de un triángulo.
2. Se debe elegir una posición arbitraria dentro del triángulo para un punto errante.
3. Se debe escoger un vértice de manera aleatoria y mover el punto errante hacia la mitad del mismo.
4. Repetir el paso 3.