https://github.com/jaxvanyang/rsap
Inspired by Scratchapixel.
https://github.com/jaxvanyang/rsap
cg sap scratchapixel
Last synced: 8 months ago
JSON representation
Inspired by Scratchapixel.
- Host: GitHub
- URL: https://github.com/jaxvanyang/rsap
- Owner: jaxvanyang
- Created: 2025-01-01T09:25:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-25T23:03:15.000Z (11 months ago)
- Last Synced: 2025-06-26T00:18:58.669Z (11 months ago)
- Topics: cg, sap, scratchapixel
- Language: Rust
- Homepage: https://www.scratchapixel.com
- Size: 185 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust Scratch A Pixel
This is a project for learning CG in Rust, mostly inspired by [Scratchapixel][sap].
## Applications
To run an app:
```bash
just run
```
### Plot

A utility to plot simple functions.
| Support expressions | |
|:-|:-|
| Number | `1`, `2.0`, ... |
| Factorial | `0!`, `10!`, ... |
| Variable | `x` |
| Constant | `e`, `pi` |
| Operator | `+`, `-`, `*`, `/`, `**` |
| Function | `sin`, `cos`, `sec`, `csc`, `tan`, `cot`, `arcsin`, `arccos`, `arctan`, `arccot`, `sqrt`, `log`, `ln` |
## References
- [PPM Format Specification](https://netpbm.sourceforge.net/doc/ppm.html)
- [BNF Notation: Dive Deeper Into Python's Grammar – Real Python](https://realpython.com/python-bnf-notation)
- [My First Language Frontend with LLVM Tutorial](https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index.html)
[sap]: https://www.scratchapixel.com