示例#1
0
func flushFunc(ctxt draw.Window) func(r image.Rectangle) {
	if fctxt, ok := ctxt.(RectFlusherWindow); ok {
		return func(r image.Rectangle) {
			fctxt.FlushImageRect(r)
		}
	}
	return func(_ image.Rectangle) {
		ctxt.FlushImage()
	}
}
示例#2
0
文件: ifsrnd.go 项目: taysom/va
func goplot(w draw.Window, ch chan []Point, wait chan int) {
	s := w.Screen()

	for {
		v := <-ch
		plot(s, v)
		w.FlushImage()
		if *waitForGraphics {
			wait <- 1
		}
	}
}
示例#3
0
文件: ifsrnd.go 项目: taysom/va
func inlineplot(w draw.Window, v []Point) {
	s := w.Screen()

	plot(s, v)
	w.FlushImage()
}