MCPcopy
hub / github.com/tdewolff/canvas / Scale

Method Scale

path.go:1349–1351  ·  view source on GitHub ↗

Scale scales the path by (sx,sy). It modifies the path in-place.

(sx, sy float64)

Source from the content-addressed store, hash-verified

1347
1348// Scale scales the path by (sx,sy). It modifies the path in-place.
1349func (p *Path) Scale(sx, sy float64) *Path {
1350 return p.Transform(Identity.Scale(sx, sy))
1351}
1352
1353// Rotate rotates the path by deg degrees. It modifies the path in-place.
1354func (p *Path) Rotate(deg float64) *Path {

Callers 15

DrawPreviewWithAssetsFunction · 0.45
ParseLaTeXFunction · 0.45
TestMatrixFunction · 0.45
TransformMethod · 0.45
WriteImageMethod · 0.45
initMethod · 0.45
parseTransformMethod · 0.45
parseDefsMethod · 0.45
TestPathTransformFunction · 0.45
BenchmarkToRasterizerFunction · 0.45
BenchmarkToScanxFunction · 0.45
PrimitiveCellFunction · 0.45

Calls 1

TransformMethod · 0.95

Tested by 5

TestMatrixFunction · 0.36
TestPathTransformFunction · 0.36
BenchmarkToRasterizerFunction · 0.36
BenchmarkToScanxFunction · 0.36
TestCanvasFunction · 0.36