-- 作者:jinzhe
-- 发布时间:2015/10/21 11:26:51
--
cond1:=hhv(h,4)<ref(h,4) and llv(l,4)>ref(l,4); cond2:=hhv(h,3)<ref(h,3) and llv(l,3)>ref(l,3); cond3:=hhv(h,2)<ref(h,2) and llv(l,2)>ref(l,2); cond4:=hhv(h,1)<ref(h,1) and llv(l,1)>ref(l,1);
drawsl(cond1,ref(h,4),0,4,1),COLORRED; drawsl(cond1,ref(l,4),0,4,1),COLORRED;
drawsl(cond2 and not(cond1),ref(h,3),0,3,1),COLORRED; drawsl(cond2 and not(cond1),ref(l,3),0,3,1),COLORRED;
drawsl(cond3 and not(cond1 or cond2),ref(h,2),0,2,1),COLORRED; drawsl(cond3 and not(cond1 or cond2),ref(l,2),0,2,1),COLORRED;
drawsl(cond4 and not(cond1 or cond2 or cond3),ref(h,1),0,1,1),COLORRED; drawsl(cond4 and not(cond1 or cond2 or cond3),ref(l,1),0,1,1),COLORRED;
|