https://github.com/pacna/marcin
A C-based Ulam Spiral generator, utilizing the SDL Library.
https://github.com/pacna/marcin
c sdl2
Last synced: about 1 year ago
JSON representation
A C-based Ulam Spiral generator, utilizing the SDL Library.
- Host: GitHub
- URL: https://github.com/pacna/marcin
- Owner: pacna
- License: mit
- Created: 2020-09-22T02:38:46.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T03:31:27.000Z (over 2 years ago)
- Last Synced: 2024-02-08T04:28:22.501Z (over 2 years ago)
- Topics: c, sdl2
- Language: C
- Homepage:
- Size: 182 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Marcin
Marcin is a C-based [Ulam Spiral](https://en.wikipedia.org/wiki/Ulam_spiral) generator, utilizing the SDL Library. This versatile project allows users to effortlessly switch between an SDL application or terminal mode for added flexibility and ease of use.
## SDL mode

## Terminal mode
```bash
* * * 61 * 59 * *
37 * * * * * 31 *
* 17 * * * 13 * *
* * 5 * 3 * 29 *
* 19 * * 2 11 * 53
41 * 7 * * * * *
* * * 23 * * * *
43 * * * 47 * * *
```
## Ubuntu Prerequisites
Before you can build and run Marcin, make sure you have the following installed on your system:
1. [Make](https://www.gnu.org/software/make/)
2. GCC (`apt install gcc`)
3. SDL library (`apt-get install libsdl2-ttf-dev`)
## Build and Run Instructions
To build and run the project as an SDL app, execute:
```bash
$ make
# or
$ make sdl
```
For running in the terminal, use:
```bash
$ make terminal
```