201708-09 updatePixels()更新像素点 NameupdatePixels()更新像素点 Examples PImage img = loadImage("rockies.jpg"); image(img, 0, 0); int halfImage = img.width * img.height/2; loadPixels.... Read More >
201708-09 set()设置像素颜色 Nameset()设置像素颜色 Examples color black = color(0); set(30, 20, black); set(85, 20, black); set(85, 75, black); set(30, 75, black); for (.... Read More >
201708-09 pixels[]像素数组 Namepixels[]像素数组 Examples color pink = color(255, 102, 204); loadPixels(); for (int i = 0; i < (width*height/2)-width/2; i++) { pixels[i].... Read More >
201708-09 loadPixels()加载像素 NameloadPixels()加载像素 Examples int halfImage = width*height/2; PImage myImage = loadImage("apples.jpg"); image(myImage, 0, 0); loadPixels(); .... Read More >
201708-09 get()读取像素颜色 Nameget()读取像素颜色 Examples PImage myImage = loadImage("apples.jpg"); image(myImage, 0, 0); PImage c = get(); image(c, width/2, 0); PImag.... Read More >
201708-09 filter()选择滤镜筛选 Namefilter()选择滤镜筛选 Examples PImage img; img = loadImage("apples.jpg"); image(img, 0, 0); filter(THRESHOLD); PImage img; img = loadImag.... Read More >
201708-09 copy()复制像素 Namecopy()复制像素 Examples PImage img = loadImage("eames.jpg"); image(img, 0, 0, width, height); copy(7, 22, 10, 10, 35, 25, 50, 50); stroke(255).... Read More >
201708-09 blend()混合 () Nameblend()混合 () Examples background(loadImage("rockies.jpg")); PImage img = loadImage("bricks.jpg"); image(img, 0, 0); blend(img, 0, 0, 33, 1.... Read More >
201708-09 textureWrap()纹理重绘 NametextureWrap()纹理重绘 ExamplesPImage img; void setup() { size(300, 300, P2D); img = loadImage("berlin-1.jpg"); textureMode(NORMAL); } void draw() { background(0); translate(width/2, hei.... Read More >
201708-09 textureMode()纹理模式 NametextureMode()纹理模式 Examples size(100, 100, P3D); noStroke(); PImage img = loadImage("laDefense.jpg"); textureMode(IMAGE); beginShape(); tex.... Read More >
201708-09 texture()纹理 Nametexture()纹理 Examples size(100, 100, P3D); noStroke(); PImage img = loadImage("laDefense.jpg"); beginShape(); texture(img); vertex(10, 20, .... Read More >
201708-09 tint()设置图像填充色 Nametint()设置图像填充色 Examples PImage img; img = loadImage("laDefense.jpg"); image(img, 0, 0); tint(0, 153, 204); // Tint blue image(img, 50, 0);.... Read More >