Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| sophie-yen-generative [2021/06/20 18:38] – sophie.yen | sophie-yen-generative [2021/06/29 01:44] (current) – renick | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Sophie' | + | ====== Sophie |
| + | by [[: | ||
| < | < | ||
| - | <iframe src=" | + | <iframe src=" |
| </ | </ | ||
| + | |||
| + | ===== about my crazyDog.js ===== | ||
| This is my crazyDog.js. I've been working on it all semester. For me, the hardest thing was to make all the stars. I work on the stars for many days and It's very complicated. I'm proud of it because I think when I'm finished with the stars, the stars all look very well. The code for my artwork is below. | This is my crazyDog.js. I've been working on it all semester. For me, the hardest thing was to make all the stars. I work on the stars for many days and It's very complicated. I'm proud of it because I think when I'm finished with the stars, the stars all look very well. The code for my artwork is below. | ||
| + | |||
| + | The animation code is released under the [[https:// | ||
| + | |||
| + | ===== the code for my crazyDog.js ===== | ||
| < | < | ||
| Line 11: | Line 18: | ||
| function setup() { | function setup() { | ||
| - | createCanvas(2000, 1200); | + | createCanvas(1800, 780); |
| for (var i = 0; i < 1000; i++) { | for (var i = 0; i < 1000; i++) { | ||
| stars[i] = new Star(); | stars[i] = new Star(); | ||
| Line 27: | Line 34: | ||
| //ears | //ears | ||
| fill(color(" | fill(color(" | ||
| - | circle(this.xposition+40, | + | circle(this.xposition+40, |
| - | circle(this.xposition+80, | + | circle(this.xposition+80, |
| //neck | //neck | ||
| fill(color(" | fill(color(" | ||
| - | rect(this.xposition+60, | + | rect(this.xposition+60, |
| //face | //face | ||
| fill(color(" | fill(color(" | ||
| - | circle(this.xposition+60, | + | circle(this.xposition+60, |
| //eye | //eye | ||
| fill(color(this.eyeColor)); | fill(color(this.eyeColor)); | ||
| - | ellipse(this.xposition+45, | + | ellipse(this.xposition+45, |
| - | ellipse(this.xposition+75, | + | ellipse(this.xposition+75, |
| //hat | //hat | ||
| fill(color(this.hatColor)); | fill(color(this.hatColor)); | ||
| - | rect(this.xposition+23, | + | rect(this.xposition+23, |
| - | rect(this.xposition+40, | + | rect(this.xposition+40, |
| //hat decorate | //hat decorate | ||
| fill(250, 245, 107); | fill(250, 245, 107); | ||
| - | rect(this.xposition+23, | + | rect(this.xposition+23, |
| //mouth | //mouth | ||
| fill(color(" | fill(color(" | ||
| - | circle(this.xposition+60, | + | circle(this.xposition+60, |
| //nose | //nose | ||
| fill(145, 57, 57); | fill(145, 57, 57); | ||
| - | ellipse(this.xposition+60, | + | ellipse(this.xposition+60, |
| //blush | //blush | ||
| fill('# | fill('# | ||
| - | circle(this.xposition+38, | + | circle(this.xposition+38, |
| - | circle(this.xposition+80, | + | circle(this.xposition+80, |
| //legs | //legs | ||
| fill(color(" | fill(color(" | ||
| - | ellipse(this.xposition+110, | + | ellipse(this.xposition+110, |
| - | ellipse(this.xposition+130, | + | ellipse(this.xposition+130, |
| //tails | //tails | ||
| fill(color(" | fill(color(" | ||
| - | ellipse(this.xposition+140, | + | ellipse(this.xposition+140, |
| //body | //body | ||
| fill(color(" | fill(color(" | ||
| - | circle(this.xposition+116, | + | circle(this.xposition+116, |
| //stage | //stage | ||
| fill(255, | fill(255, | ||
| - | rect(30, | + | rect(30, |
| //moon | //moon | ||
| fill(250, 237, 55); | fill(250, 237, 55); | ||
| - | circle(80, | + | circle(80, |
| fill(0, | fill(0, | ||
| - | circle(100, | + | circle(100, |
| //star | //star | ||
| fill(250, 237, 55); | fill(250, 237, 55); | ||