Пример #1
0
func rectangle(x, y, x1, y1 int) {
	//
	if underX {
		intord(&x, &y, &x1, &y1)
		xker.Rectangle(x, y, x1-x, y1-y, true, false)
		return
	}
	if !iok(x, y) || !iok(x1, y1) {
		return
	}
	rectang(uint(x), uint(y), uint(x1), uint(y1), pt)
}
Пример #2
0
func rectangleFull(x, y, x1, y1 int) {
	//
	intord(&x, &y, &x1, &y1)
	if underX {
		xker.Rectangle(x, y, x1-x+1, y1-y+1, true, true)
		return
	}
	if !visible {
		return
	}
	if !iok(x, y) || !iok(x1, y1) {
		return
	}
	if uint(x1) >= nX[mode] {
		x1 = int(nX[mode]) - 1
	}
	if uint(y1) >= nY[mode] {
		y1 = int(nY[mode]) - 1
	}
	for z := uint(y); z <= uint(y1); z++ {
		writeHorizontal(uint(x), z, uint(x1))
	}
}