Create halftoningcode