How to fill polygon with different color than boundary?

前端 未结 4 2303
暗喜
暗喜 2021-02-20 09:11

I need to draw a polygon that has the boundary lines with one color and fill the interior with another color. Is there an easy way to do this ? I currently draw two polygon

4条回答
  •  野性不改
    2021-02-20 09:58

    There are 2 ways to do this:

    • the one you do at the moment (2 polygons, one a little larger than the other or drawn after)

    • texture

    to my knowledge there are no other possibilities and from a performance standpoint these 2 possibilities, especially the first one as long as you only color-fill, are extremely fast.

提交回复
热议问题