This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$HEADER$ | |
float pi = 3.1415926535; | |
uniform vec2 resolution; | |
uniform float time; | |
vec2 rotate(vec2 pos, float angle, vec2 origin) { | |
pos -= origin; | |
pos *= mat2(cos(angle), sin(-angle), sin(angle), cos(angle)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$HEADER$ | |
float PI = 3.1415926535; | |
uniform vec2 resolution; | |
uniform float time; | |
vec2 rotate(vec2 pos, float angle, vec2 center){ | |
pos -= center; | |
pos *= mat2(cos(angle), sin(-angle), sin(angle), cos(angle)); | |
pos += center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
GLSLiewer | |
======= | |
GlslViewer, for KV-Viewer, is a simple tool allowing you to dynamically display | |
a GLSL file, taking its changes into account (thanks to watchdog). | |
You can use the script as follows:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$HEADER$ | |
float PI = 3.1415926535; | |
uniform vec2 resolution; | |
uniform float time; | |
vec2 rotate(vec2 pos, float angle, vec2 center){ | |
pos -= center; | |
pos *= mat2(cos(angle), sin(-angle), sin(angle), cos(angle)); | |
pos += center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
''' | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.animation import Animation | |
KV = ''' | |
FloatLayout: | |
Button: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PNG | |
x26 | |
IHDR | |
x02 | |
x02@x08x06 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
''' | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.uix.widget import Widget | |
from kivy.core.window import Window | |
from kivy.graphics import RenderContext | |
from kivy import properties as P |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
''' | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
import kivy.properties as P | |
KV = ''' | |
#:import Animation kivy.animation.Animation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
''' | |
import random | |
from uuid import uuid4 | |
from string import ascii_lowercase | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ListProperty, StringProperty |