こんにちは。たやち(tayati_369)です。
久々の投稿です。I drew a cow pattern.
おかずさんのnote(https://note.mu/outburst/n/n2b30715f4062?creator_urlname=outburstz)の投稿をみて自分も真似させていただきました。
参考程度にみてください。牛柄を描こうと頑張ってみました。
おかずさんのパステルなカラーセレクトが自分の好みで楽しかったです。
void setup(){ size(600,600); pixelDensity(2); noLoop(); } void draw(){ int c = int(random(20,50)); float y = random(689); float zStep=0.000001; color col = getCol(); background(getCol()); for(int i=0; i < c; i++){ float x = random(1)*width; float z = random(1)*height; float maxw = random(5,40); float l =random(100,200)*maxw; for(int j=0; j < l; j++){ float ans =0.0003; float wns = 0.004; float w= noise(j*wns,i*wns)*maxw; // float angle = noise(x*ans,y*ans,z)*50; float angle = noise(x*ans,y*ans,z)*50*random(100); noStroke(); fill(col); circle(x,y,w); y+=sin(angle); x+=cos(angle); z+=zStep; } } noiseSeed(int(random(1000))); } void mousePressed(){ redraw(); } void keyPressed(){ if(key =='s')saveFrame("###.png"); } int[] colors = {#fe4a49,#2ab7ca,#fed766,#4f4ff7, #ffffff, #FF9BDA}; int getCol(){ return colors[(int)random(colors.length)]; }
コメント