Versions in this module Expand all Collapse all v0 v0.0.4 Sep 10, 2013 Changes in this version type Canvas + func (c *Canvas) File() *os.File v0.0.3 Sep 10, 2013 Changes in this version type DisplayMode + Accelerated bool + Geometry Geometry + Grayscale bool + Nonstandard int + Timings Timings + func (m *DisplayMode) HFreq() float32 + func (m *DisplayMode) VFreq() float32 + type Geometry struct + Depth int + XRes int + XVRes int + YRes int + YVRes int + type Timings struct + HSLen int + Left int + Lower int + Pixclock int + Right int + Upper int + VSLen int v0.0.2 Sep 10, 2013 v0.0.1 Sep 7, 2013 Changes in this version + const PF_BGRA + const PF_BGR_555 + const PF_BGR_565 + const PF_INDEXED + const PF_RGBA + const PF_RGB_555 + const PF_RGB_565 + const PF_UNKNOWN + const SyncBroadcast + const SyncCompHighAct + const SyncExt + const SyncHorHighAct + const SyncOnGreen + const SyncVertHighAct + const VModeCanUpdate + const VModeDouble + const VModeInterlaced + const VModeMask + const VModeNonInterlaced + const VModeOddFieldFirst + const VModeSmoothXPan + const VModeYWrap + var AliceBlue = RGBColor + var AntiqueWhite = RGBColor + var Aquamarine = RGBColor + var Azure = RGBColor + var Beige = RGBColor + var Bisque = RGBColor + var Black = RGBColor + var BlanchedAlmond = RGBColor + var Blue = RGBColor + var BlueViolet = RGBColor + var Brown = RGBColor + var BurlyWood = RGBColor + var CadetBlue = RGBColor + var Chartreuse = RGBColor + var Chocolate = RGBColor + var Coral = RGBColor + var CornflowerBlue = RGBColor + var Cornsilk = RGBColor + var Crimson = RGBColor + var Cyan = RGBColor + var DarkBlue = RGBColor + var DarkCyan = RGBColor + var DarkGoldenrod = RGBColor + var DarkGray = RGBColor + var DarkGreen = RGBColor + var DarkGrey = RGBColor + var DarkKhaki = RGBColor + var DarkMagenta = RGBColor + var DarkOliveGreen = RGBColor + var DarkOrange = RGBColor + var DarkOrchid = RGBColor + var DarkRed = RGBColor + var DarkSalmon = RGBColor + var DarkSeaGreen = RGBColor + var DarkSlateBlue = RGBColor + var DarkSlateGray = RGBColor + var DarkTurquoise = RGBColor + var DarkViolet = RGBColor + var DeepPink = RGBColor + var DeepSkyBlue = RGBColor + var DimGray = RGBColor + var DodgerBlue = RGBColor + var FireBrick = RGBColor + var FloralWhite = RGBColor + var ForestGreen = RGBColor + var Gainsboro = RGBColor + var GhostWhite = RGBColor + var Gold = RGBColor + var Goldenrod = RGBColor + var Green = RGBColor + var GreenYellow = RGBColor + var Honeydew = RGBColor + var HotPink = RGBColor + var IndianRed = RGBColor + var Indigo = RGBColor + var Ivory = RGBColor + var Khaki = RGBColor + var Lavender = RGBColor + var LavenderBlush = RGBColor + var LawnGreen = RGBColor + var LemonChiffon = RGBColor + var LightBlue = RGBColor + var LightCoral = RGBColor + var LightCyan = RGBColor + var LightGoldenrodYellow = RGBColor + var LightGray = RGBColor + var LightGreen = RGBColor + var LightGrey = RGBColor + var LightPink = RGBColor + var LightSalmon = RGBColor + var LightSeaGreen = RGBColor + var LightSkyBlue = RGBColor + var LightSlateGray = RGBColor + var LightSteelBlue = RGBColor + var LightYellow = RGBColor + var LimeGreen = RGBColor + var Linen = RGBColor + var Magenta = RGBColor + var MediumAquamarine = RGBColor + var MediumBlue = RGBColor + var MediumOrchid = RGBColor + var MediumPurple = RGBColor + var MediumSeaGreen = RGBColor + var MediumSlateBlue = RGBColor + var MediumSpringGreen = RGBColor + var MediumTurquoise = RGBColor + var MediumVioletRed = RGBColor + var MidnightBlue = RGBColor + var MintCream = RGBColor + var MistyRose = RGBColor + var Moccasin = RGBColor + var NavajoWhite = RGBColor + var OldLace = RGBColor + var OliveDrab = RGBColor + var Orange = RGBColor + var OrangeRed = RGBColor + var Orchid = RGBColor + var PaleGoldenrod = RGBColor + var PaleGreen = RGBColor + var PaleTurquoise = RGBColor + var PaleVioletRed = RGBColor + var PapayaWhip = RGBColor + var PeachPuff = RGBColor + var Peru = RGBColor + var Pink = RGBColor + var Plum = RGBColor + var PowderBlue = RGBColor + var RGB555Model = color.ModelFunc(func(c color.Color) color.Color { ... }) + var RGB565Model = color.ModelFunc(func(c color.Color) color.Color { ... }) + var Red = RGBColor + var RosyBrown = RGBColor + var RoyalBlue = RGBColor + var SaddleBrown = RGBColor + var Salmon = RGBColor + var SandyBrown = RGBColor + var SeaGreen = RGBColor + var Seashell = RGBColor + var Sienna = RGBColor + var SkyBlue = RGBColor + var SlateBlue = RGBColor + var SlateGray = RGBColor + var Snow = RGBColor + var SpringGreen = RGBColor + var SteelBlue = RGBColor + var Tan = RGBColor + var Thistle = RGBColor + var Tomato = RGBColor + var Turquoise = RGBColor + var Violet = RGBColor + var Wheat = RGBColor + var White = RGBColor + var WhiteSmoke = RGBColor + var YellowGreen = RGBColor + type BGR555 struct + Pix []byte + Rect image.Rectangle + Stride int + func (i *BGR555) At(x, y int) color.Color + func (i *BGR555) Bounds() image.Rectangle + func (i *BGR555) ColorModel() color.Model + func (i *BGR555) PixOffset(x, y int) int + func (i *BGR555) Set(x, y int, c color.Color) + func (i *BGR555) SetRGB(x, y int, c RGBColor) + type BGR565 struct + Pix []byte + Rect image.Rectangle + Stride int + func (i *BGR565) At(x, y int) color.Color + func (i *BGR565) Bounds() image.Rectangle + func (i *BGR565) ColorModel() color.Model + func (i *BGR565) PixOffset(x, y int) int + func (i *BGR565) Set(x, y int, c color.Color) + func (i *BGR565) SetRGB(x, y int, c RGBColor) + type BGRA struct + Pix []byte + Rect image.Rectangle + Stride int + func (i *BGRA) At(x, y int) color.Color + func (i *BGRA) Bounds() image.Rectangle + func (i *BGRA) ColorModel() color.Model + func (i *BGRA) PixOffset(x, y int) int + func (i *BGRA) Set(x, y int, c color.Color) + func (i *BGRA) SetRGBA(x, y int, c color.RGBA) + type Canvas struct + func Open(dm *DisplayMode) (c *Canvas, err error) + func (c *Canvas) Accelerated() bool + func (c *Canvas) Buffer() []byte + func (c *Canvas) Clear() + func (c *Canvas) Close() (err error) + func (c *Canvas) CurrentMode() (*DisplayMode, error) + func (c *Canvas) FindMode(name string) *DisplayMode + func (c *Canvas) Image() (draw.Image, error) + func (c *Canvas) Modes() ([]*DisplayMode, error) + func (c *Canvas) Palette() (color.Palette, error) + func (c *Canvas) SetPalette(pal color.Palette) error + type DisplayMode struct + Bpp int + Format PixelFormat + HSync int + Left int + Lower int + Name string + Pixclock int + Right int + Sync int + Upper int + VMode int + VSync int + XRes int + XVRes int + YRes int + YVRes int + func (dm *DisplayMode) Stride() int + type PixelFormat struct + AlphaBits uint8 + AlphaShift uint8 + BlueBits uint8 + BlueShift uint8 + GreenBits uint8 + GreenShift uint8 + RedBits uint8 + RedShift uint8 + func (p PixelFormat) Stride() int + func (p PixelFormat) Type() int + type RGB555 struct + Pix []byte + Rect image.Rectangle + Stride int + func (i *RGB555) At(x, y int) color.Color + func (i *RGB555) Bounds() image.Rectangle + func (i *RGB555) ColorModel() color.Model + func (i *RGB555) PixOffset(x, y int) int + func (i *RGB555) Set(x, y int, c color.Color) + func (i *RGB555) SetRGB(x, y int, c RGBColor) + type RGB565 struct + Pix []byte + Rect image.Rectangle + Stride int + func (i *RGB565) At(x, y int) color.Color + func (i *RGB565) Bounds() image.Rectangle + func (i *RGB565) ColorModel() color.Model + func (i *RGB565) PixOffset(x, y int) int + func (i *RGB565) Set(x, y int, c color.Color) + func (i *RGB565) SetRGB(x, y int, c RGBColor) + type RGBColor struct + B uint8 + G uint8 + R uint8 + func (c RGBColor) RGBA() (r, g, b, a uint32)