Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anderslanglands/colorspace-rs
/ functions
Functions
229 in github.com/anderslanglands/colorspace-rs
⨍
Functions
229
◇
Types & classes
26
Function
bt2020
(x: RGBf<T>)
src/color_space_rgb.rs:86
Function
bt709
(x: RGBf<T>)
src/color_space_rgb.rs:59
Method
cast_slice
(slice: &[T])
src/rgb.rs:49
Function
checker_aces0
()
src/color_space_rgb.rs:987
Function
checker_acescg
()
src/color_space_rgb.rs:1026
Function
checker_arri
()
src/color_space_rgb.rs:978
Function
checker_bt2020
()
src/color_space_rgb.rs:1017
Function
checker_bt709
()
src/color_space_rgb.rs:969
Function
checker_dcip3
()
src/color_space_rgb.rs:1035
Function
checker_srgb
()
src/color_space_rgb.rs:946
Function
checker_srgb_to_aces
()
src/color_space_rgb.rs:1044
Function
checker_u8_srgb
()
src/color_space_rgb.rs:955
Function
checker_xyz
()
src/vspd.rs:1173
Function
clamprgb
Clamp `c` such that each component is at least `a` and at most `b`
src/rgb.rs:475
Method
coeff_a
(r: &Vec<f32>, i: usize)
src/interpolation.rs:35
Method
coeff_c0
()
src/interpolation.rs:23
Method
coeff_c1
()
src/interpolation.rs:26
Method
coeff_c2
()
src/interpolation.rs:29
Method
coeff_c3
()
src/interpolation.rs:32
Method
constant
Create a new [VSPD] of the given [SpdShape] with all [Sample]s initialized to the given `value`. # Panics If the `samples` vector has less than 2 samp
src/vspd.rs:232
Method
constant
Create a new SPD where all samples have the same value
src/spd.rs:38
Function
criterion_benchmark
(c: &mut Criterion)
benches/spd_to_xyz.rs:30
Function
criterion_benchmark
(c: &mut Criterion)
benches/xyz_to_rgb.rs:24
Function
delta_E_1976
(c1: Lab<T>, c2: Lab<T>)
src/lab.rs:131
Method
determinant
Return the determinant of this matrix
src/math.rs:134
Method
div
(self, rhs: f64)
src/vspd.rs:900
Method
div
(self, rhs: XYZ<T>)
src/xyz.rs:236
Method
div
(self, rhs: T)
src/math.rs:404
Method
div
(self, rhs: RGBf<T>)
src/rgb.rs:288
Method
eq
(&self, rhs: &VSPD)
src/vspd.rs:207
Method
eq
(&self, other: &SPD)
src/spd.rs:68
Function
extrapolate
()
src/vspd.rs:993
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/vspd.rs:45
Method
fmt
(&self, f: &mut fmt::Formatter)
src/xyz.rs:136
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/spd.rs:208
Method
fmt
(&self, f: &mut fmt::Formatter)
src/rgb.rs:216
Method
from
(c: XYY<T>)
src/xyz.rs:73
Method
from
(m: M3f64)
src/math.rs:292
Method
from
(c: XYZ<T>)
src/chromaticity.rs:55
Method
from
(c: RGBf64)
src/rgb.rs:571
Method
from_chromaticity
(c: XYY<T>)
src/xyz.rs:54
Method
from_iter
(iter: I)
src/vspd.rs:865
Method
from_scalar
(a: T)
src/xyz.rs:29
Method
from_scalar
(s: T)
src/rgb.rs:29
Method
from_values
Create a new [VSPD] of the given [SpdShape] with the values of each [Sample] given by `values` # Panics If the `samples` vector has less than 2 sample
src/vspd.rs:249
Method
from_xy
(x: T, y: T)
src/xyz.rs:62
Method
from_xyz
Convert the given XYZ tristimulus value to a chromaticity XYY value
src/chromaticity.rs:41
Method
gj_inverse
Gauss-Jordan matrix inversion
src/math.rs:141
Method
index
(&self, i: usize)
src/xyz.rs:114
Method
index
(&self, index: usize)
src/math.rs:314
Method
index
(&self, i: usize)
src/rgb.rs:140
Method
index_mut
(&mut self, i: usize)
src/xyz.rs:125
Method
index_mut
(&mut self, index: usize)
src/math.rs:323
Method
index_mut
(&mut self, i: usize)
src/rgb.rs:154
Function
interpolate
()
src/vspd.rs:955
Method
is_zero
(&self)
src/xyz.rs:83
Method
is_zero
(&self)
src/rgb.rs:94
Function
lagrange_coeff
()
src/vspd.rs:1128
Function
lerp
Linearly interpolate from `a` to `b` by `t`
src/math.rs:23
Function
linear
(x: RGBf<T>)
src/color_space_rgb.rs:106
Function
macro_initialization
()
src/vspd.rs:934
Function
main
This example shows how to convert between color spaces step-by-step by building and using the necessary matrices directly
examples/convert_with_matrices.rs:5
Function
main
()
examples/hero_wavelength_sampling.rs:10
Function
main
()
examples/convert.rs:3
Method
make_identity
Return a new identity matrix
src/math.rs:110
Method
max_value
()
src/xyz.rs:102
Method
max_value
()
src/rgb.rs:125
Method
min_value
()
src/xyz.rs:95
Method
min_value
()
src/rgb.rs:118
Method
mul
(self, rhs: f64)
src/vspd.rs:916
Method
mul
(self, rhs: XYZ<T>)
src/xyz.rs:223
Method
mul
(self, rhs: Self)
src/math.rs:332
Method
mul
(self, rhs: &SPD)
src/spd.rs:194
Method
mul
(self, rhs: RGBf<T>)
src/rgb.rs:272
Method
neg
(self)
src/xyz.rs:249
Method
neg
(self)
src/math.rs:422
Method
neg
(self)
src/rgb.rs:304
Method
new
(start: T, end: T, interval: T)
src/vspd.rs:57
Method
new
(x: T, y: T, z: T)
src/xyz.rs:25
Method
new
(vspd: &VSPD)
src/interpolation.rs:95
Method
new
( red: XYY<T>, green: XYY<T>, blue: XYY<T>, white: XYY<T>, oetf: Trans
src/color_space_rgb.rs:326
Method
new
Return a new matrix initialized with the `values` passed
src/math.rs:119
Method
new
Create a new SPD with the given values
src/spd.rs:33
Method
new
(x: T, y: T, Y: T)
src/chromaticity.rs:35
Method
new
(r: T, g: T, b: T)
src/rgb.rs:25
Method
new_with_specified_matrices
( red: XYY<T>, green: XYY<T>, blue: XYY<T>, white: XYY<T>, xf_xyz_to_r
src/color_space_rgb.rs:379
Method
next
(&mut self)
src/vspd.rs:103
Function
normalize
Returns a colour whose values are a normalized version of `c`, such that the largest component in the return value will be 1.0
src/rgb.rs:467
Method
normalized
Returns a unit-luminance version of this color.
src/xyz.rs:34
Method
normalized_y
(&self)
src/xyz.rs:66
Method
one
()
src/xyz.rs:89
Method
one
()
src/rgb.rs:106
Function
pow
(x: T, y: T)
src/math.rs:78
Function
powi
(x: T, i: i32)
src/math.rs:88
Function
rgbaf16
(r: f16, g: f16, b: f16, a: f16)
src/rgb.rs:561
Function
rgbaf32
(r: f32, g: f32, b: f32, a: f32)
src/rgb.rs:566
Function
rgbf16
(r: f16, g: f16, b: f16)
src/rgb.rs:555
Function
rgbf64
(r: f64, g: f64, b: f64)
src/rgb.rs:80
Function
rgbu16
(r: u16, g: u16, b: u16)
src/rgb.rs:549
Function
rgbu8
(r: u8, g: u8, b: u8)
src/rgb.rs:544
← previous
next →
101–200 of 229, ranked by callers