Textures are now actually used
This commit is contained in:
parent
a8d5a64837
commit
dc31de0ecb
|
@ -44,8 +44,9 @@ type Pen interface {
|
||||||
StrokeWeight (int) // how thick the stroke is
|
StrokeWeight (int) // how thick the stroke is
|
||||||
StrokeAlign (StrokeAlign) // where the stroke is drawn
|
StrokeAlign (StrokeAlign) // where the stroke is drawn
|
||||||
|
|
||||||
Stroke (color.Color) // Sets the stroke to a solid color
|
Stroke (color.Color) // Sets the stroke to a solid color
|
||||||
Fill (color.Color) // Sets the fill 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.
|
// Canvas is an image that supports drawing paths.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package tomo
|
package canvas
|
||||||
|
|
||||||
import "io"
|
import "io"
|
||||||
import "image"
|
import "image"
|
|
@ -135,7 +135,7 @@ type Box interface {
|
||||||
// SetTexture sets a repeating background texture. If the texture is
|
// SetTexture sets a repeating background texture. If the texture is
|
||||||
// transparent, it will be overlayed atop the color specified by
|
// transparent, it will be overlayed atop the color specified by
|
||||||
// SetColor().
|
// SetColor().
|
||||||
SetTexture (Texture)
|
SetTexture (canvas.Texture)
|
||||||
// SetBorder sets the Border(s) of the box. The first Border will be the
|
// 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.
|
// most outset, and the last Border will be the most inset.
|
||||||
SetBorder (...Border)
|
SetBorder (...Border)
|
||||||
|
|
Loading…
Reference in New Issue