diff --git a/xor/main.go b/xor/main.go index 77edce0..9b4c5c3 100644 --- a/xor/main.go +++ b/xor/main.go @@ -40,28 +40,28 @@ func run() { // red circle imd.Clear() imd.Color(pixel.RGB(1, 0, 0)) - imd.Push(pixel.X(-offset) + win.Bounds().Center()) + imd.Push(win.Bounds().Center() - pixel.X(offset)) imd.Circle(200, 0) imd.Draw(canvas) // blue circle imd.Clear() imd.Color(pixel.RGB(0, 0, 1)) - imd.Push(pixel.X(offset) + win.Bounds().Center()) + imd.Push(win.Bounds().Center() + pixel.X(offset)) imd.Circle(150, 0) imd.Draw(canvas) // yellow circle imd.Clear() imd.Color(pixel.RGB(1, 1, 0)) - imd.Push(pixel.Y(-offset) + win.Bounds().Center()) + imd.Push(win.Bounds().Center() - pixel.Y(offset)) imd.Circle(100, 0) imd.Draw(canvas) // magenta circle imd.Clear() imd.Color(pixel.RGB(1, 0, 1)) - imd.Push(pixel.Y(offset) + win.Bounds().Center()) + imd.Push(win.Bounds().Center() + pixel.Y(offset)) imd.Circle(50, 0) imd.Draw(canvas)