make: included the background blur demo into the Makefile

This commit is contained in:
esimov
2022-05-23 10:44:03 +03:00
parent 2729aea098
commit ec36ccd328
4 changed files with 1 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ demo2: faceblur.wasm serve
demo3: pixelate.wasm serve
demo4: triangulate.wasm serve
demo5: facemask.wasm serve
demo6: bgblur.wasm serve
serve:
$(BROWSER) 'http://localhost:5000'

View File

@@ -274,7 +274,6 @@ func (c *Canvas) triangulate(data []uint8, size image.Rectangle) ([]uint8, error
if err != nil {
return nil, err
}
dst := image.NewNRGBA(res.Bounds())
draw.Draw(dst, res.Bounds(), res, image.Point{}, draw.Over)

View File

@@ -375,7 +375,6 @@ func (c *Canvas) triangulate(data []uint8, size image.Rectangle) ([]uint8, error
if err != nil {
return nil, err
}
dst := image.NewNRGBA(triangled.Bounds())
draw.Draw(dst, triangled.Bounds(), triangled, image.Point{}, draw.Over)