24 #include <QtCore/QDebug>
25 #include <QtGui/QColor>
27 using namespace KJSEmbed;
122 QColor darkColor =
value.light( KJSEmbed::
extractInt( exec, args, 0, 200));
136 {
"setAlpha", 1, KJS::DontDelete|KJS::ReadOnly, &callSetAlpha},
137 {
"setBlue", 1, KJS::DontDelete|KJS::ReadOnly, &callSetBlue},
138 {
"setGreen", 1, KJS::DontDelete|KJS::ReadOnly, &callSetGreen},
139 {
"setRed", 1, KJS::DontDelete|KJS::ReadOnly, &callSetRed},
140 {
"setRgb", 4, KJS::DontDelete|KJS::ReadOnly, &callSetRgb},
141 {
"setCmyk", 5, KJS::DontDelete|KJS::ReadOnly, &callSetCmyk},
142 {
"setHsv", 4, KJS::DontDelete|KJS::ReadOnly, &callSetHsv},
143 {
"setNamedColor", 1, KJS::DontDelete|KJS::ReadOnly, &callSetNamedColor},
144 {
"alpha", 0, KJS::DontDelete|KJS::ReadOnly, &callAlpha},
145 {
"blue", 0, KJS::DontDelete|KJS::ReadOnly, &callBlue},
146 {
"cyan", 0, KJS::DontDelete|KJS::ReadOnly, &callCyan},
147 {
"green", 0, KJS::DontDelete|KJS::ReadOnly, &callGreen},
148 {
"hue", 0, KJS::DontDelete|KJS::ReadOnly, &callHue},
149 {
"magenta", 0, KJS::DontDelete|KJS::ReadOnly, &callMagenta},
150 {
"red", 0, KJS::DontDelete|KJS::ReadOnly, &callRed},
151 {
"saturation", 0, KJS::DontDelete|KJS::ReadOnly, &callSaturation},
152 {
"yellow", 0, KJS::DontDelete|KJS::ReadOnly, &callYellow},
153 {
"light", 1, KJS::DontDelete|KJS::ReadOnly, &callLight},
154 {
"dark", 1, KJS::DontDelete|KJS::ReadOnly, &callDark},
155 {
"convertTo", 1, KJS::DontDelete|KJS::ReadOnly, &callConvertTo},
156 {
"spec", 0, KJS::DontDelete|KJS::ReadOnly, &callSpec}
163 {
"Cmyk",QColor::Cmyk},
164 {
"Invalid",QColor::Invalid}
170 if( args.size() == 1 )
174 else if( args.size() >= 3 )
182 if( args.size() == 4 )