Skip to content

Instantly share code, notes, and snippets.

Gabriel Pettier tshirtman

Block or report user

Report or block tshirtman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View autoscale_label.py
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
KV = '''
#:import A kivy.animation.Animation
<AutoScaleLabel@Label>:
scale: 1
View test_car.py
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.carousel import Carousel
from kivy.uix.floatlayout import FloatLayout
Builder.load_string("""
#:import randint random.randint
<Content>
View autoscale_label.py
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
KV = '''
<AutoScaleLabel@Label>:
scale: 1
step: self.font_size // 2
interpolate: True
View blink.py
View klok.py
from datetime import datetime
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
from kivy.properties import NumericProperty
from kivy.clock import Clock
KV = '''
#:import rgba kivy.utils.rgba
View test_lines.py
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
KV = '''
#:import Animation kivy.animation.Animation
FloatLayout:
ScatterPlane:
id: plane
@tshirtman
tshirtman / test_lines.py
Created Oct 8, 2019
line demos on scatter plane
View test_lines.py
from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
KV = '''
#:import Animation kivy.animation.Animation
FloatLayout:
ScatterPlane:
id: plane
View round_slider.py
from kivy.lang import Builder
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, StringProperty
KV = '''
#:import cos math.cos
#:import sin math.sin
#:import pi math.pi
@tshirtman
tshirtman / __init__.py
Last active Nov 15, 2019
animated voronoi of mona lisa
View __init__.py
from random import random
from itertools import chain
from kivy.uix.effectwidget import AdvancedEffectBase
from kivy.animation import Animation
from kivy.clock import Clock
from kivy.properties import ListProperty
from kivy.core.window import Window
Window.size = 300, 400
View langton.py
from threading import Thread
import numpy as np
from time import sleep
from kivy.app import App
from kivy.graphics.texture import Texture
from kivy.lang import Builder
from kivy.clock import Clock
from kivy.properties import ObjectProperty
from kivy.core.window import Window
You can’t perform that action at this time.