def setup(settings_override=None): """ Initialize effects and prepare for running :param settings_override: (dict) keyword overrides for settings """ from demosys.effects.registry import effects from demosys.conf import settings if settings_override: settings.update(**settings_override) effects.polulate(settings.EFFECTS)
def test_templates(self): templates = self.list_effect_templates() effects.polulate(templates) self.project.load() for template in templates: package = effects.get_package(template) for effect_cls in package.runnable_effects(): effect = effect_cls() effect.post_load() effect.draw(0.0, 1 / 60, self.window.fbo) self.window.fbo.clear()
def create_effect_classes(self): """ Registers effect packages defined in ``effect_packages``. """ effects.polulate(self.effect_packages)
def setup_class(cls): effects.polulate(['tests.effect_package']) cls.effect = cls.project.create_effect("test", 'TestEffect')
def setup(): from demosys.effects.registry import effects from demosys.conf import settings effects.polulate(settings.EFFECTS)