MCPcopy Create free account
hub / github.com/cogentcore/core / getPartPath

Function getPartPath

paint/raster/raster_test.go:49–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func getPartPath() (testPath Path) {
50 //M210.08,222.97
51 testPath.Start(ToFixedP(210.08, 222.97))
52 //L192.55,244.95
53 testPath.Line(ToFixedP(192.55, 244.95))
54 //Q146.53,229.95,115.55,209.55
55 testPath.QuadBezier(ToFixedP(146.53, 229.95), ToFixedP(115.55, 209.55))
56 //Q102.50,211.00,95.38,211.00
57 testPath.QuadBezier(ToFixedP(102.50, 211.00), ToFixedP(95.38, 211.00))
58 //Q56.09,211.00,31.17,182.33
59 testPath.QuadBezier(ToFixedP(56.09, 211.00), ToFixedP(31.17, 182.33))
60 //Q6.27,153.66,6.27,108.44
61 testPath.QuadBezier(ToFixedP(6.27, 153.66), ToFixedP(6.27, 108.44))
62 //Q6.27,61.89,31.44,33.94
63 testPath.QuadBezier(ToFixedP(6.27, 61.89), ToFixedP(31.44, 33.94))
64 //Q56.62,6.00,98.55,6.00
65 testPath.QuadBezier(ToFixedP(56.62, 6.00), ToFixedP(98.55, 6.00))
66 //Q141.27,6.00,166.64,33.88
67 testPath.QuadBezier(ToFixedP(141.27, 6.00), ToFixedP(166.64, 33.88))
68 //Q192.02,61.77,192.02,108.70
69 testPath.QuadBezier(ToFixedP(192.02, 61.77), ToFixedP(192.02, 108.70))
70 //Q192.02,175.67,140.86,202.05
71 testPath.QuadBezier(ToFixedP(192.02, 175.67), ToFixedP(140.86, 202.05))
72 //Q173.42,216.66,210.08,222.97
73 testPath.QuadBezier(ToFixedP(173.42, 216.66), ToFixedP(210.08, 222.97))
74 //z
75 testPath.Stop(true)
76 return
77}
78
79func GetTestPath() (testPath Path) {
80 //Path for Q

Callers 2

GetTestPathFunction · 0.85
TestGradientFunction · 0.85

Calls 5

ToFixedPFunction · 0.85
StartMethod · 0.65
LineMethod · 0.65
QuadBezierMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected