Skip to content

roshann635/Graph_Plotter-using-graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CG Project

A small Computer Graphics demo project with a web-based graph plotter and a C++ plotting utility.

What is this

This repository includes a simple graph plotting demo implemented for the web (HTML/JS/CSS) and a C++ source file for a separate plotter utility.

Files

  • index.html — The web demo entry page.
  • script.js — JavaScript for the web graph plotter.
  • styles.css — Styles for the web demo.
  • graph_plotter.cpp — C++ source (small utility or example; may need compilation).

How to run (web demo)

The easiest way to run the demo is to open index.html in a browser:

  1. Double-click index.html in the project folder, or
  2. Serve the folder and open http://localhost:PORT/index.html (if you prefer a local server).

On Windows PowerShell you can run a quick static server with Python (if installed):

# From project root
python -m http.server 8000
# Then open http://localhost:8000/index.html

How to build graph_plotter.cpp (optional)

If you want to compile the C++ source (requires a C++ compiler, e.g., g++/MinGW or MSVC):

Using MinGW (g++):

g++ -std=c++17 -O2 -o graph_plotter.exe graph_plotter.cpp
.\graph_plotter.exe

Using MSVC (Developer Command Prompt / Visual Studio):

cl /EHsc graph_plotter.cpp

Note: The C++ file may be an example or utility — inspect the source to ensure required libraries or dependencies are available.

License

This project does not include a formal license file. Add a LICENSE if you want to specify reuse permissions.

Contributing

Small fixes and improvements welcome. If you add features, update this README with build/run instructions and any new dependencies.

Next steps

  • Add a LICENSE if you want to open-source the project.
  • Add a short description in index.html or on the page explaining how to use the web demo controls.
  • Add tests or a CI step if you start adding more code.

Generated on 2025-11-07

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors