Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad
N/A N/A 
This is an example of creating your own effect by writing a glsl string.
 kivy.base runTouchApp kivy.lang Builder kivy.uix.effectwidget EffectWidget EffectBase N/A effect_string 
vec4 effect(vec4 color, sampler2D texture, vec2 tex_coords, vec2 coords)
{
    // Note that time is a uniform variable that is automatically
    // provided to all effects.
    float red = color.x * abs(sin(time*2.0));
    float green = color.y;  // No change
    float blue = color.z * (1.0 - abs(sin(time*2.0)));
    return vec4(red, green, blue, color.w);
}
 DemoEffect N/A EffectWidget N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A self effect_reference N/A EffectBase glsl effect_string N/A N/A N/A N/A super DemoEffect self __init__ args kwargs N/A N/A N/A widget N/A N/A Builder load_string 
DemoEffect:
    effects: [self.effect_reference] if checkbox.active else []
    orientation: 'vertical'
    Button:
        text: 'Some text so you can see what happens.'
    BoxLayout:
        size_hint_y: None
        height: dp(50)
        Label:
            text: 'Enable effect?'
        CheckBox:
            id: checkbox
            active: True
 N/A N/A runTouchApp widget