Skip to content
forked from makew0rld/dither

Modified version of dither library, made to ease up process of writting bindings to Python.

License

Notifications You must be signed in to change notification settings

tfuxu/dither-gopy

 
 

Repository files navigation

dither (modified for Gopy)

This is a modified version of dither Go library, made specifically to ease up process of writting bindings with Gopy.

Note If you are looking for Python bindings of dither library, check out dither-go repository.

Limitations:

  • PixelMapper type and assosiated with this type functions are privated, as they aren't currently supported by Gopy
    (related PR: go-python/gopy#282)
  • You can't reuse generated PixelMapper assosiated functions, because of above limitation
  • Any function that returnes more that one return value, is either privated or ignored during binding generation

Changed structures:

  • pixelmappers.go:
    • PixelMapper type privated
    • RandomNoiseGrayscale, RandomNoiseRGB, Bayer and PixelMapperFromMatrix functions privated
  • dither.go:
    • Mapper field in Ditherer struct privated
    • New SetBayer, SetOrdered, SetRandomGrayscale, SetRandomRGB and ClearMapper helper functions

TODO:

  • Make a struct for *Config and Offset functions allowing to return multiple values using only one return value

License

This repository is licensed under the same terms as the original library, which is licensed under the Mozilla Public License Version 2.0.

About

Modified version of dither library, made to ease up process of writting bindings to Python.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%