From 1b94cf07031fe54c0c544e76332a35c4740e6df4 Mon Sep 17 00:00:00 2001 From: Thomas Friedel Date: Sat, 21 Mar 2020 15:51:19 +0100 Subject: [PATCH] added comments --- images.go | 2 ++ path2d.go | 2 ++ 2 files changed, 4 insertions(+) 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