Documentation ¶
Index ¶
- Variables
- func AlphaMod(color sdl.Color, alpha float64) sdl.Color
- func RandBlue(r *rand.Rand) sdl.Color
- func RandBrown(r *rand.Rand) sdl.Color
- func RandColor(r *rand.Rand) sdl.Color
- func RandGreen(r *rand.Rand) sdl.Color
- func RandGrey(r *rand.Rand) sdl.Color
- func RandOrange(r *rand.Rand) sdl.Color
- func RandPink(r *rand.Rand) sdl.Color
- func RandPurple(r *rand.Rand) sdl.Color
- func RandRed(r *rand.Rand) sdl.Color
- func RandWhite(r *rand.Rand) sdl.Color
- func RandYellow(r *rand.Rand) sdl.Color
- type RgbaColor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AliceBlue = sdl.Color{R: 0xf0, G: 0xf8, B: 0xff, A: 0xff} Amethyst = sdl.Color{R: 0x99, G: 0x66, B: 0xcc, A: 0xff} AntiqueWhite = sdl.Color{R: 0xfa, G: 0xeb, B: 0xd7, A: 0xff} Aqua = sdl.Color{R: 0x0, G: 0xff, B: 0xff, A: 0xff} Aquamarine = sdl.Color{R: 0x7f, G: 0xff, B: 0xd4, A: 0xff} Azure = sdl.Color{R: 0xf0, G: 0xff, B: 0xff, A: 0xff} Beige = sdl.Color{R: 0xf5, G: 0xf5, B: 0xdc, A: 0xff} Bisque = sdl.Color{R: 0xff, G: 0xe4, B: 0xc4, A: 0xff} Black = sdl.Color{R: 0x0, G: 0x0, B: 0x0, A: 0xff} BlanchedAlmond = sdl.Color{R: 0xff, G: 0xeb, B: 0xcd, A: 0xff} Blue = sdl.Color{R: 0x0, G: 0x0, B: 0xff, A: 0xff} BlueViolet = sdl.Color{R: 0x8a, G: 0x2b, B: 0xe2, A: 0xff} Brown = sdl.Color{R: 0xa5, G: 0x2a, B: 0x2a, A: 0xff} BurlyWood = sdl.Color{R: 0xde, G: 0xb8, B: 0x87, A: 0xff} CadetBlue = sdl.Color{R: 0x5f, G: 0x9e, B: 0xa0, A: 0xff} Chartreuse = sdl.Color{R: 0x7f, G: 0xff, B: 0x0, A: 0xff} Chocolate = sdl.Color{R: 0xd2, G: 0x69, B: 0x1e, A: 0xff} Coral = sdl.Color{R: 0xff, G: 0x7f, B: 0x50, A: 0xff} CornflowerBlue = sdl.Color{R: 0x64, G: 0x95, B: 0xed, A: 0xff} Cornsilk = sdl.Color{R: 0xff, G: 0xf8, B: 0xdc, A: 0xff} Crimson = sdl.Color{R: 0xdc, G: 0x14, B: 0x3c, A: 0xff} Cyan = sdl.Color{R: 0x0, G: 0xff, B: 0xff, A: 0xff} DarkBlue = sdl.Color{R: 0x0, G: 0x0, B: 0x8b, A: 0xff} DarkCyan = sdl.Color{R: 0x0, G: 0x8b, B: 0x8b, A: 0xff} DarkGoldenrod = sdl.Color{R: 0xb8, G: 0x86, B: 0xb, A: 0xff} DarkGray = sdl.Color{R: 0xa9, G: 0xa9, B: 0xa9, A: 0xff} DarkGreen = sdl.Color{R: 0x0, G: 0x64, B: 0x0, A: 0xff} DarkKhaki = sdl.Color{R: 0xbd, G: 0xb7, B: 0x6b, A: 0xff} DarkMagenta = sdl.Color{R: 0x8b, G: 0x0, B: 0x8b, A: 0xff} DarkOliveGreen = sdl.Color{R: 0x55, G: 0x6b, B: 0x2f, A: 0xff} DarkOrange = sdl.Color{R: 0xff, G: 0x8c, B: 0x0, A: 0xff} DarkOrchid = sdl.Color{R: 0x99, G: 0x32, B: 0xcc, A: 0xff} DarkRed = sdl.Color{R: 0x8b, G: 0x0, B: 0x0, A: 0xff} DarkSalmon = sdl.Color{R: 0xe9, G: 0x96, B: 0x7a, A: 0xff} DarkSeaGreen = sdl.Color{R: 0x8f, G: 0xbc, B: 0x8f, A: 0xff} DarkSlateBlue = sdl.Color{R: 0x48, G: 0x3d, B: 0x8b, A: 0xff} DarkSlateGray = sdl.Color{R: 0x2f, G: 0x4f, B: 0x4f, A: 0xff} DarkTurquoise = sdl.Color{R: 0x0, G: 0xce, B: 0xd1, A: 0xff} DarkViolet = sdl.Color{R: 0x94, G: 0x0, B: 0xd3, A: 0xff} DeepPink = sdl.Color{R: 0xff, G: 0x14, B: 0x93, A: 0xff} DeepSkyBlue = sdl.Color{R: 0x0, G: 0xbf, B: 0xff, A: 0xff} DimGray = sdl.Color{R: 0x69, G: 0x69, B: 0x69, A: 0xff} DodgerBlue = sdl.Color{R: 0x1e, G: 0x90, B: 0xff, A: 0xff} FireBrick = sdl.Color{R: 0xb2, G: 0x22, B: 0x22, A: 0xff} FloralWhite = sdl.Color{R: 0xff, G: 0xfa, B: 0xf0, A: 0xff} ForestGreen = sdl.Color{R: 0x22, G: 0x8b, B: 0x22, A: 0xff} Fuchsia = sdl.Color{R: 0xff, G: 0x0, B: 0xff, A: 0xff} Gainsboro = sdl.Color{R: 0xdc, G: 0xdc, B: 0xdc, A: 0xff} GhostWhite = sdl.Color{R: 0xf8, G: 0xf8, B: 0xff, A: 0xff} Gold = sdl.Color{R: 0xff, G: 0xd7, B: 0x0, A: 0xff} Goldenrod = sdl.Color{R: 0xda, G: 0xa5, B: 0x20, A: 0xff} Gray = sdl.Color{R: 0x80, G: 0x80, B: 0x80, A: 0xff} Green = sdl.Color{R: 0x0, G: 0x80, B: 0x0, A: 0xff} GreenYellow = sdl.Color{R: 0xad, G: 0xff, B: 0x2f, A: 0xff} Honeydew = sdl.Color{R: 0xf0, G: 0xff, B: 0xf0, A: 0xff} HotPink = sdl.Color{R: 0xff, G: 0x69, B: 0xb4, A: 0xff} IndianRed = sdl.Color{R: 0xcd, G: 0x5c, B: 0x5c, A: 0xff} Indigo = sdl.Color{R: 0x4b, G: 0x0, B: 0x82, A: 0xff} Ivory = sdl.Color{R: 0xff, G: 0xff, B: 0xf0, A: 0xff} Khaki = sdl.Color{R: 0xf0, G: 0xe6, B: 0x8c, A: 0xff} Lavender = sdl.Color{R: 0xe6, G: 0xe6, B: 0xfa, A: 0xff} LavenderBlush = sdl.Color{R: 0xff, G: 0xf0, B: 0xf5, A: 0xff} LawnGreen = sdl.Color{R: 0x7c, G: 0xfc, B: 0x0, A: 0xff} LemonChiffon = sdl.Color{R: 0xff, G: 0xfa, B: 0xcd, A: 0xff} LightBlue = sdl.Color{R: 0xad, G: 0xd8, B: 0xe6, A: 0xff} LightCoral = sdl.Color{R: 0xf0, G: 0x80, B: 0x80, A: 0xff} LightCyan = sdl.Color{R: 0xe0, G: 0xff, B: 0xff, A: 0xff} LightGoldenrodYellow = sdl.Color{R: 0xfa, G: 0xfa, B: 0xd2, A: 0xff} LightGreen = sdl.Color{R: 0x90, G: 0xee, B: 0x90, A: 0xff} LightGrey = sdl.Color{R: 0xd3, G: 0xd3, B: 0xd3, A: 0xff} LightPink = sdl.Color{R: 0xff, G: 0xb6, B: 0xc1, A: 0xff} LightSalmon = sdl.Color{R: 0xff, G: 0xa0, B: 0x7a, A: 0xff} LightSeaGreen = sdl.Color{R: 0x20, G: 0xb2, B: 0xaa, A: 0xff} LightSkyBlue = sdl.Color{R: 0x87, G: 0xce, B: 0xfa, A: 0xff} LightSlateGray = sdl.Color{R: 0x77, G: 0x88, B: 0x99, A: 0xff} LightSteelBlue = sdl.Color{R: 0xb0, G: 0xc4, B: 0xde, A: 0xff} LightYellow = sdl.Color{R: 0xff, G: 0xff, B: 0xe0, A: 0xff} Lime = sdl.Color{R: 0x0, G: 0xff, B: 0x0, A: 0xff} LimeGreen = sdl.Color{R: 0x32, G: 0xcd, B: 0x32, A: 0xff} Linen = sdl.Color{R: 0xfa, G: 0xf0, B: 0xe6, A: 0xff} Magenta = sdl.Color{R: 0xff, G: 0x0, B: 0xff, A: 0xff} Maroon = sdl.Color{R: 0x80, G: 0x0, B: 0x0, A: 0xff} MediumAquamarine = sdl.Color{R: 0x66, G: 0xcd, B: 0xaa, A: 0xff} MediumBlue = sdl.Color{R: 0x0, G: 0x0, B: 0xcd, A: 0xff} MediumOrchid = sdl.Color{R: 0xba, G: 0x55, B: 0xd3, A: 0xff} MediumPurple = sdl.Color{R: 0x93, G: 0x70, B: 0xdb, A: 0xff} MediumSeaGreen = sdl.Color{R: 0x3c, G: 0xb3, B: 0x71, A: 0xff} MediumSlateBlue = sdl.Color{R: 0x7b, G: 0x68, B: 0xee, A: 0xff} MediumSpringGreen = sdl.Color{R: 0x0, G: 0xfa, B: 0x9a, A: 0xff} MediumTurquoise = sdl.Color{R: 0x48, G: 0xd1, B: 0xcc, A: 0xff} MediumVioletRed = sdl.Color{R: 0xc7, G: 0x15, B: 0x85, A: 0xff} MidnightBlue = sdl.Color{R: 0x19, G: 0x19, B: 0x70, A: 0xff} MintCream = sdl.Color{R: 0xf5, G: 0xff, B: 0xfa, A: 0xff} MistyRose = sdl.Color{R: 0xff, G: 0xe4, B: 0xe1, A: 0xff} Moccasin = sdl.Color{R: 0xff, G: 0xe4, B: 0xb5, A: 0xff} OldLace = sdl.Color{R: 0xfd, G: 0xf5, B: 0xe6, A: 0xff} Olive = sdl.Color{R: 0x80, G: 0x80, B: 0x0, A: 0xff} OliveDrab = sdl.Color{R: 0x6b, G: 0x8e, B: 0x23, A: 0xff} Orange = sdl.Color{R: 0xff, G: 0xa5, B: 0x0, A: 0xff} OrangeRed = sdl.Color{R: 0xff, G: 0x45, B: 0x0, A: 0xff} Orchid = sdl.Color{R: 0xda, G: 0x70, B: 0xd6, A: 0xff} PaleGoldenrod = sdl.Color{R: 0xee, G: 0xe8, B: 0xaa, A: 0xff} PaleGreen = sdl.Color{R: 0x98, G: 0xfb, B: 0x98, A: 0xff} PaleTurquoise = sdl.Color{R: 0xaf, G: 0xee, B: 0xee, A: 0xff} PaleVioletRed = sdl.Color{R: 0xdb, G: 0x70, B: 0x93, A: 0xff} PapayaWhip = sdl.Color{R: 0xff, G: 0xef, B: 0xd5, A: 0xff} PeachPuff = sdl.Color{R: 0xff, G: 0xda, B: 0xb9, A: 0xff} Peru = sdl.Color{R: 0xcd, G: 0x85, B: 0x3f, A: 0xff} Pink = sdl.Color{R: 0xff, G: 0xc0, B: 0xcb, A: 0xff} Plum = sdl.Color{R: 0xdd, G: 0xa0, B: 0xdd, A: 0xff} PowderBlue = sdl.Color{R: 0xb0, G: 0xe0, B: 0xe6, A: 0xff} Purple = sdl.Color{R: 0x80, G: 0x0, B: 0x80, A: 0xff} Red = sdl.Color{R: 0xff, G: 0x0, B: 0x0, A: 0xff} RosyBrown = sdl.Color{R: 0xbc, G: 0x8f, B: 0x8f, A: 0xff} RoyalBlue = sdl.Color{R: 0x41, G: 0x69, B: 0xe1, A: 0xff} SaddleBrown = sdl.Color{R: 0x8b, G: 0x45, B: 0x13, A: 0xff} Salmon = sdl.Color{R: 0xfa, G: 0x80, B: 0x72, A: 0xff} SandyBrown = sdl.Color{R: 0xf4, G: 0xa4, B: 0x60, A: 0xff} SeaGreen = sdl.Color{R: 0x2e, G: 0x8b, B: 0x57, A: 0xff} Seashell = sdl.Color{R: 0xff, G: 0xf5, B: 0xee, A: 0xff} Sienna = sdl.Color{R: 0xa0, G: 0x52, B: 0x2d, A: 0xff} Silver = sdl.Color{R: 0xc0, G: 0xc0, B: 0xc0, A: 0xff} SkyBlue = sdl.Color{R: 0x87, G: 0xce, B: 0xeb, A: 0xff} SlateBlue = sdl.Color{R: 0x6a, G: 0x5a, B: 0xcd, A: 0xff} SlateGray = sdl.Color{R: 0x70, G: 0x80, B: 0x90, A: 0xff} Snow = sdl.Color{R: 0xff, G: 0xfa, B: 0xfa, A: 0xff} SpringGreen = sdl.Color{R: 0x0, G: 0xff, B: 0x7f, A: 0xff} SteelBlue = sdl.Color{R: 0x46, G: 0x82, B: 0xb4, A: 0xff} Tan = sdl.Color{R: 0xd2, G: 0xb4, B: 0x8c, A: 0xff} Teal = sdl.Color{R: 0x0, G: 0x80, B: 0x80, A: 0xff} Thistle = sdl.Color{R: 0xd8, G: 0xbf, B: 0xd8, A: 0xff} Tomato = sdl.Color{R: 0xff, G: 0x63, B: 0x47, A: 0xff} Turquoise = sdl.Color{R: 0x40, G: 0xe0, B: 0xd0, A: 0xff} Violet = sdl.Color{R: 0xee, G: 0x82, B: 0xee, A: 0xff} Wheat = sdl.Color{R: 0xf5, G: 0xde, B: 0xb3, A: 0xff} White = sdl.Color{R: 0xff, G: 0xff, B: 0xff, A: 0xff} WhiteSmoke = sdl.Color{R: 0xf5, G: 0xf5, B: 0xf5, A: 0xff} Yellow = sdl.Color{R: 0xff, G: 0xff, B: 0x0, A: 0xff} YellowGreen = sdl.Color{R: 0x9a, G: 0xcd, B: 0x32, A: 0xff} )
View Source
var ( AllColors = []sdl.Color{}/* 139 elements not displayed */ BlueColors = []sdl.Color{ Navy, DarkBlue, MediumBlue, Blue, DeepSkyBlue, DarkTurquoise, Cyan, MidnightBlue, DodgerBlue, Turquoise, RoyalBlue, SteelBlue, MediumTurquoise, CadetBlue, CornflowerBlue, MediumSlateBlue, Aquamarine, SkyBlue, LightSkyBlue, LightBlue, PaleTurquoise, LightSteelBlue, PowderBlue, LightCyan, } BrownColors = []sdl.Color{ Maroon, SaddleBrown, Sienna, Brown, DarkGoldenrod, RosyBrown, Peru, Chocolate, Tan, Goldenrod, BurlyWood, SandyBrown, Wheat, NavajoWhite, Bisque, BlanchedAlmond, Cornsilk, } GreenColors = []sdl.Color{ DarkGreen, Green, Teal, DarkCyan, MediumSpringGreen, Lime, SpringGreen, LightSeaGreen, ForestGreen, SeaGreen, LimeGreen, MediumSeaGreen, DarkOliveGreen, MediumAquamarine, OliveDrab, LawnGreen, Chartreuse, Olive, DarkSeaGreen, LightGreen, PaleGreen, YellowGreen, GreenYellow, } GreyColors = []sdl.Color{ Black, DarkSlateGray, DimGray, SlateGray, LightSlateGray, Gray, DarkGray, Silver, LightGrey, Gainsboro, } OrangeColors = []sdl.Color{ OrangeRed, Tomato, Coral, DarkOrange, Orange, } PinkColors = []sdl.Color{ MediumVioletRed, PaleVioletRed, DeepPink, HotPink, LightPink, Pink, } PurpleColors = []sdl.Color{ DarkSlateBlue, Indigo, SlateBlue, MediumSlateBlue, Purple, BlueViolet, DarkMagenta, MediumPurple, DarkViolet, DarkOrchid, Amethyst, MediumOrchid, Thistle, Orchid, Plum, Lavender, Violet, Fuchsia, } RedColors = []sdl.Color{ DarkRed, FireBrick, IndianRed, Crimson, DarkSalmon, LightCoral, Salmon, Red, LightSalmon, } WhiteColors = []sdl.Color{ AliceBlue, Honeydew, Azure, Beige, WhiteSmoke, MintCream, GhostWhite, AntiqueWhite, Linen, OldLace, MistyRose, LavenderBlush, Seashell, FloralWhite, Snow, Ivory, White, } YellowColors = []sdl.Color{ DarkKhaki, PaleGoldenrod, Khaki, LightGoldenrodYellow, Gold, PeachPuff, Moccasin, PapayaWhip, LemonChiffon, Yellow, LightYellow, } AllNames = []string{}/* 139 elements not displayed */ BlueNames = []string{ "Navy", "DarkBlue", "MediumBlue", "Blue", "DeepSkyBlue", "DarkTurquoise", "Cyan", "MidnightBlue", "DodgerBlue", "Turquoise", "RoyalBlue", "SteelBlue", "MediumTurquoise", "CadetBlue", "CornflowerBlue", "MediumSlateBlue", "Aquamarine", "SkyBlue", "LightSkyBlue", "LightBlue", "PaleTurquoise", "LightSteelBlue", "PowderBlue", "LightCyan", } BrownNames = []string{ "Maroon", "SaddleBrown", "Sienna", "Brown", "DarkGoldenrod", "RosyBrown", "Peru", "Chocolate", "Tan", "Goldenrod", "BurlyWood", "SandyBrown", "Wheat", "NavajoWhite", "Bisque", "BlanchedAlmond", "Cornsilk", } GreenNames = []string{ "DarkGreen", "Green", "Teal", "DarkCyan", "MediumSpringGreen", "Lime", "SpringGreen", "LightSeaGreen", "ForestGreen", "SeaGreen", "LimeGreen", "MediumSeaGreen", "DarkOliveGreen", "MediumAquamarine", "OliveDrab", "LawnGreen", "Chartreuse", "Olive", "DarkSeaGreen", "LightGreen", "PaleGreen", "YellowGreen", "GreenYellow", } GreyNames = []string{ "Black", "DarkSlateGray", "DimGray", "SlateGray", "LightSlateGray", "Gray", "DarkGray", "Silver", "LightGrey", "Gainsboro", } OrangeNames = []string{ "OrangeRed", "Tomato", "Coral", "DarkOrange", "Orange", } PinkNames = []string{ "MediumVioletRed", "PaleVioletRed", "DeepPink", "HotPink", "LightPink", "Pink", } PurpleNames = []string{ "DarkSlateBlue", "Indigo", "SlateBlue", "MediumSlateBlue", "Purple", "BlueViolet", "DarkMagenta", "MediumPurple", "DarkViolet", "DarkOrchid", "Amethyst", "MediumOrchid", "Thistle", "Orchid", "Plum", "Lavender", "Violet", "Fuchsia", } RedNames = []string{ "DarkRed", "FireBrick", "IndianRed", "Crimson", "DarkSalmon", "LightCoral", "Salmon", "Red", "LightSalmon", } WhiteNames = []string{ "AliceBlue", "Honeydew", "Azure", "Beige", "WhiteSmoke", "MintCream", "GhostWhite", "AntiqueWhite", "Linen", "OldLace", "MistyRose", "LavenderBlush", "Seashell", "FloralWhite", "Snow", "Ivory", "White", } YellowNames = []string{ "DarkKhaki", "PaleGoldenrod", "Khaki", "LightGoldenrodYellow", "Gold", "PeachPuff", "Moccasin", "PapayaWhip", "LemonChiffon", "Yellow", "LightYellow", } )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.