Write a program that finds the closest point of a line segment to another point. Randomly pick a point and color it in blue. Also, randomly generate several lines. Find
Write a program that finds the closest point of a line segment to another point. Randomly pick a point and color it in blue. Also, randomly generate several lines. Find
Generate a random polygon with many sides and randomly drop point on the screen. If the point falls inside the polygon color it in red, otherwise color it in blue.
Continue from a previous project with one moving line, and knowing how to detect if two lines intersect, animate two randomly moving lines. When these two lines intersect, color the
Draw many lines with Python Turtle. If a line intersect with another line draw the line in red color, otherwise draw it in black. Knowing the orientation of triangles may
Given three ordered points (red, green, blue) of a triangle, the orientation of the triangle is clockwise if a right turn happens from the first line (red to green) to
Generate random points and draw the convex hull of the points. You can use Gift Wrapping algorithm. The animation demonstrates the Gift Wrapping algorithm.