| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"image/color" |
| 10 |
"reflect" |
| 11 |
) |
| 12 |
|
| 13 |
func init() { |
| 14 |
Symbols["image/color/color"] = map[string]reflect.Value{ |
| 15 |
|
| 16 |
"Alpha16Model": reflect.ValueOf(&color.Alpha16Model).Elem(), |
| 17 |
"AlphaModel": reflect.ValueOf(&color.AlphaModel).Elem(), |
| 18 |
"Black": reflect.ValueOf(&color.Black).Elem(), |
| 19 |
"CMYKModel": reflect.ValueOf(&color.CMYKModel).Elem(), |
| 20 |
"CMYKToRGB": reflect.ValueOf(color.CMYKToRGB), |
| 21 |
"Gray16Model": reflect.ValueOf(&color.Gray16Model).Elem(), |
| 22 |
"GrayModel": reflect.ValueOf(&color.GrayModel).Elem(), |
| 23 |
"ModelFunc": reflect.ValueOf(color.ModelFunc), |
| 24 |
"NRGBA64Model": reflect.ValueOf(&color.NRGBA64Model).Elem(), |
| 25 |
"NRGBAModel": reflect.ValueOf(&color.NRGBAModel).Elem(), |
| 26 |
"NYCbCrAModel": reflect.ValueOf(&color.NYCbCrAModel).Elem(), |
| 27 |
"Opaque": reflect.ValueOf(&color.Opaque).Elem(), |
| 28 |
"RGBA64Model": reflect.ValueOf(&color.RGBA64Model).Elem(), |
| 29 |
"RGBAModel": reflect.ValueOf(&color.RGBAModel).Elem(), |
| 30 |
"RGBToCMYK": reflect.ValueOf(color.RGBToCMYK), |
| 31 |
"RGBToYCbCr": reflect.ValueOf(color.RGBToYCbCr), |
| 32 |
"Transparent": reflect.ValueOf(&color.Transparent).Elem(), |
| 33 |
"White": reflect.ValueOf(&color.White).Elem(), |
| 34 |
"YCbCrModel": reflect.ValueOf(&color.YCbCrModel).Elem(), |
| 35 |
"YCbCrToRGB": reflect.ValueOf(color.YCbCrToRGB), |
| 36 |
|
| 37 |
|
| 38 |
"Alpha": reflect.ValueOf((*color.Alpha)(nil)), |
| 39 |
"Alpha16": reflect.ValueOf((*color.Alpha16)(nil)), |
| 40 |
"CMYK": reflect.ValueOf((*color.CMYK)(nil)), |
| 41 |
"Color": reflect.ValueOf((*color.Color)(nil)), |
| 42 |
"Gray": reflect.ValueOf((*color.Gray)(nil)), |
| 43 |
"Gray16": reflect.ValueOf((*color.Gray16)(nil)), |
| 44 |
"Model": reflect.ValueOf((*color.Model)(nil)), |
| 45 |
"NRGBA": reflect.ValueOf((*color.NRGBA)(nil)), |
| 46 |
"NRGBA64": reflect.ValueOf((*color.NRGBA64)(nil)), |
| 47 |
"NYCbCrA": reflect.ValueOf((*color.NYCbCrA)(nil)), |
| 48 |
"Palette": reflect.ValueOf((*color.Palette)(nil)), |
| 49 |
"RGBA": reflect.ValueOf((*color.RGBA)(nil)), |
| 50 |
"RGBA64": reflect.ValueOf((*color.RGBA64)(nil)), |
| 51 |
"YCbCr": reflect.ValueOf((*color.YCbCr)(nil)), |
| 52 |
|
| 53 |
|
| 54 |
"_Color": reflect.ValueOf((*_image_color_Color)(nil)), |
| 55 |
"_Model": reflect.ValueOf((*_image_color_Model)(nil)), |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
|
| 60 |
type _image_color_Color struct { |
| 61 |
IValue interface{} |
| 62 |
WRGBA func() (r uint32, g uint32, b uint32, a uint32) |
| 63 |
} |
| 64 |
|
| 65 |
func (W _image_color_Color) RGBA() (r uint32, g uint32, b uint32, a uint32) { return W.WRGBA() } |
| 66 |
|
| 67 |
|
| 68 |
type _image_color_Model struct { |
| 69 |
IValue interface{} |
| 70 |
WConvert func(c color.Color) color.Color |
| 71 |
} |
| 72 |
|
| 73 |
func (W _image_color_Model) Convert(c color.Color) color.Color { return W.WConvert(c) } |