Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
denisbrodbeck committed Nov 24, 2017
1 parent 284a0b5 commit ce3e171
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions primitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ import (
"github.com/nfnt/resize"
)

// Primitive generates a SVG consisting of several simple shapes
// that approximate the main features visible inside the image.
//
// All primitive generation related flags are supported.
// See https://github.com/fogleman/primitive for a list of supported flags
// and their meaning in respect to the output.
//
// You should seed your rng in your main function, before calling this function.
//
// Try:
// rand.Seed(time.Now().UTC().UnixNano())
func Primitive(input image.Image, workSize, outputSize, count, mode, alpha, repeat, workers int, background string) (svg string, err error) {
// scale down input image if needed
if workSize > 0 {
Expand Down

0 comments on commit ce3e171

Please sign in to comment.