MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / apply_alpha

Function apply_alpha

src/engine.rs:894–901  ·  view source on GitHub ↗
(color: Color, alpha_mul: f32)

Source from the content-addressed store, hash-verified

892}
893
894fn apply_alpha(color: Color, alpha_mul: f32) -> Color {
895 Color::rgba(
896 color.r,
897 color.g,
898 color.b,
899 (color.a * alpha_mul).clamp(0.0, 255.0),
900 )
901}
902
903fn compute_vertical_scrollbar_geometry(
904 bbox: BoundingBox,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected