We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6defb7b + d4baa0a commit 64d4ebfCopy full SHA for 64d4ebf
1 file changed
chp14_transformations/exercise_14_12_star_class/exercise_14_12_star_class.pde
@@ -0,0 +1,28 @@
1
+// Learning Processing
2
+// Daniel Shiffman
3
+// http://www.learningprocessing.com
4
+
5
+// Exercise 14-12: Rewrite Example 14-19 so that the
6
+// PShape object itself is inside your own Star class
7
+// that also includes x,y variables for position.
8
+// Make multiple instances of the object an array.
9
+// Here is some code to get you started.
10
11
+class Star {
12
+ // The PShape object
13
+ PShape s;
14
+ // The location where I will draw the shape
15
+ float x,y;
16
17
+ Star() {
18
+ // What goes here?
19
+ }
20
21
+ void move() {
22
23
24
25
+ void display() {
26
27
28
+}
0 commit comments