summaryrefslogtreecommitdiffstats
path: root/libdimension-python
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-28 22:21:53 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-28 22:21:53 -0600
commit9de8a544bc0bae9ebbc2eed10c120a7e14af441e (patch)
treec89ecbc9f7523f16fa611e2d23cb164d4efd7f5b /libdimension-python
parent250c28ccdef5f238677b34f21ec7fab06588a127 (diff)
downloaddimension-9de8a544bc0bae9ebbc2eed10c120a7e14af441e.tar.xz
Add leopard pigment.
Diffstat (limited to 'libdimension-python')
-rw-r--r--libdimension-python/dimension.pxd1
-rw-r--r--libdimension-python/dimension.pyx6
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 #
############