Adobe Photoshop设计平面设计
如何制作这种出这种彩虹字海报?
问题描述


这种不写程序生成简直都愧为智慧生物啊……





单位的机器没装 Mathematica,只好用 Processing 了…… 话说 Processing 这玩意真是丑陋,以副作用为生的系统………………
void setup()
{
size(1280, 800);
// background(0, 10, 20);
background(255, 250, 240);
// Create the font
PFont f = createFont("STSongti-SC-Bold", 500);
textFont(f);
rectMode(CENTER);
textAlign(CENTER, CENTER);
colorMode(HSB, 360, 100, 100);
blendMode(MULTIPLY);
noLoop();
}
void drawChar(String text, float x, float y, float scale_x)
{
pushMatrix();
translate(x, y);
scale(scale_x, 1.0);
text(text, 0, 0);
popMatrix();
}
void draw()
{
int Steps = 20;
int Hue = 0;
int Alpha = int(1.0/Steps*5 * 100);
for(float scale = 1.0; scale > -1.0; scale -= 1.0/Steps)
{
fill(Hue, 50, 50, Alpha);
drawChar("牛", 350, 300, scale);
drawChar("逼", 1280-350, 300, scale);
Hue += 360 / Steps;
}
save("mult.png");
}
评论 24