Chiseled is now called Beveled

This commit is contained in:
2023-01-20 23:00:26 -05:00
parent a273178a8e
commit 4c1bf070fe
6 changed files with 25 additions and 15 deletions

View File

@@ -2,14 +2,14 @@ package artist
import "image/color"
// Chiseled is a pattern that has a highlight section and a shadow section.
type Chiseled struct {
// Beveled is a pattern that has a highlight section and a shadow section.
type Beveled struct {
Highlight Pattern
Shadow Pattern
}
// AtWhen satisfies the Pattern interface.
func (chiseled Chiseled) AtWhen (x, y, width, height int) (c color.RGBA) {
func (pattern Beveled) AtWhen (x, y, width, height int) (c color.RGBA) {
var highlighted bool
var bottomCorner bool
@@ -26,8 +26,8 @@ func (chiseled Chiseled) AtWhen (x, y, width, height int) (c color.RGBA) {
}
if highlighted {
return chiseled.Highlight.AtWhen(x, y, width, height)
return pattern.Highlight.AtWhen(x, y, width, height)
} else {
return chiseled.Shadow.AtWhen(x, y, width, height)
return pattern.Shadow.AtWhen(x, y, width, height)
}
}