Textures are now actually used

This commit is contained in:
Sasha Koshka 2023-08-23 18:04:54 -04:00
parent a8d5a64837
commit dc31de0ecb
3 changed files with 5 additions and 4 deletions

View File

@ -44,8 +44,9 @@ type Pen interface {
StrokeWeight (int) // how thick the stroke is
StrokeAlign (StrokeAlign) // where the stroke is drawn
Stroke (color.Color) // Sets the stroke to a solid color
Fill (color.Color) // Sets the fill to a solid color
Stroke (color.Color) // Sets the stroke to a solid color
Fill (color.Color) // Sets the fill to a solid color
Texture (Texture) // Overlaps a texture onto the fill color
}
// Canvas is an image that supports drawing paths.

View File

@ -1,4 +1,4 @@
package tomo
package canvas
import "io"
import "image"

View File

@ -135,7 +135,7 @@ type Box interface {
// SetTexture sets a repeating background texture. If the texture is
// transparent, it will be overlayed atop the color specified by
// SetColor().
SetTexture (Texture)
SetTexture (canvas.Texture)
// SetBorder sets the Border(s) of the box. The first Border will be the
// most outset, and the last Border will be the most inset.
SetBorder (...Border)