return report_1(context, args[0].report(context));
}
public LogoList report_1(Context context, Object obj) throws LogoException {
if (obj instanceof LogoList) {
LogoList list = (LogoList) obj;
if (list.size() != 3) {
throw new org.nlogo.nvm.EngineException
(context, this, displayName() + " an rgb list must have 3 elements");
}
try {
int argb = java.awt.Color.HSBtoRGB
(StrictMath.max(0, StrictMath.min(255, ((Double) list.get(0)).intValue())) / 255,
StrictMath.max(0, StrictMath.min(255, ((Double) list.get(1)).intValue())) / 255,
StrictMath.max(0, StrictMath.min(255, ((Double) list.get(2)).intValue())) / 255);
LogoListBuilder hsbList = new LogoListBuilder();
hsbList.add(Double.valueOf((argb >> 16) & 0xff));
hsbList.add(Double.valueOf((argb >> 8) & 0xff));
hsbList.add(Double.valueOf(argb & 0xff));
return hsbList.toLogoList();