Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jesperkha/bmask
- Owner: jesperkha
- License: mit
- Created: 2022-08-08T19:34:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T19:36:46.000Z (over 2 years ago)
- Last Synced: 2024-11-08T17:16:24.441Z (about 5 hours ago)
- Language: Go
- Size: 1.62 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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