mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Use DrawImage in tests
This commit is contained in:
parent
6cb8dac860
commit
6ef60e6c39
@ -104,9 +104,9 @@ func TestComposition(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
return
|
||||
}
|
||||
DrawImageGeometryColor(img2, img1, GeometryMatrixI(), ColorMatrixI())
|
||||
DrawImageGeometryColor(img3, img2, GeometryMatrixI(), ColorMatrixI())
|
||||
DrawImageGeometryColor(img_12_3, img3, GeometryMatrixI(), ColorMatrixI())
|
||||
DrawImage(img2, img1, 0, 0)
|
||||
DrawImage(img3, img2, 0, 0)
|
||||
DrawImage(img_12_3, img3, 0, 0)
|
||||
|
||||
img2.Fill(img2Color)
|
||||
img3.Fill(img3Color)
|
||||
@ -115,9 +115,9 @@ func TestComposition(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
return
|
||||
}
|
||||
DrawImageGeometryColor(img3, img2, GeometryMatrixI(), ColorMatrixI())
|
||||
DrawImageGeometryColor(img3, img1, GeometryMatrixI(), ColorMatrixI())
|
||||
DrawImageGeometryColor(img_1_23, img3, GeometryMatrixI(), ColorMatrixI())
|
||||
DrawImage(img3, img2, 0, 0)
|
||||
DrawImage(img3, img1, 0, 0)
|
||||
DrawImage(img_1_23, img3, 0, 0)
|
||||
|
||||
for j := 0; j < h; j++ {
|
||||
for i := 0; i < w; i++ {
|
||||
|
Loading…
Reference in New Issue
Block a user