Skip to content

Instantly share code, notes, and snippets.

View Poikilos's full-sized avatar

Jacob Gustafson Poikilos

View GitHub Profile
@Poikilos
Poikilos / cpuradialgradient.py
Last active May 16, 2023 19:02 — forked from tito/cpuradialgradient.py
radial gradient texture for kivy - Poikilos' Python 3 version of tito's fork
from kivy.graphics.texture import Texture
from kivy.graphics import Rectangle, Color
from kivy.uix.widget import Widget
from kivy.graphics.opengl import glFinish
from kivy.app import App
from time import time
class RadialGradient(App):
def build(self):
@Poikilos
Poikilos / radial_gradient.py
Last active May 16, 2023 18:59 — forked from tshirtman/radial_gradient.py
radial gradient texture for kivy - Python 3 version (using bytearray)
from kivy.graphics.texture import Texture
from kivy.graphics import Rectangle
from kivy.uix.widget import Widget
from kivy.app import App
class RadialGradient(App):
def build(self):
w = Widget()
center_color = 255, 255, 0