201708-08 imageMode()图像模式 NameimageMode()图像模式 Examples PImage img; void setup() { img = loadImage("laDefense.jpg"); } void draw() { imageMode(CORNER); image(i.... Read More >
201708-08 image()图像函数 Nameimage()图像函数 Examples PImage img; void setup() { // Images must be in the "data" directory to load correctly img = loadImage("laDefen.... Read More >
201708-08 PImage图像数据类型 NamePImage图像数据类型Examples PImage photo; void setup() { size(100, 100); photo = loadImage("laDefense.jpg"); } void draw() { image(photo.... Read More >
201708-08 createImage()创建图像 NamecreateImage()创建图像 Examples PImage img = createImage(66, 66, RGB); img.loadPixels(); for (int i = 0; i < img.pixels.length; i++) { img.... Read More >
201708-08 saturation()颜色的饱和度值 Namesaturation()颜色的饱和度值 Examples noStroke(); colorMode(HSB, 255); color c = color(0, 126, 255); fill(c); rect(15, 20, 35, 60); float value = s.... Read More >
201708-08 red()红色值 Namered()红色值 Examples color c = color(255, 204, 0); // Define color 'c' fill(c); // Use color variable 'c' as fill color rect(15, 20, 35, 60.... Read More >
201708-08 lerpColor()线性颜色 NamelerpColor()线性颜色 Examples stroke(255); background(51); color from = color(204, 102, 0); color to = color(0, 102, 153); color interA = lerpC.... Read More >
201708-08 hue()色调值 Namehue()色调值 Examples noStroke(); colorMode(HSB, 255); color c = color(0, 126, 255); fill(c); rect(15, 20, 35, 60); float value = hue(c); // .... Read More >
201708-08 green()绿色值 Namegreen()绿色值 Examples color c = color(20, 75, 200); // Define color 'c' fill(c); // Use color variable 'c' as fill color rect(15, 20, 35, .... Read More >
201708-08 color()颜色类型 Name color()颜色类型 Examples color c = color(255, 204, 0); // Define color 'c' fill(c); // Use color variable 'c' as fill.... Read More >
201708-08 brightness()颜色的亮度值 Namebrightness()颜色的亮度值 Examples noStroke(); colorMode(HSB, 255); color c = color(0, 126, 255); fill(c); rect(15, 20, 35, 60); float value = br.... Read More >
201708-08 blue()蓝色值 Nameblue()蓝色值 Examples color c = color(175, 100, 220); // Define color 'c' fill(c); // Use color variable 'c' as fill color rect(15, 20, 35,.... Read More >
201708-08 alpha()颜色的透明度值 Namealpha()颜色的透明度值 Examples noStroke(); color c = color(0, 126, 255, 102); fill(c); rect(15, 15, 35, 70); float value = alpha(c); // Sets 'va.... Read More >
201708-08 stroke()描边 Namestroke()描边 Examples stroke(153); rect(30, 20, 55, 55); stroke(204, 102, 0); rect(30, 20, 55, 55);DescriptionSets the color used to.... Read More >
201708-08 noStroke()禁用描边 NamenoStroke()禁用描边 Examples noStroke(); rect(30, 20, 55, 55);DescriptionDisables drawing the stroke (outline). If both noStroke() and noFill().... Read More >
201708-08 noFill()不填充 NamenoFill()不填充 Examples rect(15, 10, 55, 55); noFill(); rect(30, 20, 55, 55);DescriptionDisables filling geometry. If both noStroke() and noF.... Read More >
201708-08 fill()填充颜色 Namefill()填充颜色 Examples fill(153); rect(30, 20, 55, 55); fill(204, 102, 0); rect(30, 20, 55, 55);DescriptionSets the color used to fil.... Read More >
201708-08 colorMode()颜色模式 NamecolorMode()颜色模式 Examples noStroke(); colorMode(RGB, 100); for (int i = 0; i < 100; i++) { for (int j = 0; j < 100; j++) { stro.... Read More >