Ogeon
palette
BlogDocs

Add `Rgb::from_hex` and implement parsing for `u16`, `u32`, `f32`, `f64`

#424Merged
Comparing
more_hex
(
d626898
) with
master
(
8e22189
)
0%
Improvements
0
Regressions
0
Untouched
47
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

xyz to linsrgb - wide f32x8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::xyz to linsrgb - wide f32x8
+2%
1.9 µs
1.9 µs
lms to linsrgb - Matrix3
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::lms to linsrgb - Matrix3
+1%
2.2 µs
2.2 µs
linsrgb_f64 to rgb_u8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linsrgb_f64 to rgb_u8
+1%
4.7 µs
4.7 µs
rgb to hsl - wide f32x8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb to hsl - wide f32x8
+1%
3.5 µs
3.4 µs
linsrgb_f32 to rgb_u8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linsrgb_f32 to rgb_u8
+1%
7.5 µs
7.4 µs
xyz to linsrgb - Matrix3
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::xyz to linsrgb - Matrix3
0%
5.9 µs
5.9 µs
hsl to hsv
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsl to hsv
0%
6.4 µs
6.4 µs
hsv to hsl
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsv to hsl
0%
7.1 µs
7 µs
lab to lch
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::lab to lch
0%
10.9 µs
10.9 µs
linsrgb to rgb - wide f32x8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linsrgb to rgb - wide f32x8
0%
11 µs
10.9 µs
hsl to rgb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsl to rgb
0%
11 µs
11 µs
linear hsv to hsv
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linear hsv to hsv
0%
19.3 µs
19.3 µs
Lch delta E via Lab
benchmarks/benches/cie.rs::benches::cie_delta_e::Cie delta E::Lch delta E via Lab
0%
584.9 µs
584.9 µs
Lab improved delta E
benchmarks/benches/cie.rs::benches::cie_delta_e::Cie delta E::Lab improved delta E
0%
593.6 µs
593.6 µs
Lch CIEDE2000
benchmarks/benches/cie.rs::benches::cie_delta_e::Cie delta E::Lch CIEDE2000
0%
5.7 ms
5.7 ms
lab to xyz
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::lab to xyz
0%
3.5 µs
3.5 µs
lch to lab
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::lch to lab
0%
5.2 µs
5.2 µs
linsrgb to xyz - Matrix3
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::linsrgb to xyz - Matrix3
0%
5.9 µs
5.9 µs
linsrgb to xyz - wide f32x8
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::linsrgb to xyz - wide f32x8
0%
1.9 µs
1.9 µs
yxy to xyz
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::yxy to xyz
0%
6.3 µs
6.3 µs
Lab CIEDE2000
benchmarks/benches/cie.rs::benches::cie_delta_e::Cie delta E::Lab CIEDE2000
0%
5.6 ms
5.6 ms
Lab delta E
benchmarks/benches/cie.rs::benches::cie_delta_e::Cie delta E::Lab delta E
0%
126.7 µs
126.7 µs
Lch delta E
benchmarks/benches/cie.rs::benches::cie_delta_e::Cie delta E::Lch delta E
0%
585.1 µs
585.1 µs
hsv to hwb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsv to hwb
0%
5.5 µs
5.5 µs
linear hwb to hwb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linear hwb to hwb
0%
20.1 µs
20.1 µs
linsrgb to rgb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linsrgb to rgb
0%
16.2 µs
16.2 µs
rgb to hsl
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb to hsl
0%
7 µs
7 µs
rgb to hsv
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb to hsv
0%
6.5 µs
6.5 µs
rgb to hsv - wide f32x8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb to hsv - wide f32x8
0%
3.1 µs
3.1 µs
rgb to linsrgb - wide f32x8
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb to linsrgb - wide f32x8
0%
10.9 µs
10.9 µs
rgb_u8 to linsrgb_f32
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb_u8 to linsrgb_f32
0%
1.9 µs
1.9 µs
rgb_u8 to linsrgb_f64
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb_u8 to linsrgb_f64
0%
2.3 µs
2.3 µs
xyz to lab
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::xyz to lab
0%
25.5 µs
25.5 µs
rgb to linsrgb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::rgb to linsrgb
0%
16.9 µs
16.9 µs
hsl to linear hsl
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsl to linear hsl
0%
24.5 µs
24.6 µs
hwb to linear hwb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hwb to linear hwb
0%
24.4 µs
24.5 µs
hsv to linear hsv
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsv to linear hsv
0%
23.6 µs
23.6 µs
hsv to rgb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hsv to rgb
0%
10.5 µs
10.5 µs
linear hsl to hsl
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::linear hsl to hsl
0%
20.1 µs
20.2 µs
hwb to hsv
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::hwb to hsv
0%
6.1 µs
6.1 µs
xyz to linsrgb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::xyz to linsrgb
0%
6 µs
6.1 µs
xyz to yxy
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::xyz to yxy
0%
5.9 µs
5.9 µs
lms to linsrgb
benchmarks/benches/rgb.rs::benches::rgb_conversion::Rgb family::lms to linsrgb
-1%
3.2 µs
3.2 µs
linsrgb to xyz
benchmarks/benches/cie.rs::benches::cie_conversion::Cie family::linsrgb to xyz
-1%
5.9 µs
6 µs
matrix_inverse
benchmarks/benches/matrix.rs::benches::matrix::Matrix functions::matrix_inverse
-8%
352.5 ns
381.7 ns
multiply_3x3
benchmarks/benches/matrix.rs::benches::matrix::Matrix functions::multiply_3x3
-9%
287.5 ns
316.7 ns
rgb_to_xyz_matrix
benchmarks/benches/matrix.rs::benches::matrix::Matrix functions::rgb_to_xyz_matrix
N/A
0 s
0 s

Commits

Click on a commit to change the comparison range
Base
master
8e22189
0%
Add `Rgb::from_hex` and implement parsing for `u16`, `u32`, `f32`, `f64`
d626898
11 days ago
by Ogeon
Home Terms PrivacyDocs