code/__DEFINES/rust_g.dm 
/proc/rustg_get_version | Gets the version of rust_g |
---|---|
rustg_dbp_generate | This proc generates a grid of perlin-like noise |
rustg_git_revparse | Returns the git hash of the given revision, ex. "HEAD". |
/proc/rustg_git_commit_date | Returns the date of the given revision using the provided format. Defaults to returning %F which is YYYY-MM-DD. |
/proc/rustg_git_commit_date_head | Returns the formatted datetime string of HEAD using the provided format. Defaults to returning %F which is YYYY-MM-DD. This is different to rustg_git_commit_date because it only needs the logs directory. |
Define Details
rustg_dbp_generate 
This proc generates a grid of perlin-like noise
Returns a single string that goes row by row, with values of 1 representing an turned on cell, and a value of 0 representing a turned off cell.
Arguments:
- seed: seed for the function
- accuracy: how close this is to the original perlin noise, as accuracy approaches infinity, the noise becomes more and more perlin-like
- stamp_size: Size of a singular stamp used by the algorithm, think of this as the same stuff as frequency in perlin noise
- world_size: size of the returned grid.
- lower_range: lower bound of values selected for. (inclusive)
- upper_range: upper bound of values selected for. (exclusive)
rustg_git_revparse 
Returns the git hash of the given revision, ex. "HEAD".