You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/resources/2024-12-18-intro-to-p5-grid.md
+25-17Lines changed: 25 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,14 @@ excerpt: "Resources for introducing the p5.js environment and the x-y coordinate
20
20
### Standards
21
21
22
22
- Math Standard: CCSS.MATH.CONTENT.6.NS.C.6: Understand a rational number as a point on the number line; locate and position points on a coordinate plane.
23
-
- Media Arts Standard: 6.MA:Cr1 Generate and conceptualize artistic ideas and work
23
+
- Media Arts Standard:
24
+
* 6.MA:Cr1 Generate and conceptualize artistic ideas and work
25
+
* 6.MA:Cr2 Organize and develop artistic ideas and work.
24
26
- Computer Science Standards:
25
27
* 6-8.AP.10 Use flowcharts and/or pseudocode to design and illustrate algorithms that solve complex problems. (P4.1, P4.4)
26
28
* 6-8.AP.11 Create clearly named variables that store data, and perform operations on their contents. (P5.1, P5.2)
27
29
* 6-8.AP.19 Document programs in order to make them easier to use, read, test, and debug. (P7.2)
30
+
* 6.MA:Cr2 Organize and develop artistic ideas and work.
28
31
29
32
### Learning Intention
30
33
@@ -40,20 +43,22 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
40
43
41
44
- Laptops or Chromebooks with internet access
42
45
- Projector and screen for demonstrations
43
-
-***Note***: You may want to create a Google Classroom to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
46
+
-***Note***: You may want to create a Google Classroom or page on a Learning Management System (LMS) to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
44
47
*[P5.js web editor](https://editor.p5js.org/)
45
48
*[Grid Resource (Google Docs)](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) with labeled x and y axes (or [png image](https://drive.google.com/file/d/1_oQwoiHC_3Nlew-lp9mAVtKtDgDu4Rgt/view?usp=drive_link))
46
49
*[Intro to P5 Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)
47
50
* Online Color Resources:
48
51
+[RGB Color Picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+color+picker&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRhB0gEINzU5M2owajGoAgCwAgA&sourceid=chrome&ie=UTF-8&safe=active&ssui=on)
* Lesson 1 p5.js code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
54
+
*[Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
55
+
56
+

52
57
53
58
### Intro (15 minutes)
54
59
55
60
- Begin with a brief discussion: “Where have you seen grids in real life?” (e.g., graph paper, maps, games, math). Share how we will be using a grid in the p5.js coding platform to create with code.
56
-
- Project [Google Doc Grid Resource](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing)grid and go over the following:
61
+
- Project the [Google Doc Grid Resource](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) and go over the following:
57
62
* The horizontal axis is the x-axis, and the vertical axis is the y-axis
58
63
* The origin, or point where the x-axis and y-axis meet (0, 0)
59
64
- Ask students to share similarities and differences to the coordinate plane in math (TPS)
@@ -63,17 +68,17 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
63
68
### Guided Practice & Demonstration (25 minutes)
64
69
65
70
- Open the p5.js editor. Briefly go over the platform and how to login and save files.
66
-
- Explain a function and state how it uses x, y coordinates to position shapes.
71
+
- Explain a function (see the intro to p5.js [Vocablary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)) and state how it uses x, y coordinates to position shapes.
67
72
-***Vocabulary:*** Go over the [Intro to p5.js Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing). Mention to students that we will not focus on all vocabulary for example, lines, triangles, or stroke but they are free to try these out on their own.
68
-
- In the p5.js editor and demonstrate the following:
69
-
*[Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
73
+
- In the p5.js editor, demonstrate the following while students follow and code along:
74
+
*How to code lines by recreating the lines in the [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4)
70
75
* Scaffold and chunk out these pieces by demoing how to:
71
76
* Code the Canvas
72
77
* Use the Function Draw
73
78
* Code the Background color
74
79
* Code a fill color for the shapes
75
80
* Code the shape coordinates to create each shape
76
-
*Typing comments to explain code
81
+
*Type comments to explain code
77
82
78
83
### Reflection (5 minutes)
79
84
@@ -94,11 +99,12 @@ Discuss: “How might knowing coordinates help in creating digital art or games?
94
99
### Standards
95
100
96
101
- Math Standard: CCSS.MATH.CONTENT.6.NS.C.6: Understand a rational number as a point on the number line; locate and position points on a coordinate plane.
97
-
- Media Arts Standard: 6.MA:Cr1 Generate and conceptualize artistic ideas and work
102
+
- Media Arts Standard:
103
+
* 6.MA:Cr1 Generate and conceptualize artistic ideas and work.
104
+
* 6-8.AP.19 Document programs in order to make them easier to use, read, test, and debug. (P7.2)
98
105
- Computer Science Standards:
99
106
* 6-8.AP.10 Use flowcharts and/or pseudocode to design and illustrate algorithms that solve complex problems. (P4.1, P4.4)
100
107
* 6-8.AP.11 Create clearly named variables that store data, and perform operations on their contents. (P5.1, P5.2)
101
-
* 6-8.AP.19 Document programs in order to make them easier to use, read, test, and debug. (P7.2)
102
108
103
109
### Learning Intention
104
110
@@ -113,39 +119,41 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
113
119
114
120
- Laptops or Chromebooks with internet access
115
121
- Projector and screen for demonstrations
116
-
-***Note***: You may want to create a Google Classroom to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
122
+
-***Note***: You may want to create a Google Classroom or a page in a Learning Managment System (LMS) to share the resources below as “Materials” for students and, also print the grid, guide, and vocab for students.
117
123
*[p5.js Editor](https://editor.p5js.org/)
118
124
*[Grid Resource (Google Docs)](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) with labeled x and y axes (or [png image](https://drive.google.com/file/d/1_oQwoiHC_3Nlew-lp9mAVtKtDgDu4Rgt/view?usp=drive_link))
119
125
*[Intro to p5.js Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)
120
126
* Online Color Resources:
121
127
+[RGB Color Picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+color+picker&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRhB0gEINzU5M2owajGoAgCwAgA&sourceid=chrome&ie=UTF-8&safe=active&ssui=on)

135
+
128
136
### Intro (10 minutes)
129
137
130
138
-***Prior Knowledge Review:*** Check to make sure students know how to use the [Grid Resource (Google Docs)](https://docs.google.com/document/d/1C1D7WO_I7R9AgqfV3X967jRJo07qO0U5GdJ0U6VlT0c/edit?usp=sharing) by having students show you how points are located using coordinates (e.g., (100, 200) means moving 100 units right and 200 units down).
131
139
132
140
-***Remind students:***
133
141
* Reference the [Intro to p5.js Vocabulary Reference Guide](https://docs.google.com/document/d/1dTPg13E6M4Vi9Xudwa49bYxZEf1qRs50oZjlDAtJARo/edit?usp=sharing)
134
142
+ The students will only be required to focus on circles, rectangles, ellipses, fills for the shapes, and adding comments, but they are free to try anything else from the vocab guide.
135
-
* Go over the color resources (you may want to add them as materials in a Google Classroom for students to reference easily).
143
+
* Go over the color resources (you may want to add them as materials in an LMS for students to reference easily).
136
144
+[RGB Color Picker](https://www.google.com/search?q=rgb+color+picker&oq=rgb+color+picker&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQRRhB0gEINzU5M2owajGoAgCwAgA&sourceid=chrome&ie=UTF-8&safe=active&ssui=on)
- Students will create their own digital artwork using p5.js:
146
154
* The students will create a pattern that repeats at least once using shapes by plotting the shapes in different locations and add comments to each line of code.
147
-
* Have students start with the lesson 1 code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4) (Share in Google Classroom)
148
-
* Encourage experimentation with coordinates and colors using fill
155
+
* Have students start with the lesson 1 code: [Intro to p5.js, Coordinates and Coding Shapes Code](https://editor.p5js.org/msandoval/sketches/L3GWiHYe4) (Share in an LMS)
156
+
* Encourage experimentation with coordinates and colors using fill.
149
157
- Walk around the room to check for understanding and provide support as needed during independent practice.
150
158
151
159
### Reflection (5 minutes)
@@ -155,7 +163,7 @@ Students will understand the x, y coordinates on a p5.js grid and create pattern
155
163
156
164
### Assessment
157
165
158
-
- Students will share their designs. Have students share their link to their design in Google Classroom.
166
+
- Students will share their designs. Have students share their link to their design in an LMS.
159
167
- Check students’ ability to correctly place shapes using coordinates.
160
168
- Review completed projects for understanding of x, y concepts and correct use of p5.js functions and patterns created.
161
169
- Code will be reviewed for correct syntax and use of vocabulary and comments.
0 commit comments