Skip to content

Commit

Permalink
into_linear_f32 -> color.0.linear().to_f32_array(),
Browse files Browse the repository at this point in the history
[12163](bevyengine/bevy#12163) bevy_color was created and Color handling has changed. Specifically Color::as_linear_rgba_f32 has been removed.

LinearRgba is now its own type that can be accessed via [`linear()`](https://docs.rs/bevy/0.14.0-rc.2/bevy/color/enum.Color.html#method.linear) and then converted.
  • Loading branch information
ChristopherBiscardi committed Jun 7, 2024
1 parent 31e330e commit ad615dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ pub fn extract(
visible: visible.0,
position,
texture,
color: color.0.as_linear_rgba_f32(),
color: color.0.linear().to_f32_array(),
};

let data = tilemap_query.get(tilemap_id.0).unwrap();
Expand Down

0 comments on commit ad615dc

Please sign in to comment.