From 1a2ca3264d0868d43769c80377abe086638f07af Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Sun, 2 Apr 2017 19:08:48 +0200
Subject: [PATCH] add Window.Color

---
 pixelgl/window.go | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pixelgl/window.go b/pixelgl/window.go
index d0420f6..ca1e3b4 100644
--- a/pixelgl/window.go
+++ b/pixelgl/window.go
@@ -397,3 +397,8 @@ func (w *Window) Smooth() bool {
 func (w *Window) Clear(c color.Color) {
 	w.canvas.Clear(c)
 }
+
+// Color returns the color of the pixel over the given position inside the Window.
+func (w *Window) Color(at pixel.Vec) pixel.NRGBA {
+	return w.canvas.Color(at)
+}
-- 
GitLab