[][src]Module valora::prelude

Exhuastive set of imports for painting.

Re-exports

pub use self::attributes::*;
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 noise;
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 "named" and "named_from_str" Cargo features.

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 source function.

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.

Gradient

A linear interpolation between colors.

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.

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 StdRng is chosen to be efficient on the current platform, to be statistically strong and unpredictable (meaning a cryptographically secure PRNG).

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

FromParallelIterator implements the creation of a collection from a ParallelIterator. By implementing FromParallelIterator for a given type, you define how it will be created from an iterator.

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

IntoParallelIterator implements the conversion to a ParallelIterator.

IntoParallelRefIterator

IntoParallelRefIterator implements the conversion to a ParallelIterator, providing shared references to the data.

IntoParallelRefMutIterator

IntoParallelRefMutIterator implements the conversion to a ParallelIterator, providing mutable references to the data.

Limited

A trait for clamping and checking if colors are within their ranges.

Mix

A trait for linear color interpolation.

MultiFractal

Trait for MultiFractal functions

NoiseFn

Base trait for noise functions.

NoiseSrc

A trait for types which are sources of noise, samplable by type P.

ParallelBridge

Conversion trait to convert an Iterator to a ParallelIterator.

ParallelExtend

ParallelExtend extends an existing collection with items from a ParallelIterator.

ParallelIterator

Parallel version of the standard iterator trait.

ParallelSlice

Parallel extensions for slices.

ParallelSliceMut

Parallel extensions for mutable slices.

ParallelString

Parallel extensions for strings.

Pixel

Represents colors that can be serialized and deserialized from raw color components.

Rng

An automatically-implemented extension trait on [RngCore] providing high-level generic methods for sampling values and other convenience methods.

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 Shade trait allows a color to be lightened or darkened.

StructOpt

A struct that is converted from command line arguments.

Type Definitions

GammaLuma

Gamma 2.2 encoded luminance.

GammaLumaa

Gamma 2.2 encoded luminance with an alpha component.

GammaSrgb

Gamma 2.2 encoded sRGB.

GammaSrgba

Gamma 2.2 encoded sRGB with an alpha component.

Hsla

Linear HSL with an alpha component. See the Hsla implementation in Alpha.

Hsva

Linear HSV with an alpha component. See the Hsva implementation in Alpha.

Hwba

Linear HWB with an alpha component. See the Hwba implementation in Alpha.

Laba

CIE L*a*b* (CIELAB) with an alpha component. See the Laba implementation in Alpha.

Lcha

CIE L*C*h° with an alpha component. See the Lcha implementation in Alpha.

LinLuma

Linear luminance.

LinLumaa

Linear luminance with an alpha component.

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.

Srgb

Nonlinear sRGB.

SrgbLuma

sRGB encoded luminance.

SrgbLumaa

sRGB encoded luminance with an alpha component.

Srgba

Nonlinear sRGB with an alpha component.

Xyza

CIE 1931 XYZ with an alpha component. See the Xyza implementation in Alpha.

Yxya

CIE 1931 Yxy (xyY) with an alpha component. See the Yxya implementation in Alpha.

Derive Macros

FromColor
IntoColor
Pixel
StructOpt

Generates the StructOpt impl.