| img | updated readme | |
| layouts | feat: added settings components that don't quite work yet | |
| src | fix: made font larger | |
| .gitignore | first commit | |
| LICENSE | first commit | |
| makefile | fix: makefile run target now depends on release target | |
| README.md | fix: update readme | |
Collatz Visualizer
A visualizer for the Collatz Conjecture made in C++ with raylib.
This is just a visualizer and calculator and not a proof engine.
It's also something I made just for fun and it really isn't optimized but that also wasn't my goal. It shouldn't have huge CPU usage though.
There are some features that would be nice to have but for now I'm quite happy with it. If i get around to it I will implement these (in no particular order):
- zooming
- better rendering (so that the text is actually readable even when there are a lot of dots)
- scrolling
- good command line parsing
About
The program first creates a map and from there builds an N-ary tree. For drawing it relies on said tree and traverses it from 1 to the end.
There is also a (simple) check for the case that numbers don't converge to 1 should that ever be the case.
Have fun reading the code or using the program!
Usage
In order to compile this project you need raylib and the clang compiler. There is a makefile for building so if you have raylib and clang you can just run make and it should work:
make
You can start a demo with:
make run
License
See the license file.
Warranty
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.