Name

createImage()

Examples
img = createImage(66, 66, RGB)
img.loadPixels()
for i in range(len(img.pixels)): 
    img.pixels[i] = color(0, 90, 102)
img.updatePixels()
image(img, 17, 17)
img = createImage(66, 66, ARGB)
img.loadPixels()
for i in range(len(img.pixels)): 
    img.pixels[i] = color(0, 90, 102, i % img.width * 2)
img.updatePixels()
image(img, 17, 17)
image(img, 34, 34)
Description
Syntax
createImage(w, h, format)
Parameters
w
h
format
Related PImage
PGraphics
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License