added comments
This commit is contained in:
parent
b39fdd0a48
commit
1b94cf0703
2 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,8 @@ import (
|
||||||
"github.com/tfriedel6/canvas/backend/backendbase"
|
"github.com/tfriedel6/canvas/backend/backendbase"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Image is a type holding information on an image loaded with the LoadImage
|
||||||
|
// function
|
||||||
type Image struct {
|
type Image struct {
|
||||||
src interface{}
|
src interface{}
|
||||||
cv *Canvas
|
cv *Canvas
|
||||||
|
|
|
@ -4,6 +4,8 @@ import (
|
||||||
"math"
|
"math"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Path2D is a type that holds a predefined path which can be drawn
|
||||||
|
// with a single call
|
||||||
type Path2D struct {
|
type Path2D struct {
|
||||||
cv *Canvas
|
cv *Canvas
|
||||||
p []pathPoint
|
p []pathPoint
|
||||||
|
|
Loading…
Reference in a new issue