test-kivy-app/kivy_venv/share/kivy-examples/android/compass/compass.kv

26 lines
456 B
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
#:kivy 1.7.0
FloatLayout:
canvas:
Color:
rgb: .98, .98, .98
Rectangle:
size: self.size
Image:
source: 'rose.png'
Image:
source: 'needle.png'
canvas.before:
PushMatrix
Rotate:
angle: app.needle_angle
axis: 0, 0, 1
origin: self.center
canvas.after:
PopMatrix