Explore the fascinating world of genetics with the Mendelian Inheritance Simulator! This interactive tool allows users to simulate how traits are passed down through generations using Mendelian genetics principles β all right in your browser.
- 𧬠Trait Exploration β Simulate traits like eye color, hair color, skin tone, height, and blood type.
- π§ͺ Interactive Calculators β Mix and match parental alleles to view possible offspring outcomes.
- π Visual Aids β Built-in diagrams to help visualize dominant and recessive allele combinations.
- π Dark Mode β Comfortable switching between light and dark themes.
- π§ Clean UI β Minimal, mobile-friendly layout designed for fast learning.
mendelian-inheritance-simulator/
βββ css/
β βββ style.css # Light theme styles
β βββ darkmode.css # Dark theme styles
β βββ layout.css # Page layout and grid
βββ js/
β βββ script.js # Core site functionality
β βββ darkmode.js # Dark mode toggle logic
β βββ alleles/
β βββ bloodType.js # Blood type logic
β βββ eyeColor.js # Eye color logic
β βββ hairColor.js # Hair color logic
β βββ height.js # Height inheritance
β βββ skinColor.js # Skin tone logic
βββ pages/
β βββ blood-types.html # Blood trait calculator
β βββ eye-color.html # Eye color calculator
β βββ hair-color.html # Hair color calculator
β βββ height.html # Height trait page
β βββ skin-color.html # Skin tone trait page
βββ images/
β βββ mendel-diagram.png # Educational diagram
βββ index.html # Main entry point
- Choose a Trait Page from the navigation bar.
- Set Parent Traits using the dropdowns.
- Click Calculate to view potential genetic outcomes.
- Analyze Results including trait percentages, index ranges, and diagrams.
- Expand with new traits (e.g. dimples, widowβs peak)
- More in-depth Punnett square visualizations
- Export or save simulation results
- Mobile-first layout redesign
We welcome pull requests and community contributions!
Have an idea or bug report? Open an issue or start a discussion.
This project is licensed under the MIT License.
See the LICENSE
file for full details.
If you find this simulator helpful or fun, please consider supporting development:
Reach out with questions or feedback:
βοΈ aponder.dev
Thank you for exploring genetics with us! π§¬π‘