rapier icon indicating copy to clipboard operation
rapier copied to clipboard

Document whether debug colors are HSLA or something else

Open martin-t opened this issue 2 years ago • 2 comments

The doc comment on DebugColor says that it uses HSLA but DebugRenderBackend::draw_line takes [f32; 4] so it's not clear from the docs what format the color is meant to be. If rapier uses HSLA everywhere, it should probably use DebugColor consistently everywhere.

There's a couple more places in code where i saw [f32; 4] (such as sleep_color_multiplier).

martin-t avatar Jul 23 '22 00:07 martin-t

Yes, they are all HSLA by default. I agree that we should use DebugColor everywhere.

sebcrozet avatar Jul 24 '22 15:07 sebcrozet

these docs currently use them as rgba: https://rapier.rs/docs/user_guides/javascript/getting_started_js/

MaxBittker avatar Mar 19 '24 19:03 MaxBittker