Open
Description
Enhancement request:
What should be added/changed?
Allow SpriteList.draw_hit_boxes
to take RGB colors.
What would it help with?
This splits part of #2066 off:
- for NBA2ker on Discord as a first-time contribution
- a test of GitHub's new sub-issue feature within Arcade
Proposed implementation:
In this file at this location:
arcade/arcade/sprite_list/sprite_list.py
Lines 1134 to 1146 in 5743504
- Change the annotation for
color
:- Add an import for
RGBorA255
fromarcade.types
to this linearcade/arcade/sprite_list/sprite_list.py
Line 37 in 5743504
- Change the annotation for color to
RGBAorA255
- Add an import for
- Convert and store the
color
argument with a line likeconverted_color = Color.from_iterable(color)
- Put it before the for loop (we don't want to re-convert it each time!)
- Pass
converted_color
instead of color insprite.draw_hit_box(color, line_thickness)
Metadata
Assignees
Labels
No labels
Activity