Re-exportsΒ§
pub use plane::Plane;pub use projection::Projection;pub use dir::*;
ModulesΒ§
- cardinal_
directions π - color π
- dir
- div
- find_
dist - grid_
hasher π - lines
- macros π
- option π
- plane
- projection
- ron_
recover π - spatial_
grid π - Contains
SpatialGridwhich is useful for accelerating queries of nearby entities
StructsΒ§
- DISPLAY_
VERSION - Dir2
Iter - An iterator over the variants of Dir2
- Dir3
Iter - An iterator over the variants of Dir3
- GIT_
HASH - The first 32 bits of the git hash. We donβt need more, the non-collision guarantee isnβt all that important for our purposes.
- GIT_TAG
- GIT_
TIMESTAMP - Grid
Hasher - Spatial
Grid - VELOREN_
GIT_ πVERSION
EnumsΒ§
ConstantsΒ§
FunctionsΒ§
- append_
date π - chromify_
srgb - Preserves the luma of one color while changing its chromaticity to match the other
- either_
with - hsv_
to_ rgb - Convert hsv to rgb. Expects h [0, 360], s [0, 1], v [0, 1]
- linear_
to_ srgb - linear_
to_ srgba - make_
display_ version - rgb_
to_ hsv - Convert rgb to hsv. Expects rgb to be [0, 1].
- rgb_
to_ xyy - Convert linear rgb to CIExyY
- rgb_
to_ xyz - Convert linear rgb to CIEXYZ
- ron_
from_ path_ recoverable - Load settings from ron in a recoverable manner. Requires
#[serde(default)]. - saturate_
srgb - srgb_
to_ linear - directly converted from βvec3 srgb_to_linear(vec3 srgb)β function in βsrgb.glslβ
- srgb_
to_ linear_ fast - This function is optimized for speed over perfect accuracy
- srgba_
to_ linear - xyy_
to_ rgb - Convert to CIExyY to linear rgb