diff --git a/batch.go b/batch.go index 34fc0ea8b1c5fa69719ef2ed2859729d419beb15..c4b9c72e50b7c2abfc8787f48f7874353021a8f9 100644 --- a/batch.go +++ b/batch.go @@ -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) } diff --git a/interface.go b/interface.go index 45300071b2d8c510db1852451a9da66a1ecdbbf4..08946655dfaab7ef2c583dd6a30f9efa447a99c7 100644 --- a/interface.go +++ b/interface.go @@ -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