Moved artist (now art) into another repo

This commit is contained in:
2023-05-03 20:17:48 -04:00
parent 54ea1c283f
commit 501eb34922
36 changed files with 191 additions and 186 deletions

View File

@@ -5,8 +5,8 @@ import "math"
import "image"
import "image/color"
import "tomo"
import "tomo/artist"
import "tomo/artist/shapes"
import "art"
import "art/shapes"
var clockCase = tomo.C("tomo", "clock")
@@ -30,7 +30,7 @@ func (element *AnalogClock) Entity () tomo.Entity {
}
// Draw causes the element to draw to the specified destination canvas.
func (element *AnalogClock) Draw (destination artist.Canvas) {
func (element *AnalogClock) Draw (destination art.Canvas) {
bounds := element.entity.Bounds()
state := tomo.State { }
@@ -71,7 +71,7 @@ func (element *AnalogClock) HandleThemeChange () {
}
func (element *AnalogClock) radialLine (
destination artist.Canvas,
destination art.Canvas,
source color.RGBA,
inner float64,
outer float64,

View File

@@ -3,8 +3,8 @@ package fun
import "image"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/artist/artutil"
import "art"
import "art/artutil"
import "tomo/elements/fun/music"
var pianoCase = tomo.C("tomo", "piano")
@@ -57,7 +57,7 @@ func (element *Piano) Entity () tomo.Entity {
}
// Draw causes the element to draw to the specified destination canvas.
func (element *Piano) Draw (destination artist.Canvas) {
func (element *Piano) Draw (destination art.Canvas) {
element.recalculate()
state := tomo.State {
@@ -304,7 +304,7 @@ func (element *Piano) recalculate () {
}
func (element *Piano) drawFlat (
destination artist.Canvas,
destination art.Canvas,
bounds image.Rectangle,
pressed bool,
state tomo.State,
@@ -315,7 +315,7 @@ func (element *Piano) drawFlat (
}
func (element *Piano) drawSharp (
destination artist.Canvas,
destination art.Canvas,
bounds image.Rectangle,
pressed bool,
state tomo.State,