Documentation
¶
Overview ¶
A package for decoding and handling .xp files produced by Kyzrati's fabulous REXPaint program, the gold-standard in ASCII art drawing programs. It can be found at www.gridsagegames.com/rexpaint.
reximage is part of the Tyumi engine by Benjamin Nicholls, but feel free to use it as a standalone package!
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellData ¶
type CellData struct { Glyph uint32 // ASCII code for glyph R_f uint8 // Foreground Colour - Red channel G_f uint8 // Foreground Colour - Green channel B_f uint8 // Foreground Colour - Blue channel R_b uint8 // Background Colour - Red channel G_b uint8 // Background Colour - Green channel B_b uint8 // Background Colour - Blue channel }
CellData holds the decoded data for a single cell. Colours are split into uint8 components so the user can combine them into whatever colour format they need. Some popular colour format conversion functions are provided as well.
func (CellData) ARGB ¶
ARGB returns the foreground and background colours of the cell in ARGB format. Alpha in this case is always set to maximum (255).