https://github.com/mintlu8/ramp_gen
Float curve code generator.
https://github.com/mintlu8/ramp_gen
Last synced: 5 months ago
JSON representation
Float curve code generator.
- Host: GitHub
- URL: https://github.com/mintlu8/ramp_gen
- Owner: mintlu8
- License: apache-2.0
- Created: 2024-12-13T09:08:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-13T21:46:55.000Z (over 1 year ago)
- Last Synced: 2025-08-29T06:18:17.060Z (10 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# ramp_gen
Generate functions for rust and wgsl similar to Blender's "Color Ramp" node.
## Example
```rust
|x: f32| ramp!(ease [0.0, 5.0], [0.5, 0.0], [7.0, 5.0])
```
## License
Licensed under either of
* Apache License, Version 2.0 (LICENSE-APACHE(LICENSE-APACHE) or )
* MIT license (LICENSE-MIT(LICENSE-MIT) or )
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.