Documentation ¶
Index ¶
- Constants
- func CompareBlack(actual, expected color.Color) bool
- func CompareImage(actual []iro.RGB555, expected image.Image, w, h int, ...) error
- func CompareWhite(actual, expected color.Color) bool
- func IsExpectedScreen(rom, imgpath string, n int, ...) error
- func SFC(romData []byte) core.SuperFamicom
Constants ¶
View Source
const ( OK = "✅" NG = "❌" )
Variables ¶
This section is empty.
Functions ¶
func CompareBlack ¶
画像の黒部分(#000000)の座標が全て一致するかチェック
func CompareImage ¶
func CompareWhite ¶
画像の白部分(#E0E0E0より明るい)の座標が全て一致するかチェック
func IsExpectedScreen ¶
func IsExpectedScreen(rom, imgpath string, n int, compare func(actual color.Color, expected color.Color) bool) error
nフレームだけエミュレーションした後の画面がimgpathの画像と比較して一致するかチェックする
func SFC ¶
func SFC(romData []byte) core.SuperFamicom
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.