IsColorEasy
isok = Base.IsColorEasy(color,title,percentage,more_wait_time)
判断是否某些颜色点符合
参数
ID | 名称 | 类型及说明 |
---|---|---|
1 | color | [string]颜色点数据数组如[[x,y,color],[x,y,color]] |
2 | title | [string]这次等待的目的地,如母港,用于日志输出 |
3 | percentage | [int]颜色符合百分比,如color中写了两个点,然后这个值是50,则符合一个点就会返回true,默认100 |
4 | more_wait_time | [int]判断true后等待时间,毫秒 |
返回值
ID | 名称 | 类型及说明 |
---|---|---|
1 | isok | [bool]是否成功 |