mirror of
https://github.com/esimov/pigo-wasm-demos.git
synced 2025-09-27 04:36:12 +08:00
wasm: updated parameters to latest Triangle version
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user