Razaekel / noise-rs

Procedural noise generation library for Rust.
Apache License 2.0
843 stars 119 forks source link

Returning a Composite Noise Function #255

Closed half-potato closed 3 years ago

half-potato commented 3 years ago

Is there a way to return a composite noise function from a function that is essential a function builder? The arguments when compositing a noise function are references, so they they pass out of scope when the function is returned. I am not sure how to solve this without changing the library.