【发布时间】:2016-09-05 09:28:25
【问题描述】:
请告诉我,如果在 Kivy Canvas 快速绘图,我会变得非常敏锐, 折线图,但如果画得很慢,那么我会得到平滑的线条。
...
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 中快速流畅地绘制吗?
【问题讨论】:
标签: android python canvas drawing kivy