added comments

This commit is contained in:
Thomas Friedel 2020-03-21 15:51:19 +01:00
parent b39fdd0a48
commit 1b94cf0703
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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