For example, I want to generate a image(256*256) like this, how could I achieve that? 