From 4cff721955450bc183e31018677ffd0d050f1943 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Wed, 26 Apr 2017 15:04:46 +0200
Subject: [PATCH] remove PictureData.SetColor

was confusing since Pictures in e.g. Sprites are not really updatable
---
 data.go | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/data.go b/data.go
index 186ee35..11c7348 100644
--- a/data.go
+++ b/data.go
@@ -268,17 +268,3 @@ func (pd *PictureData) Color(at Vec) RGBA {
 	}
 	return ToRGBA(pd.Pix[pd.Index(at)])
 }
-
-// SetColor changes the color located at the given position.
-func (pd *PictureData) SetColor(at Vec, col color.Color) {
-	if !pd.Rect.Contains(at) {
-		return
-	}
-	rgba := ToRGBA(col)
-	pd.Pix[pd.Index(at)] = color.RGBA{
-		R: uint8(rgba.R * 255),
-		G: uint8(rgba.G * 255),
-		B: uint8(rgba.B * 255),
-		A: uint8(rgba.A * 255),
-	}
-}
-- 
GitLab