from PIL import Image, ImageFilter
im = Image.new(mode='RGB', size=(300,300), color=(150,200,50))
im.show()
PIL
- import lib:Pillow package modulesImage.new
- create newPIL
image objectmode='RGB'
- create new image inRGB
color mode(300,300)
- new image width and height(150,200,50)
- background color as anRGB
tuple.show()
- displays resulting image
group: create
from PIL import Image, ImageFilter
im = Image.new(mode='RGB', size=(300,300), color=(150,200,50))
im.show()