Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| brandon-chen-generative [2021/06/20 18:22] – created brandon.chen | brandon-chen-generative [2021/06/29 01:27] (current) – renick | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Brandon Chen's crazyDog.js ====== | ====== Brandon Chen's crazyDog.js ====== | ||
| + | by [[brandon-chen|Ben]] | ||
| < | < | ||
| - | <iframe src=" | + | <iframe src=" |
| </ | </ | ||
| - | This is my crazyDog.js. I've been working on it all semester. The hardest thing was to learn how to animate the dogs. I'm proud of it because I have never coded anything before so I feel like I accomplished a lot from doing this. The code for my artwork is below. | + | ===== about my crazyDog.js ===== |
| + | |||
| + | This is my crazyDog.js. I've been working on it all semester. The hardest thing was to learn how to animate the dogs. I'm proud of it because I have never coded anything before so I feel like I accomplished a lot from doing this. The code for my artwork is below. | ||
| + | |||
| + | The animation code is released under the [[https:// | ||
| + | |||
| + | ===== the code for my crazyDog.js ===== | ||
| < | < | ||
| Line 18: | Line 25: | ||
| let speed = 0.1 | let speed = 0.1 | ||
| function setup() { | function setup() { | ||
| - | | + | createCanvas(1800, |
| - | dogeColor = random(255) | + | dogeColor = random(255) |
| - | cloudColor = random(255) | + | cloudColor = random(255) |
| } | } | ||
| Line 171: | Line 178: | ||
| } | } | ||
| } | } | ||
| + | </ | ||