diff --git a/README.md b/README.md index 601cbe3..de65de3 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,16 @@ func main() { } ``` +## Creating Contexts + +There are a few ways of creating a context. + +```go +NewContext(width, height int) *Context +NewContextForImage(im image.Image) *Context +NewContextForRGBA(im *image.RGBA) *Context +``` + ## Drawing Functions Ever used a graphics library that didn't have functions for drawing rectangles @@ -82,6 +92,17 @@ Push() Pop() ``` +## Helper Functions + +Sometimes you just don't want to write these yourself. + +```go +Radians(degrees float64) float64 +Degrees(radians float64) float64 +LoadPNG(path string) (image.Image, error) +SavePNG(path string, im image.Image) error +``` + ## What's Missing? If you need any of the features below, I recommend using `cairo` instead.