Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iambotcoder/prism-experiment

A program that Depicts Phenomenon of Refraction of light using prism
https://github.com/iambotcoder/prism-experiment

Last synced: 6 days ago
JSON representation

A program that Depicts Phenomenon of Refraction of light using prism

Awesome Lists containing this project

README

        

---

# Prism-Experiment

https://github.com/iambotcoder/Prism-Experiment/assets/92924680/7ff852c4-0a98-4fbd-985f-594a87fd3882

---

## Table of Contents

1. [Introduction](#introduction)
2. [Features](#features)
3. [Prerequisites](#prerequisites)
4. [Installation](#installation)
5. [How to Use](#how-to-use)
6. [Contributing](#contributing)
7. [License](#license)

## Introduction

This project is an interactive simulation that showcases the phenomenon of light refraction when passing through a prism. It is implemented using the `graphics.h` library in C/C++, providing a visual representation of how light bends and separates into its constituent colors when interacting with a prism.

## Features

- Real-time simulation of light passing through a prism.
- Visualization of light bending and splitting into its constituent colors.
- Educational tool to explore the principles of refraction and dispersion of light.

## Prerequisites

Before using this project, make sure you have the following:

- A C/C++ compiler (e.g., GCC).
- The `graphics.h` library (usually provided by the Turbo C/C++ compiler).

## Installation

1. Clone this repository to your local machine:

```shell
git clone https://github.com/yourusername/Prism-Refraction.git
```

2. Ensure you have the `graphics.h` library properly installed on your system.

## How to Use

1. Open the project in your preferred C/C++ IDE.
2. Build and run the project.
3. Interact with the simulation to observe the phenomenon of light refraction through the prism.
4. Experiment with different parameters to understand how the angle and nature of light affect the refraction process.

## Contributing

Contributions are welcome! If you'd like to improve this project or add new features, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Implement your changes and thoroughly test them.
4. Submit a pull request with a detailed description of your modifications.

---

This table of contents should help users navigate your README and find the information they need. You can customize it further to suit your project's specific requirements.