The Black Hole Simulator is an interactive application designed to visualize and explore the physics of black holes. Users can manipulate various parameters to observe the effects of gravitational lensing, accretion disks, and other relativistic phenomena in real-time. To use the app, users can adjust sliders to control the mass of the black hole, the intensity of the accretion disk, the degree of gravitational lensing, and the density of the starfield. The simulation allows users to move the black hole around the canvas by dragging the mouse when the simulation is paused. Additionally, users can start or pause the simulation, reset the parameters to their default values, and toggle the visibility of information and control panels. The app is built using TypeScript and React, leveraging the Framer Motion library for animations and transitions. It utilizes a canvas element for rendering the simulation, which is dynamically resized based on the window dimensions. The application also includes a custom hook to manage window size changes. Key features of the Black Hole Simulator include: - Interactive control panel for adjusting simulation parameters. - Real-time rendering of black hole effects, including gravitational lensing and accretion disks. - Responsive design that adapts to different screen sizes. - Information panel that provides educational content about black holes and their properties. - Animation and visual effects that enhance the user experience. Overall, the Black Hole Simulator serves as an educational tool for users interested in astrophysics, providing a hands-on way to learn about the complex behaviors of black holes in a visually engaging manner.
No tags
Last Updated May 7, 2025