import base64 # Define the HTML and CSS content for a standalone page. # Using SVG for the main visualization because it is lightweight and handles geometry perfectly. html_content = """ The Physics of Darts: Interactive Explorer

The Physics of the Dart

Visualizing Trajectory, Apex, and Impact Geometry

Release / Target Plane
18g
22g
26g

Oche Physics: Rules of Thumb

For every 2 grams of mass added to the barrel:

↑
+1.7 cm Loft: You must throw the dart higher to compensate for gravity acting over a longer flight time.
S
10% More "Feel": Increased inertial resistance provides a clearer sensory signal for release timing.
V
-4% Launch Speed: Assuming equal muscle energy, the heavier mass leaves the hand slower.
∠
+1.6° Impact Angle: The dart enters more "tail-up," which assists in stacking darts in the treble bed.
""" with open("dart_physics_webpage.html", "w") as f: f.write(html_content) print("HTML file generated successfully.")