⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 disablestyle.pde

📁 This is processing for java examples.
💻 PDE
字号:
/** * Ignore Styles.  * Illustration by George Brower.  *  * Shapes are loaded with style information that tells them how * to draw (the color, stroke weight, etc.) The disableStyle()  * method of PShape turns off this information. The enableStyle() * method turns it back on. */PShape bot;void setup() {  size(640, 360);  smooth();  // The file "bot1.svg" must be in the data folder  // of the current sketch to load successfully  bot = loadShape("bot1.svg");  noLoop();} void draw() {  background(102);    // Draw left bot  bot.disableStyle();  // Ignore the colors in the SVG  fill(0, 102, 153);    // Set the SVG fill to blue  stroke(255);          // Set the SVG fill to white  shape(bot, 20, 25, 300, 300);  // Draw right bot  bot.enableStyle();  shape(bot, 320, 25, 300, 300);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -