From 101637439eb13a3119ae910a505f7162761bc338 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Tue, 9 May 2017 16:46:11 +0200
Subject: [PATCH] add Text.Matrix and Text.ColorMask

---
 text/text.go | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/text/text.go b/text/text.go
index 9596bc6..1e27f27 100644
--- a/text/text.go
+++ b/text/text.go
@@ -152,6 +152,11 @@ func (txt *Text) SetMatrix(m pixel.Matrix) {
 	}
 }
 
+// Matrix returns the current Text's matrix.
+func (txt *Text) Matrix() pixel.Matrix {
+	return txt.mat
+}
+
 // SetColorMask sets a color by which the text will be masked before drawingto another Target.
 func (txt *Text) SetColorMask(c color.Color) {
 	rgba := pixel.ToRGBA(c)
@@ -161,6 +166,11 @@ func (txt *Text) SetColorMask(c color.Color) {
 	}
 }
 
+// ColorMask returns the current Text's color mask.
+func (txt *Text) ColorMask() pixel.RGBA {
+	return txt.col
+}
+
 // Bounds returns the bounding box of the text currently written to the Text excluding whitespace.
 //
 // If the Text is empty, a zero rectangle is returned.