diff --git a/images.go b/images.go index 7581ff4..ce09e52 100644 --- a/images.go +++ b/images.go @@ -13,6 +13,8 @@ import ( "github.com/tfriedel6/canvas/backend/backendbase" ) +// Image is a type holding information on an image loaded with the LoadImage +// function type Image struct { src interface{} cv *Canvas diff --git a/path2d.go b/path2d.go index e256c3e..4ad1e4a 100644 --- a/path2d.go +++ b/path2d.go @@ -4,6 +4,8 @@ import ( "math" ) +// Path2D is a type that holds a predefined path which can be drawn +// with a single call type Path2D struct { cv *Canvas p []pathPoint