https://github.com/codeplea/celtic_knots
Screensaver to generate and animate complex Celtic knots with OpenGL.
https://github.com/codeplea/celtic_knots
Last synced: about 2 months ago
JSON representation
Screensaver to generate and animate complex Celtic knots with OpenGL.
- Host: GitHub
- URL: https://github.com/codeplea/celtic_knots
- Owner: codeplea
- License: gpl-3.0
- Created: 2016-02-09T23:59:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-03T18:18:53.000Z (about 8 years ago)
- Last Synced: 2025-04-22T11:18:02.349Z (2 months ago)
- Language: C++
- Homepage: https://codeplea.com/
- Size: 186 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Celtic Knots
Celtic Knots is a Windows screen saver I wrote in C++ some number of years ago.
The code hasn't been cleaned up at all, but I'm releasing it in the hope that
someone may find it interesting.The code is released open-source under the GNU General Public License version 3.
The screen saver generates and animates random Celtic knots. These knots have
the property that each ribbon alternates between passing over and under each
ribbon it crosses. No ribbon will cross over twice or under twice in a row.
This is enforced using a novel grid-based knot generating algorithm.The curves are calculated using [Cubic Hermite
splines](http://codeplea.com/introduction-to-splines). The file *spline.hpp* is
self-contained and may be of use to someone needing spline calculations. The
finial knot geometry is rendered using OpenGL.# Demo
