Cover
Reference
Tutorials
Bugs
img = createImage(66, 66, RGB)
img$loadPixels()
for (i in 0:65) {
for (j in 0:65) {
img$set(i, j, color(0, 9, 102))
}
}
img$updatePixels()
image(img, 17, 17)
img = createImage(66, 66, ARGB)
img$loadPixels()
for (i in 0:65) {
for (j in 0:65) {
img$set(i, j, color(0, 90, 102, i * 2))
}
}
img$updatePixels()
image(img, 17, 17)
image(img, 34, 34)
createImage(w ,h ,format )
| w | int: width in pixels |
|---|---|
| h | int: height in pixels |
| format | int: Either RGB, ARGB, ALPHA (grayscale alpha channel) |