mirror of
https://github.com/esimov/pigo-wasm-demos.git
synced 2025-09-26 20:31:20 +08:00
make: included the background blur demo into the Makefile
This commit is contained in:
1
Makefile
1
Makefile
@@ -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'
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user