Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以用多种颜色填充一个矩形吗?我的意思是使用canvas drawrect方法,绘制一个矩形,并用3(示例)颜色填充。可以通过绘制 3 个不同的矩形来完成,但要寻找一些优化的解决方案。