Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jesperkha/bmask

Go tool for masking borders of an image
https://github.com/jesperkha/bmask

Last synced: about 5 hours ago
JSON representation

Go tool for masking borders of an image

Awesome Lists containing this project

README

        

# bmask

Single functionality package for drawing images with a bordered mask.

```go
// Draw creates a canvas and draws a border of specified with around the source image.
// It then uses the canvas as a mask for the background image. The threshold is what
// determines if a pixel should be counted when checking for an edge. Default to 0.
func Draw(source string, background string, lineWidth int, threshold int) error
```

## Example