Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from PIL import Image
- text="hello world"
- img=Image.new('RGB',(len(text),1))
- for i in range(len(text)):
- img.putpixel((i,0),1,0,0)
- img.save('out.png)')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement