How to use the handright._template.Template function in handright

To help you get started, we’ve selected a few handright examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Gsllchb / Handright / handright / _template.py View on Github external
def __eq__(self, other) -> bool:
        return (isinstance(other, Template)
                and self._background == other._background
                and self._line_spacing == other._line_spacing
                and self._line_spacing_sigma == other._line_spacing_sigma
                and self._font_size == other._font_size
                and self._font_size_sigma == other._font_size_sigma
                and self._font == other._font
                and self._fill == other._fill
                and self._left_margin == other._left_margin
                and self._top_margin == other._top_margin
                and self._right_margin == other._right_margin
                and self._bottom_margin == other._bottom_margin
                and self._word_spacing == other._word_spacing
                and self._word_spacing_sigma == other._word_spacing_sigma
                and self._end_chars == other._end_chars
                and self._perturb_x_sigma == other._perturb_x_sigma
                and self._perturb_y_sigma == other._perturb_y_sigma

handright

A lightweight Python library for simulating Chinese handwriting

BSD-3-Clause
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis

Similar packages