mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Use Rust edition 2024 (#7280)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::{linear_f32_from_linear_u8, linear_u8_from_linear_f32, Color32, Hsva, HsvaGamma, Rgba};
|
||||
use super::{Color32, Hsva, HsvaGamma, Rgba, linear_f32_from_linear_u8, linear_u8_from_linear_f32};
|
||||
use cint::{Alpha, ColorInterop, EncodedSrgb, Hsv, LinearSrgb, PremultipliedAlpha};
|
||||
|
||||
// ---- Color32 ----
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::{fast_round, linear_f32_from_linear_u8, Rgba};
|
||||
use crate::{Rgba, fast_round, linear_f32_from_linear_u8};
|
||||
|
||||
/// This format is used for space-efficient color representation (32 bits).
|
||||
///
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
gamma_u8_from_linear_f32, linear_f32_from_gamma_u8, linear_u8_from_linear_f32, Color32, Rgba,
|
||||
Color32, Rgba, gamma_u8_from_linear_f32, linear_f32_from_gamma_u8, linear_u8_from_linear_f32,
|
||||
};
|
||||
|
||||
/// Hue, saturation, value, alpha. All in the range [0, 1].
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::{gamma_from_linear, linear_from_gamma, Color32, Hsva, Rgba};
|
||||
use crate::{Color32, Hsva, Rgba, gamma_from_linear, linear_from_gamma};
|
||||
|
||||
/// Like Hsva but with the `v` value (brightness) being gamma corrected
|
||||
/// so that it is somewhat perceptually even.
|
||||
|
||||
Reference in New Issue
Block a user