From 95e441e50e5b919e982071f3312755b0b31fbaad Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Fri, 19 Feb 2016 16:53:13 -0500 Subject: [PATCH] Update README.md --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aa0f2ec..601cbe3 100644 --- a/README.md +++ b/README.md @@ -33,10 +33,10 @@ or circles? What a pain! ```go DrawLine(x1, y1, x2, y2 float64) DrawRectangle(x, y, w, h float64) -DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64) -DrawEllipse(x, y, rx, ry float64) -DrawArc(x, y, r, angle1, angle2 float64) DrawCircle(x, y, r float64) +DrawArc(x, y, r, angle1, angle2 float64) +DrawEllipse(x, y, rx, ry float64) +DrawEllipticalArc(x, y, rx, ry, angle1, angle2 float64) DrawImage(im image.Image, x, y int) DrawString(x, y float64, s string) @@ -58,12 +58,12 @@ FillPreserve() Colors can be set in several different ways for your convenience. ```go +SetRGB(r, g, b float64) +SetRGBA(r, g, b, a float64) +SetRGB255(r, g, b int) +SetRGBA255(r, g, b, a int) SetColor(c color.Color) SetHexColor(x string) -SetRGBA255(r, g, b, a int) -SetRGB255(r, g, b int) -SetRGBA(r, g, b, a float64) -SetRGB(r, g, b float64) ``` ## Transformation Functions @@ -81,3 +81,12 @@ TransformPoint(x, y float64) (tx, ty float64) Push() Pop() ``` + +## What's Missing? + +If you need any of the features below, I recommend using `cairo` instead. + +- Clipping Regions +- Gradients / Patterns +- Cubic Beziers +- Dashed Lines