gradient update

This commit is contained in:
2025-04-22 17:12:02 +02:00
parent 10dc82719a
commit 36192d44cb
3 changed files with 4 additions and 3 deletions

4
Cargo.lock generated
View File

@@ -492,9 +492,9 @@ dependencies = [
[[package]] [[package]]
name = "bevy-ui-gradients" name = "bevy-ui-gradients"
version = "0.2.0" version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ba75b56bfdaefc61b0a96d84cd26b6d8d94eeea838121a649881ccc09a6dcff" checksum = "9878da2e38435ece7c892539b8d254426718031ada76169ea0dd81aca3076b6c"
dependencies = [ dependencies = [
"bevy", "bevy",
"bytemuck", "bytemuck",

View File

@@ -34,7 +34,7 @@ bevy-inspector-egui = { version = "0.30", optional = true }
bevy_polyline = "0.11.0" bevy_polyline = "0.11.0"
bevy-steamworks = "0.13.0" bevy-steamworks = "0.13.0"
bevy_ballistic = "0.1.0" bevy_ballistic = "0.1.0"
bevy-ui-gradients = "0.2.0" bevy-ui-gradients = "0.3.0"
bevy_debug_log = "0.5.0" bevy_debug_log = "0.5.0"
bevy_common_assets = { version = "0.12.0", features = ["ron"] } bevy_common_assets = { version = "0.12.0", features = ["ron"] }
serde = { version = "1.0.219", features = ["derive"] } serde = { version = "1.0.219", features = ["derive"] }

View File

@@ -109,6 +109,7 @@ fn spawn_head_ui(
}, },
BorderRadius::all(Val::Px(9999.)), BorderRadius::all(Val::Px(9999.)),
BackgroundGradient::from(ConicGradient { BackgroundGradient::from(ConicGradient {
start: 0.,
stops: vec![ stops: vec![
AngularColorStop::new(Color::linear_rgba(0., 0., 0., 0.9), 0.), AngularColorStop::new(Color::linear_rgba(0., 0., 0., 0.9), 0.),
AngularColorStop::new(Color::linear_rgba(0., 0., 0., 0.9), PI * 1.5), AngularColorStop::new(Color::linear_rgba(0., 0., 0., 0.9), PI * 1.5),