[−][src]Module valora::prelude
Exhuastive set of imports for painting.
Re-exports
pub use self::canvas::*; |
pub use self::forms::*; |
pub use self::paint::*; |
pub use self::path::*; |
pub use self::shaders::*; |
pub use self::transforms::*; |
pub use self::uniforms::*; |
pub use super::*; |
pub use euclid; |
pub use rayon; |
pub use palette; |
pub use rand; |
Modules
blend | Color blending and blending equations. |
chromatic_adaptation | Convert colors from one reference white point to another |
encoding | Various encoding traits, types and standards. |
float | Floating point trait |
gradient | Types for interpolation between multiple colors. |
luma | Luminance types. |
named | A collection of named color constants. Can be toggled with the |
rgb | RGB types, spaces and standards. |
utils | |
white_point | Defines the tristimulus values of the CIE Illuminants. |
Structs
Abs | Noise function that outputs the absolute value of the output value from the source function. |
Add | Noise function that outputs the sum of the two output values from two source functions. |
Alpha | An alpha component wrapper for colors. |
BasicMulti | Noise function that outputs heterogenous Multifractal noise. |
Billow | Noise function that outputs "billowy" noise. |
Blend | Noise function that outputs a weighted blend of the output values from two source functions given the output value supplied by a control function. |
Cache | Noise function that caches the last output value generated by the source function. |
Checkerboard | Noise function that outputs a checkerboard pattern. |
Clamp | Noise function that clamps the output value from the source function to a range of values. |
Constant | Noise function that outputs a constant value. |
Curve | Noise function that maps the output value from the source function onto an arbitrary function curve. |
Cylinders | Noise function that outputs concentric cylinders. |
Displace | Noise function that uses multiple source functions to displace each coordinate
of the input value before returning the output value from the |
Exponent | Noise function that maps the output value from the source function onto an exponential curve. |
Fbm | Noise function that outputs fBm (fractal Brownian motion) noise. |
Hsl | Linear HSL color space. |
Hsv | Linear HSV color space. |
Hwb | Linear HWB color space. |
HybridMulti | Noise function that outputs hybrid Multifractal noise. |
Invert | Noise function that inverts the output value from the source function. |
Lab | The CIE L*a*b* (CIELAB) color space. |
LabHue | A hue type for the CIE L*a*b* family of color spaces. |
Lch | CIE L*C*h°, a polar version of CIE L*a*b*. |
Max | Noise function that outputs the larger of the two output values from two source functions. |
Min | Noise function that outputs the smaller of the two output values from two source functions. |
Multiply | Noise function that outputs the product of the two output values from two source functions. |
OpenSimplex | Noise function that outputs 2/3/4-dimensional Open Simplex noise. |
OutOfBounds | The error type for a color conversion that converted a color into a color with invalid values. |
Perlin | Noise function that outputs 2/3/4-dimensional Perlin noise. |
Power | Noise function that raises the output value from the first source function to the power of the output value of the second source function. |
Rect | A 2d Rectangle optionally tagged with a unit. |
RgbHue | A hue type for the RGB family of color spaces. |
RidgedMulti | Noise function that outputs ridged-multifractal noise. |
RotatePoint | Noise function that rotates the input value around the origin before returning the output value from the source function. |
ScaleBias | Noise function that applies a scaling factor and a bias to the output value from the source function. |
ScalePoint | Noise function that scales the coordinates of the input value before returning the output value from the source function. |
Select | Noise function that outputs the value selected from one of two source functions chosen by the output value from a control function. |
Srgb | The sRGB color space. |
StdRng | The standard RNG. The PRNG algorithm in |
SuperSimplex | Noise function that outputs 2/3-dimensional Super Simplex noise. |
Terrace | Noise function that maps the output value from the source function onto a terrace-forming curve. |
TranslatePoint | Noise function that moves the coordinates of the input value before returning the output value from the source function. |
Turbulence | Noise function that randomly displaces the input value before returning the output value from the source function. |
Value | Noise function that outputs 2/3/4-dimensional Value noise. |
Worley | Noise function that outputs Worley noise. |
Xyz | The CIE 1931 XYZ color space. |
Yxy | The CIE 1931 Yxy (xyY) color space. |
Enums
RangeFunction | Set of distance functions that can be used in the Worley noise function. |
Constants
PI | Archimedes' constant (π) |
Traits
Blend | A trait for colors that can be blended together. |
Component | Common trait for color components. |
ComponentWise | Perform a unary or binary operation on each component of a color. |
ConvertFrom | A trait for converting one color from another. |
ConvertInto | A trait for converting a color into another. |
FromColor | FromColor provides conversion from the colors. |
FromParallelIterator |
|
GetHue | A trait for colors where a hue may be calculated. |
Hue | A trait for colors where the hue can be manipulated without conversion. |
IndexedParallelIterator | An iterator that supports "random access" to its data, meaning that you can split it at arbitrary indices and draw data from those points. |
IntoColor | IntoColor provides conversion to the colors. |
IntoParallelIterator |
|
IntoParallelRefIterator |
|
IntoParallelRefMutIterator |
|
Limited | A trait for clamping and checking if colors are within their ranges. |
Mix | A trait for linear color interpolation. |
MultiFractal | Trait for |
NoiseFn | Base trait for noise functions. |
NoiseSrc | A trait for types which are sources of noise, samplable by type |
ParallelBridge | Conversion trait to convert an |
ParallelExtend |
|
ParallelIterator | Parallel version of the standard iterator trait. |
ParallelSlice | Parallel extensions for slices. |
ParallelSliceMut | Parallel extensions for mutable slices. |
ParallelString | Parallel extensions for strings. |
Rng | An automatically-implemented extension trait on [ |
Saturate | A trait for colors where the saturation (or chroma) can be manipulated without conversion. |
Seedable | Trait for functions that require a seed before generating their values |
SeedableRng | A random number generator that can be explicitly seeded. |
Shade | The |
StructOpt | A struct that is converted from command line arguments. |
Type Definitions
Hsla | Linear HSL with an alpha component. See the |
Hsva | Linear HSV with an alpha component. See the |
Hwba | Linear HWB with an alpha component. See the |
Laba | CIE L*a*b* (CIELAB) with an alpha component. See the |
Lcha | CIE L*C*h° with an alpha component. See the |
LinSrgb | Linear sRGB. |
LinSrgba | Linear sRGB with an alpha component. |
Mat3 | A 9 element array representing a 3x3 matrix |
Point2 | A 2-dimensional point. This is a fixed sized array, so should be compatible with most linear algebra libraries. |
Point3 | A 3-dimensional point. This is a fixed sized array, so should be compatible with most linear algebra libraries. |
Point4 | A 4-dimensional point. This is a fixed sized array, so should be compatible with most linear algebra libraries. |
Xyza | CIE 1931 XYZ with an alpha component. See the |
Yxya | CIE 1931 Yxy (xyY) with an alpha component. See the |
Derive Macros
FromColor | |
IntoColor | |
Pixel | |
StructOpt | Generates the |