Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
faiface committed Feb 28, 2017
1 parent d598e68 commit 7f7912c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (bp *batchPicture) Slice(r Rect) Picture {
func (bp *batchPicture) Draw(t TargetTriangles) {
bt := t.(*batchTriangles)
if bp.b != bt.b {
panic(fmt.Sprintf("%T.Draw: TargetTriangles generated by different Batch", bp))
panic(fmt.Errorf("%T.Draw: TargetTriangles generated by different Batch", bp))
}
bt.draw(bp)
}
2 changes: 1 addition & 1 deletion interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ type TargetPicture interface {
// PictureColor specifies Picture with Color property, so that every position inside the Picture's
// Bounds has a color.
//
// Positions outside the Picture's Bounds must return opaque white (NRGBA{R: 1, G: 1, B:1, A: 1}).
// Positions outside the Picture's Bounds must return transparent black (NRGBA{R: 0, G: 0, B: 0, A: 0}).
type PictureColor interface {
Picture
Color(at Vec) NRGBA
Expand Down

0 comments on commit 7f7912c

Please sign in to comment.