Did I find the right examples for you? yes no

All Samples(36)  |  Call(0)  |  Derive(0)  |  Import(36)

src/b/a/bacon-0.2.7/examples/window_target.py   bacon(Download)
import bacon
 
bacon.window.resizable = True
bacon.window.width = 512
bacon.window.height = 512

src/b/a/bacon-0.2.7/examples/transform_rotate.py   bacon(Download)
import bacon
import math
 
kitten = bacon.Image('res/kitten.png')
 

src/b/a/bacon-0.2.7/examples/transform_push.py   bacon(Download)
import bacon
import math
 
kitten = bacon.Image('res/kitten.png')
font = bacon.Font('res/DejaVuSans.ttf', 24)

src/b/a/bacon-0.2.7/examples/suppress_logging.py   bacon(Download)
# Suppress all logging from the bacon module.
import logging
logging.getLogger('bacon').addHandler(logging.NullHandler())
 
import bacon

src/b/a/bacon-0.2.7/examples/style.py   bacon(Download)
import logging
logging.basicConfig()
 
import bacon
bacon.window.resizable = True

src/b/a/bacon-0.2.7/examples/sound.py   bacon(Download)
import bacon
 
sound = bacon.Sound('res/ball.wav')
 
class Game(bacon.Game):

src/b/a/bacon-0.2.7/examples/shader.py   bacon(Download)
import bacon
 
shader = bacon.Shader(vertex_source=
    """
    precision highp float;

src/b/a/bacon-0.2.7/examples/rect.py   bacon(Download)
import bacon
 
class Game(bacon.Game):
    def on_tick(self):
    	bacon.clear(0, 0, 0, 1)

src/b/a/bacon-0.2.7/examples/quickstart.py   bacon(Download)
import bacon
 
kitten = bacon.Image('res/kitten.png')
 
bacon.window.width = 512

src/b/a/bacon-0.2.7/examples/push_target.py   bacon(Download)
import bacon
 
font = bacon.Font('res/DejaVuSans.ttf', 48)
 
# The offscreen texture must be created in a separate atlas to the glyphs

  1 | 2 | 3 | 4  Next