Draw a dragon curve based on the golden ratio. At each recursion, the first recursion step turns 32.89 degrees to the left and move 0.74 times the original distance; the
Draw a dragon curve based on the golden ratio. At each recursion, the first recursion step turns 32.89 degrees to the left and move 0.74 times the original distance; the
Cesàro (Torn Squares) Fractal is a variation of Koch Snowflake. In Cesàro Fractal the degree to turn can vary from 60 degrees to 90 degrees. Koch Snowflake line only curves
The quadratic Koch snowflake starts from a square. Draw the quadratic Koch snowflake starting with a triangle. Source Code:
The original Koch Snowflake is based on triangles. Draw quadratic Koch snowflake that breaks a line into 4 smaller pieces of 1/3 of the original length as shown. The following
Game of SIM was invented in 1969 by Gustavus Simmons. In this two player (red and blue) game, each player takes turn to connect two vertices of a hexagon with the
In previous sorting animations, we animated selection, insertion, and bubble sort. They are slow O(n^2) slow sorting algorithm. Merge Sort, a divide and conquer algorithm, is a much faster sorting
A YouTube channel MindYourDecisions posted a video about an interesting Chinese College Entrance exam question. The following is the screen of the problem posted by MindYourDecisions: Draw the graph of
Draw Barnsley’s Fern with Chaos Game. The equation for construction is provided in this Wikipedia article. Solution:
Draw graphs of functions with Python Turtle. Hint: use Turtle’s setworldcoordinates() function. The following is graphs of some selected functions:
Knowing how to find the closest point on a line segment to another point, animate randomly moving line segments and circle. Color the lines in different colors when they intersect