diff --git a/lib/chunky_png/color.rb b/lib/chunky_png/color.rb index a96b793..cf232bb 100644 --- a/lib/chunky_png/color.rb +++ b/lib/chunky_png/color.rb @@ -667,6 +667,7 @@ def hue_and_chroma(color) def to_truecolor_alpha_bytes(color) [r(color), g(color), b(color), a(color)] end + alias to_rgba to_truecolor_alpha_bytes # Returns an array with the separate RGB values for this color. The alpha # channel will be discarded. @@ -676,6 +677,7 @@ def to_truecolor_alpha_bytes(color) def to_truecolor_bytes(color) [r(color), g(color), b(color)] end + alias to_rgb to_truecolor_bytes # Returns an array with the grayscale teint value for this color. #