Skip to content

Commit

Permalink
l-alpha-beta small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Aug 4, 2024
1 parent 657b51e commit 13396db
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ workspace = { members = ["src/app"] }

[package]
name = "colorutils-rs"
version = "0.5.8"
version = "0.5.9"
edition = "2021"
description = "High performance utilities for color format handling and conversion."
readme = "README.md"
Expand Down
6 changes: 3 additions & 3 deletions src/app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pub const fn shuffle(z: u32, y: u32, x: u32, w: u32) -> i32 {
}

fn main() {
let r = 1;
let g = 75;
let b = 1;
let r = 65;
let g = 65;
let b = 65;
let rgb = Rgb::<u8>::new(r, g, b);
let xyb = LAlphaBeta::from_rgb(rgb, TransferFunction::Srgb);
println!("XYB {:?}", xyb);
Expand Down
2 changes: 1 addition & 1 deletion src/lalphabeta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* // Use of this source code is governed by a BSD-style
* // license that can be found in the LICENSE file.
*/
use crate::{Rgb, TransferFunction, Xyz, SRGB_TO_XYZ_D65, XYZ_TO_SRGB_D65};
use crate::{Rgb, SRGB_TO_XYZ_D65, TransferFunction, Xyz, XYZ_TO_SRGB_D65};

/// Represents l-alpha-beta (lαβ) colorspace
#[derive(Debug, Copy, Clone, PartialOrd, PartialEq)]
Expand Down

0 comments on commit 13396db

Please sign in to comment.