Skip to content

Commit

Permalink
remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiving committed Jul 29, 2024
1 parent 5ab413e commit cddf8cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
11 changes: 0 additions & 11 deletions src/hct/cam16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,6 @@ impl Cam16 {
0.73,
)
};
{
extern crate std;

std::println!("{t}^0.9 * (1.64 - 0.29^{})^0.73", viewing_conditions.background_ytowhite_point_y);
std::println!("{t}^0.9 = {}", libm::powf(t as f32, 0.9));
}

// CAM16 chroma, colorfulness, chroma
let c = alpha
Expand All @@ -240,11 +234,6 @@ impl Cam16 {
} else {
libm::sqrt(j / 100.0)
};
{
extern crate std;

std::println!("{alpha} * sqrt({j} / 100)");
}
let m = c * viewing_conditions.f_lroot;
let s = 50.0
* if cfg!(feature = "std") {
Expand Down
10 changes: 0 additions & 10 deletions src/score.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ impl Score {
let mut population_sum = 0.0;

for (argb, population) in colors_to_population {
{
extern crate std;

std::println!("{argb}");
}
let hct: Hct = (*argb).into();

let hue = if cfg!(feature = "std") {
Expand Down Expand Up @@ -123,11 +118,6 @@ impl Score {
Self::WEIGHT_CHROMA_ABOVE
};
let chroma_score = (hct.get_chroma() - Self::TARGET_CHROMA) * chroma_weight;
{
extern crate std;

std::println!("{proportion_score} + ({} * {chroma_weight})", hct.get_chroma());
}
let score = proportion_score + chroma_score;

scored_hcts.push(ScoredHCT { hct, score });
Expand Down

0 comments on commit cddf8cc

Please sign in to comment.