Getting Started with Processing

Read http://processing.org/learning/gettingstarted/ in its entirety before doing any of these assignments. All assignments on this page are based on exercises from that page.

Assignment – Ellipse

Type the following code into Processing:

Clarify in your mind what the individual numbers in the command are. Note the semicolon at the end of the line. What happens of you run the program without the semi-colon?

Save your program as Ellipse.pde, and submit to the relevant hand-in folder.

Assignment – Circles

Type the following code into Processing:

Clarify in your mind the purpose of the setup() method. What happens when you change the numbers and run the program. Try it, then put it back to original.

In the draw() method, what happens if you change 255 in the fill() method to another number? What happens if you change the first 80 in the ellipse() method to 40?

Save your program as Circle.pde, and submit to the relevant hand-in folder.

Assignment – Rectangles

Modify the example 2-2 program so it draws rectangles instead of ellipses.

Note: this assignment will be submitted after doing the activity below.

Assignment – Create a Standalone Program

Export your rectangle program as a standalone application, and submit the entire Rectangle folder to the relevant hand-in folder.

Google Classroom App

Google Classroom App Store Banner

If you have a smartphone, please go into the app store (see links below) and install the Google Classroom app. This will allow you to get Classroom notifications which will help you be more successful in this class.

IOS
https://itunes.apple.com/us/app/google-classroom/id924620788?mt=8

Android
https://play.google.com/store/apps/details?id=com.google.android.apps.classroom&hl=en_US

I also recommend that you check your school board email account daily for any notifications from Google Classroom, especially to check for any comments I have made on your submissions.

Late Submission Policy

The general policy for late submissions is that 5% of your achieved mark will be deducted per day to a maximum of 15% for grades 9-10 and a maximum of 25% for grades 11-12 (DSBN policy). There may be exceptions to this, depending on the specific circumstances.

If assignments are posted online and can be done from home, absence due to a school activity does not extend the deadline.

If the situation warrants that an assignment can no longer be handed in, the mark will be a zero beyond that.

(You will only be given a reasonable amount of time to submit a late assignment. Don’t expect to be handing in assignments two or three weeks after they are due!)

Turtle Graphics Cheatsheet

Turtle Pen
turtle.pen(pencolor=”red”, pensize=10, fillcolor=”black”) Pens have attributes such as color, size, and fillcolor.
turtle.up() Sets the pen state to be up (not drawing).
turtle.down() Sets the pen state to be down (drawing).
turtle.color(r,g,b) See below
turtle.color(s) Sets the color that the pen will draw until the color is changed. It takes either 1) three arguments, each a floating point number between 0.0 — 1.0, where the first the amount of red, the second is the amount of green, and the third is the amount of blue, or 2) a “color string” the name of a TK color (e.g., “black”, “red”, “blue”, …)
turtle.begin_fill() See below
turtle.end_fill() To fill a figure, use turtle.begin_fill() before you start drawing the figure. Draw the figure. Then execute turtle.end_fill(). The figure drawn between the two fill commands will be filled with the present color setting.
turtle.hideturtle() See below
turtle.showturtle() Sets the state to hide / show the turtle. When shown, you see it as a small arrowhead pointed in the direction of the heading.
turtle.fill(True) To fill a figure, use turtle.fill(True) before you start drawing the figure. The figure drawn will be filled with the present color setting.
Turtle Draw
turtle.right(degrees) Turns the direction that the turtle is facing right (clockwise) by the amount indicated (in degrees).
turtle.left(degrees) Turns the direction that the turtle is facing left (counterclockwise) by the amount indicated (in degrees).
turtle.forward(distance) Moves the turtle forward (in the direction the turtle is facing) the distance indicated (in pixels). Draws a line if the pen is down, not if the pen is up.
turtle.backward(distance) Moves the turtle backward (in the direction opposite to how the turtle is facing) the distance indicated (in pixels). Draws a line if the pen is down, not if the pen is up.
turtle.setheading(angle) Sets the orientation of the turtle to angle. Here are some common directions in degrees: 0 (east) 90 (north) 180 (west) 270 (south)
turtle.goto(x,y) Moves the turtle to the specified coordinates, drawing a straight line to the destination (x,y) if the pen is down, and not drawing if the pen is up.
turtle.circle(radius) Draws a circle of the indicated radius. The turtle draws the circle tangent to the direction the turtle is facing.
Turtle other
turtle.xcor(),turtle.ycor() Returns the x – coordinate / y – coordinate of the current pen position.
x, y = turtle.pos() Sets the variables x and y to the turtle’s current position
turtle.exitonclick() or turtle.done() To prevent the screen from closing.
turtle.bye() Close the turtle drawing window
turtle.speed(integer) Set the animation speed of the turtle. 1 = slowest, 10 = fastest. 0 turns off animation completely
turtle.shape(‘turtle’) Set the shape. You can also choose from arrow, square, circle, triangle and classic
Compiled from: http://bit.ly/2J8Cj77
http://bit.ly/2kr4tMN
http://bit.ly/2krp7MJ

ICT Ethics Assignment

Create an infographic (Affinity Designer is recommended for this) or Google Doc or podcast or video that shows an ICT-related ethical issue which:

  • clearly defines what the issue is all about,
  • convincingly shows us how to resolve it, and
  • recommends alternatives/safeguards which exist to protect against such issues in the future (if applicable).

Topic Suggestions

  • Music and video file downloading
  • Spyware
  • Identity theft
  • Phishing
  • Keystroke logging
  • Packet sniffing
  • Biometric data
  • Effective passwords
  • Firewalls
  • Secure websites
  • Cyber bullying

Citations

Be sure to give credit to all your sources!


Inspiration and credit for this assignment:
https://github.com/mrseidel-classes/ICS2O/wiki/Ethics