A small Computer Graphics demo project with a web-based graph plotter and a C++ plotting utility.
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.
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).
The easiest way to run the demo is to open index.html in a browser:
- Double-click
index.htmlin the project folder, or - 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.htmlIf 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.exeUsing MSVC (Developer Command Prompt / Visual Studio):
cl /EHsc graph_plotter.cppNote: The C++ file may be an example or utility — inspect the source to ensure required libraries or dependencies are available.
This project does not include a formal license file. Add a LICENSE if you want to specify reuse permissions.
Small fixes and improvements welcome. If you add features, update this README with build/run instructions and any new dependencies.
- Add a
LICENSEif you want to open-source the project. - Add a short description in
index.htmlor 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