diff --git a/0.作品模板.html b/0.作品模板.html index be378e7..87222ef 100644 --- a/0.作品模板.html +++ b/0.作品模板.html @@ -6,8 +6,8 @@ 作品模板 - - + + - + + 基础图形绘画练习一 - + + - + + + - + + + + + + + + +
+ + diff --git a/15.向日葵.html b/15.向日葵.html new file mode 100644 index 0000000..0db5896 --- /dev/null +++ b/15.向日葵.html @@ -0,0 +1,73 @@ + + + + + + + + 向日葵 + + + + + + + +
+ + diff --git a/16.平移.html b/16.平移.html new file mode 100644 index 0000000..7c17d71 --- /dev/null +++ b/16.平移.html @@ -0,0 +1,82 @@ + + + + + + + + 平移 + + + + + + + +
+ + diff --git a/16.我的画笔.html b/16.我的画笔.html new file mode 100644 index 0000000..4f98f73 --- /dev/null +++ b/16.我的画笔.html @@ -0,0 +1,68 @@ + + + + + + + + 我的画笔 + + + + + + + +
+ + diff --git a/2.太阳公公钟.html b/2.太阳公公钟.html index a9bc363..2aeeb4e 100644 --- a/2.太阳公公钟.html +++ b/2.太阳公公钟.html @@ -6,8 +6,8 @@ 太阳公公钟 - - + + - + + - + + - + + - + + - + + - + + - + + - + 平移 + + diff --git a/assets/Aloha Heja He - Achim Reichel.mp3 b/assets/Aloha Heja He - Achim Reichel.mp3 new file mode 100644 index 0000000..5249fd7 Binary files /dev/null and b/assets/Aloha Heja He - Achim Reichel.mp3 differ diff --git a/assets/Pornophonique - Sad Robot.mp3 b/assets/Pornophonique - Sad Robot.mp3 new file mode 100644 index 0000000..44a9c46 Binary files /dev/null and b/assets/Pornophonique - Sad Robot.mp3 differ diff --git a/css/style.css b/css/style.css index e007a8f..ae24011 100644 --- a/css/style.css +++ b/css/style.css @@ -1,12 +1,13 @@ * { - padding: 0; margin: 0; + padding: 0; box-sizing: border-box; background-color: gray; } + body { display: flex; height: 100vh; - justify-content: center; align-items: center; + justify-content: center; } diff --git a/p5/addons/p5.sound.js b/lib/p5/addons/p5.sound.js similarity index 100% rename from p5/addons/p5.sound.js rename to lib/p5/addons/p5.sound.js diff --git a/p5/addons/p5.sound.js.map b/lib/p5/addons/p5.sound.js.map similarity index 100% rename from p5/addons/p5.sound.js.map rename to lib/p5/addons/p5.sound.js.map diff --git a/p5/addons/p5.sound.min.js b/lib/p5/addons/p5.sound.min.js similarity index 100% rename from p5/addons/p5.sound.min.js rename to lib/p5/addons/p5.sound.min.js diff --git a/p5/addons/p5.sound.min.js.map b/lib/p5/addons/p5.sound.min.js.map similarity index 100% rename from p5/addons/p5.sound.min.js.map rename to lib/p5/addons/p5.sound.min.js.map diff --git a/p5/p5.js b/lib/p5/p5.js similarity index 100% rename from p5/p5.js rename to lib/p5/p5.js diff --git a/p5/p5.min.js b/lib/p5/p5.min.js similarity index 100% rename from p5/p5.min.js rename to lib/p5/p5.min.js diff --git a/lib/utils.js b/lib/utils.js index ca31c60..e92a038 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -21,13 +21,13 @@ function playdemos(list, delay = 10) { func(); } -function drawGrid(color = 255, fade = 32) { +function drawGrid(color = 255, fade = 32, offset = 10) { push(); colorMode(RGB); stroke(color, fade); strokeWeight(1); - for (let x = 0; x < width; x += 10) line(x, 0, x, height); - for (let y = 0; y < height; y += 10) line(0, y, width, y); + for (let x = 0; x < width; x += offset) line(x, 0, x, height); + for (let y = 0; y < height; y += offset) line(0, y, width, y); pop(); } diff --git a/卡牌生存/index.html b/卡牌生存/index.html index cddb036..0f9aeed 100644 --- a/卡牌生存/index.html +++ b/卡牌生存/index.html @@ -6,8 +6,8 @@ 卡牌生存 - - + +