CS4ALL Computer Science For All Of Us
  • Home
  • Community
  • Workshop
    • Workshop Info
    • Schedule
    • Location
    • Sponsors
  • Resources
    • Scratch Resources
CS4ALL
  • Home
  • Community
  • Workshop
    • Workshop Info
    • Schedule
    • Location
    • Sponsors
  • Resources
    • Scratch Resources
  • Home
  • ProcessingBeginner

Posts in category Beginner

Simple Program

July 7, 2016 Written by Keith Atkinson
Simple Program
Let’s create a simple program that will swap the values held in two variables called “firstValue” and “secondValue.” As you follow along, it is helpful to think of variables as boxes that can store only one value. These boxes also have photocopiers to make copies of values and shredders to destroy values Step 1 On […]
Read More Leave a Comment

Variables

July 7, 2016 Written by Keith Atkinson
Variables
Variables are used to store data inside of a program. For example, if we were programming a video game we would need a way to keep track of a score, to do so we’d store the value in a variable in the computer’s memory. Creating a Variable When we create a variable, we are creating […]
Read More Leave a Comment

Colors

July 4, 2016 Written by Keith Atkinson
Colors
1 In art class if you wanted to create orange paint you would mix together yellow and red paint. Creating colors on a computer is a little bit different, because when computers create colors they mix light, not pigments. RGB: Computers mix 3 colors of light, red, blue, and green, and they can be mixed to […]
Read More Leave a Comment

Processing Tutorial – First Pro...

June 30, 2016 Written by Keith Atkinson
Processing Tutorial – First Program
1 The Editor has 4 key components. Start and Stop run and stop a Sketch (program). Tabs are available to have many pages of code open at once. The text area is where code is written, just like any other editor. The Console is used to output and take in information. 2 Next, in the […]
Read More Leave a Comment

Processing Tutorial – Making Sh...

June 30, 2016 Written by Keith Atkinson
Processing Tutorial – Making Shapes
Circles We use the ellipse() function for circles because an ellipse is a rounded shape like an oval. ellipse(50,50,50,50); coordinate grid ellipse(50,40,35,70); Rectangles rect(10,10,80,80); coordinate grid rect(10,20,80,40); Triangles triangle(10,10,90,50,10,90); coordinate grid triangle(10,10,90,10,50,90); Other Shapes You can create lots of other shapes in Processing, includ- ing arcs, lines, quads (otherwise known as shapes with 4 sides), […]
Read More Leave a Comment
Newer Entries