Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

draw pixel by pixel python

from PIL import Image

def newImg():
    img = Image.new('RGB', (100, 100))
    img.putpixel((30,60), (155,155,55))
    img.save('sqr.png')

    return img

wallpaper = newImg()
wallpaper.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python list contains substring 
Python :: py to exe converter online 
Python :: line number in logging python 
Python :: how to openn file dialog in tkinter 
Python :: pandas show complete string 
Python :: python loop through files in directory 
Python :: Embed picture in email using smtplib 
Python :: pandas plot use index as x 
Python :: how to take password using pyautogui 
Python :: make python file executable linux 
Python :: graphics in python in repl 
Python :: xpath helium 
Python :: init image with zeros python 
Python :: python collections counter 
Python :: how to install threading module in python 
Python :: numpy identity matrix 
Python :: how to save inputs python 
Python :: label encoder pyspark 
Python :: compute count2(aacaagctgataaacatttaaagag, aaaaa). in python 
Python :: update tupple in python 
Python :: add trendline to plot matplotlib 
Python :: Right click context menu of a file in Python 
Python :: matplotlib pie label size 
Python :: how to print a line letter by letter in python 
Python :: python3 inorder generator 
Python :: python beep 
Python :: open mat file in python 
Python :: python memoization 
Python :: python check if variable is string 
Python :: python expression factorisation 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =