diff options
Diffstat (limited to 'libdimension-python')
-rw-r--r-- | libdimension-python/dimension.pxd | 1 | ||||
-rw-r--r-- | libdimension-python/dimension.pyx | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd index cda2c59..9bfe5a9 100644 --- a/libdimension-python/dimension.pxd +++ b/libdimension-python/dimension.pxd @@ -204,6 +204,7 @@ cdef extern from "../libdimension/dimension.h": dmnsn_pattern *dmnsn_new_checker_pattern() dmnsn_pattern *dmnsn_new_gradient_pattern(dmnsn_vector orientation) + dmnsn_pattern *dmnsn_new_leopard_pattern() ######## # Maps # diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx index 3fd64d1..2197edd 100644 --- a/libdimension-python/dimension.pyx +++ b/libdimension-python/dimension.pyx @@ -561,6 +561,12 @@ cdef class Gradient(Pattern): self._pattern = dmnsn_new_gradient_pattern(Vector(orientation)._v) Pattern.__init__(self) +cdef class Leopard(Pattern): + """A leopard pattern.""" + def __init__(self): + self._pattern = dmnsn_new_leopard_pattern() + Pattern.__init__(self) + ############ # Pigments # ############ |