請告訴我,如果在Kivy帆布快速繪製,我得到非常尖銳, 多段線圖,但如果繪製非常慢,然後我得到流暢的線條。Kivy帆布 - 快速繪製 - 多段線
...
def on_touch_down(self, touch):
if Widget.on_touch_down(self, touch):
return True
print(touch.x, touch.y)
with self.canvas.before:
Color(*get_color_from_hex('#0080FF80'))
Line(circle=(touch.x, touch.y, 2), width=2)
touch.ud['current_line'] = Line(points=(touch.x, touch.y), width=2)
def on_touch_move(self, touch):
if 'current_line' in touch.ud:
touch.ud['current_line'].points += (touch.x, touch.y)
...
這是我的例子:
誰知道我怎麼能修復它? 我可以在Kivy中快速平滑嗎?
當然我測試了許多不同的設備,也許我是有點誇張,但實物圖是不是越多越好 - [另一PIC鏈接](HTTP://我。 stack.imgur.com/n3jqw.png) –