Documentation ¶
Overview ¶
Pokemon Gold/Silver/Crystal sprite ripper.
Index ¶
- Constants
- Variables
- func Decode(reader io.Reader, w, h int) (*image.Paletted, error)
- type RGB15
- type Reader
- type Ripper
- func (rip *Ripper) HasAnimations() bool
- func (rip *Ripper) Pokemon(number int) (m *image.Paletted, err error)
- func (rip *Ripper) PokemonAnimation(number int) (g *gif.GIF, err error)
- func (rip *Ripper) PokemonBack(number int) (m *image.Paletted, err error)
- func (rip *Ripper) PokemonFrames(number int) ([]*image.Paletted, error)
- func (rip *Ripper) PokemonPalette(number int) color.Palette
- func (rip *Ripper) ShinyPalette(number int) color.Palette
- func (rip *Ripper) Trainer(number int) (m *image.Paletted, err error)
- func (rip *Ripper) Unown(form string) (m *image.Paletted, err error)
- func (rip *Ripper) UnownAnimation(form string) (g *gif.GIF, err error)
- func (rip *Ripper) UnownBack(form string) (m *image.Paletted, err error)
- func (rip *Ripper) Version() string
Constants ¶
View Source
const MaxPokemon = 251
View Source
const MaxTrainer = 67
Variables ¶
View Source
var ( ErrMalformed = errors.New("malformed data") ErrTooLarge = errors.New("decompressed data is suspeciously large") ErrTooSmall = errors.New("decompressed data is too short") ErrNoSuchPokemon = errors.New("no such Pokémon") ErrNoSuchTrainer = errors.New("no such trainer") )
View Source
var UnownForms = []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
Functions ¶
Types ¶
type Ripper ¶
type Ripper struct {
// contains filtered or unexported fields
}
func (*Ripper) HasAnimations ¶
func (*Ripper) PokemonAnimation ¶
func (*Ripper) PokemonBack ¶
func (*Ripper) PokemonFrames ¶
func (*Ripper) PokemonPalette ¶
PokemonPalette returns the color palette for a Pokémon, or nil if there is an error.
func (*Ripper) UnownAnimation ¶
Click to show internal directories.
Click to hide internal directories.