示例#1
0
文件: text.go 项目: mike1372/chart
func (g *TextGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int) {
	if g.xoff == -1 {
		g.xoff = int(float64(ro) * (CircleStretchFactor - 1))
		// debug.Printf("Shifting center about %d (ro=%d, f=%.2f)", g.xoff, ro, CircleStretchFactor)
	}
	for i := range wedges {
		wedges[i].Style.LineWidth = 1
	}
	chart.GenericRings(g, wedges, x+g.xoff, y, ro, ri, 1.8)
}
示例#2
0
文件: image.go 项目: mike1372/chart
func (ig *ImageGraphics) Rings(wedges []chart.Wedgeinfo, x, y, ro, ri int) {
	chart.GenericRings(ig, wedges, x, y, ro, ri, 1)
}