An interactive desktop visualizer for classical 2D (and bonus 3D) computer graphics algorithms. Every algorithm animates step by step, with the exact calculations displayed live alongside the OpenGL ...
// Initialize canvas with underscores void initCanvas() { for (int i = 0; i < ROWS; i++) { for (int j = 0; j < COLS; j++) { canvas[i][j] = '_'; } } } // Display ...