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

Function drawPos

resources/docs/paths/main.go:24–28  ·  view source on GitHub ↗
(c *canvas.Context, x, y float64)

Source from the content-addressed store, hash-verified

22}
23
24func drawPos(c *canvas.Context, x, y float64) {
25 c.SetFillColor(canvas.Lightblue)
26 c.SetStrokeColor(canvas.Transparent)
27 c.DrawPath(x-1.5, y-1.5, canvas.Rectangle(3.0, 3.0))
28}
29
30func drawControl(c *canvas.Context, x, y float64) {
31 c.SetFillColor(canvas.Lightblue)

Callers 1

drawFunction · 0.85

Calls 4

RectangleFunction · 0.92
DrawPathMethod · 0.80
SetFillColorMethod · 0.45
SetStrokeColorMethod · 0.45

Tested by

no test coverage detected