From 0d8d2a019036697d8725c8e1fa6ba6566e797902 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 16 Mar 2023 00:45:33 -0400 Subject: [PATCH] Cleaned up pattern documentation a bit --- artist/patterns/border.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artist/patterns/border.go b/artist/patterns/border.go index 0ce56c0..eafda13 100644 --- a/artist/patterns/border.go +++ b/artist/patterns/border.go @@ -24,8 +24,8 @@ import "git.tebibyte.media/sashakoshka/tomo/artist" // sections are automatically sized around it. // // When drawn to a destination canvas, the bounds of sections 1, 3, 4, 5, and 7 -// are expanded or contracted to fit the destination's bounds. All sections -// are rendered as if they are Texture patterns, meaning these flexible sections +// are expanded or contracted to fit the given drawing bounds. All sections are +// rendered as if they are Texture patterns, meaning these flexible sections // will repeat to fill in any empty space. // // This pattern can be used to make a static image texture into something that @@ -35,7 +35,7 @@ type Border struct { artist.Inset } -// Draw draws the border pattern onto the destination canvas within the clipping +// Draw draws the border pattern onto the destination canvas within the given // bounds. func (pattern Border) Draw (destination canvas.Canvas, bounds image.Rectangle) { drawBounds := bounds.Canon().Intersect(destination.Bounds())