Wizzup?
2010-01-04 10:42:35
So, I think it would be really useful to have a function that searches from the right bottom corner to the left top corner. We could create a new function for this, or introduce the following:
In FindColor:
if (xs,ys) < (xe,ye) then FindColorNormal (from left)
else if (xs,ys) > (xe, ye) then FindColorRightBottomFirst;
I don't think it would be much of an overhead to add this, but it would make "debugging" your scripts code harder; currently we throw an exception if invalid coordinates are passed. (xs,ys>xe,ye is also considered invalid)
EDIT: We could also make it some sort of mode.
SetColorFindingModeBlaBla(cfm_LeftTop)
SetColorFindingModeBlaBla(cfm_BottomRight)
In FindColor:
if (xs,ys) < (xe,ye) then FindColorNormal (from left)
else if (xs,ys) > (xe, ye) then FindColorRightBottomFirst;
I don't think it would be much of an overhead to add this, but it would make "debugging" your scripts code harder; currently we throw an exception if invalid coordinates are passed. (xs,ys>xe,ye is also considered invalid)
EDIT: We could also make it some sort of mode.
SetColorFindingModeBlaBla(cfm_LeftTop)
SetColorFindingModeBlaBla(cfm_BottomRight)