Open gitLabor8 opened 6 years ago
I might suggest something more descriptive like empty
for the current behavior and transparent
or invisible
for the new suggested behavior.
I agree with both of you.
We currently have the following behaviour:
transparent : FillStyle -- no filling at all
invisible : LineStyle -- no line at all
I'll change this in the next version to:
empty : FillStyle -- no filling at all
none : LineStyle -- no line at all
transparent : FillStyle -- has a filling, but with opacity of 0
invisible : LineStyle -- has line, but with opacity of 0
When trying to make an invisible hitbox, I used
However, this hitbox will not trigger any events. Using a color with opacity zero however will have the desired effect:
Please add a default fill style called "invisible" that mimics this behaviour and make a clear distinction with "transparent" in your documentation.