func pointInv(X, Y int) { // if underX { xker.Point(X, Y, false) return } if !iok(X, Y) { return } x, y := uint(X), uint(Y) AF := col.ActualF CF := col.CodeF CB := col.CodeB C := PointColour(x, y) col.Invert(&C) Colour(C) Point(int(x), int(y)) col.ActualF = AF col.CodeF = CF col.CodeB = CB }
func point(X, Y int) { // if underX { xker.Point(X, Y, true) return } if !visible || !iok(X, Y) { return } x := uint(X) y := uint(Y) if (x >= nX[mode]) || (y >= nY[mode]) { return } a := (int(XX)*Y + X) * int(colourdepth) c := cc(col.CodeF) if !only2Buf { copy(fbmem[a:a+int(colourdepth)], c) /* TODO if actualLinewidth > Thin && x + 1 < nX [mode] && y + 1 < nY [mode] { if x + 1 < nY [mode] { M += colourdepth++ copy (M, &Colours.CodeF, colourdepth) } if y + 1 < nX [mode] { M += (XX - 1) * colourdepth copy (M, &Colours.CodeF, colourdepth) } if actualLinewidth == Thicker { M, colourdepth++ copy (M, &Colours.CodeF, colourdepth) } else { // Yetthicker if x > 0 && y > 0 { M -= XX * 2 * colourdepth copy (M, &Colours.CodeF, colourdepth) M += (XX - 1) * colourdepth copy (M, &Colours.CodeF, colourdepth) } } } */ } copy(fbcop[a:a+int(colourdepth)], c) /* TODO if actualLinewidth > Thin && x + 1 < nX [mode] && y + 1 < nY [mode] { M += colourdepth copy (M, &Colours.CodeF), colourdepth) M += (XX - 1) * colourdepth copy (M, &Colours.CodeF, colourdepth) if actualLinewidth == Thicker { M, colourdepth++ copy (M, &Colours.CodeF, colourdepth) } else { // Yetthicker if x > 0 && y > 0 { M -= XX * 2 * colourdepth copy (M, &Colours.CodeF, colourdepth) M += (XX - 1) * colourdepth copy (M, &Colours.CodeF, colourdepth) } } } */ }