From ed8abc4dc0c665a6efbdbaea24abd223204e26d5 Mon Sep 17 00:00:00 2001
From: faiface <faiface@ksp.sk>
Date: Sun, 9 Apr 2017 23:08:35 +0200
Subject: [PATCH] adjust RGB doc

---
 color.go | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/color.go b/color.go
index 94b2b65..589d60d 100644
--- a/color.go
+++ b/color.go
@@ -10,11 +10,14 @@ type RGBA struct {
 }
 
 // RGB returns a fully opaque RGBA color with the given RGB values.
+//
+// A common way to construct a transparent color is to create one with RGB constructor, then
+// multiply it by a color obtained from the Alpha constructor.
 func RGB(r, g, b float64) RGBA {
 	return RGBA{r, g, b, 1}
 }
 
-// Alpha returns a while RGBA color with the  given alpha component.
+// Alpha returns a while RGBA color with the given alpha component.
 func Alpha(a float64) RGBA {
 	return RGBA{a, a, a, a}
 }
-- 
GitLab