;; Posterize effect - reduces color levels
(require-primitives "color_ops")

(define-effect posterize
  :params (
    (levels :type int :default 8 :range [2 32])
  )
  (color_ops:posterize frame levels))
