INNER CODE UNIT · Python

update_text

mosra/magnum-examples · src/python/magnum-text.py:136

    def update_text(self):
        # TODO show rotation once Complex.from_matrix() is a thing
        self._dynamic_text.clear()
        self._dynamic_text.render(self._font.create_shaper(), 32.0,
            "Scale: {:.2}"
                .format(self._transformation_rotating_text.uniform_scaling()))

exit(TextExample().exec())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…