Skip to content

Instantly share code, notes, and snippets.

@kived
Created October 1, 2014 19:47
Show Gist options
  • Save kived/d32f37a70c7e05423ec0 to your computer and use it in GitHub Desktop.
Save kived/d32f37a70c7e05423ec0 to your computer and use it in GitHub Desktop.
Kivy: Line(circle) misaligned
import kivy
kivy.require('1.8.1')
from kivy.app import App
from kivy.lang import Builder
root = Builder.load_string('''
Widget:
canvas:
Color:
rgba: 0, 0, 1, 1
Line:
points: 300, 100, 300, 500
Color:
rgba: 1, 1, 1, 1
Line:
circle: 300, 300, 100, 2, 182
''')
class TestApp(App):
def build(self):
return root
if __name__ == '__main__':
TestApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment