From 05da8e6f929229f3da311f6e21c17dbf27164112 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Sat, 15 Apr 2017 17:16:57 +0200
Subject: [PATCH] minor change in xor example code

---
 examples/xor/main.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/xor/main.go b/examples/xor/main.go
index 77edce0..9b4c5c3 100644
--- a/examples/xor/main.go
+++ b/examples/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)
 
-- 
GitLab