wasm: updated parameters to latest Triangle version

This commit is contained in:
esimov
2021-09-02 17:23:43 +03:00
parent ede3486ac0
commit e17840c7c3
2 changed files with 4 additions and 4 deletions

View File

@@ -129,9 +129,9 @@ func NewCanvas() *Canvas {
PointsThreshold: c.pointsThreshold, PointsThreshold: c.pointsThreshold,
Wireframe: c.wireframe, Wireframe: c.wireframe,
StrokeWidth: c.strokeWidth, StrokeWidth: c.strokeWidth,
IsSolid: c.isSolid, IsStrokeSolid: c.isSolid,
Grayscale: c.isGrayScaled, Grayscale: c.isGrayScaled,
BackgroundColor: "#ffffff00", BgColor: "#ffffff00",
} }
c.triangle = &triangle.Image{*c.processor} c.triangle = &triangle.Image{*c.processor}
return &c return &c

View File

@@ -98,9 +98,9 @@ func NewCanvas() *Canvas {
PointsThreshold: c.pointsThreshold, PointsThreshold: c.pointsThreshold,
Wireframe: c.wireframe, Wireframe: c.wireframe,
StrokeWidth: c.strokeWidth, StrokeWidth: c.strokeWidth,
IsSolid: c.isSolid, IsStrokeSolid: c.isSolid,
Grayscale: c.isGrayScaled, Grayscale: c.isGrayScaled,
BackgroundColor: "#ffffff00", BgColor: "#ffffff00",
} }
c.triangle = &triangle.Image{*c.processor} c.triangle = &triangle.Image{*c.processor}
return &c return &c