test-kivy-app/kivy_venv/share/kivy-examples/shader/shadertree.kv

30 lines
646 B
Plaintext
Raw Normal View History

2024-09-15 12:12:16 +00:00
#:kivy 1.10.1
<ShaderWidget>:
Button:
text: 'Hello World'
pos_hint: {'center_x': .25, 'center_y': .5}
size_hint: None, None
ScatterImage
<ScatterImage@Scatter>:
size: image.size
pos_hint: {'center_x': .75, 'center_y': .5}
size_hint: None, None
Image:
id: image
source: 'tex3.jpg'
size: self.texture_size
<RootWidget>:
shader_btn: shader_btn
shader_widget: shader_widget
ShaderWidget:
id: shader_widget
Button:
id: shader_btn
text: 'Change fragment shader'
size_hint_y: None
height: 50