CISC 110 Week 1. An Introduction to Computer Graphics and Scripting

Similar documents
CISC 110 Day 1. Hardware, Algorithms, and Programming

Using Flash Animation Basics

Adobe Flash CS3 Reference Flash CS3 Application Window

Introduction to Flash - Creating a Motion Tween

PUBLISHING 1231 Intermediate New Media Publishing (FLASH) Instructor: Mak (Mahmoud) Abdel-Hai Office: A248 Phone: 604-3

Final Study Guide Arts & Communications

8 th Grade Animation Exam Study Guide

University of the Arts Continuing Education

animation, and what interface elements the Flash editor contains to help you create and control your animation.

Week Lesson Assignment SD Technology Standards. Knowledge Check. Project Project Project Power Point 3.1. Power Point 3.

Flying Start AS Computer Science. September 2015

COMP371 COMPUTER GRAPHICS

AP Physics 1 and 2 Summer Assignment

GETTING AROUND STAGE:

Introduction to Game Design

b A bit is the basic unit for storing electronic data, for example an MP3 file. The term bit is a

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

Flash Domain 4: Building Rich Media Elements Using Flash CS5

COMP Preliminaries Jan. 6, 2015

Midterm Exam! CS 184: Foundations of Computer Graphics! page 1 of 13!

Name: Date: Multimedia Graphics and Web Publishing Mr. Dietzler. Flash Topics TWEENING AND MOTION GUIDES

COMP : Practical 6 Buttons and First Script Instructions

EECE.2160: ECE Application Programming Spring 2017

The Timeline records the actions in each Frame. It also allows multiple independent images and actions through Layers.

How Do I Choose Which Type of Graph to Use?

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

[301] Bits and Memory. Tyler Caraza-Harter

Interactive Media CTAG Alignments

Geneva CUSD 304 Content-Area Curriculum Frameworks Grades 6-12 Business

CS 150 Introduction to Computer Science 1

Table of Contents. Preface...iii. INTRODUCTION 1. Introduction to M ultimedia and Web Design 1. ILLUSTRATOR CS6 1. Introducing Illustrator CS6 17

Adobe Graphics Software

Animating the Page IN THIS CHAPTER. Timelines and Frames

How to draw and create shapes

Animation is the illusion of motion created by the consecutive display of images of static elements. In film and video

Welcome to Solving Problems with Computers I

Honors Computer Science Python Mr. Clausen Program 7A, 7B

Learning Flash CS4. Module 1 Contents. Chapter 1: Getting Started With Flash. Chapter 2: Drawing Tools

Computer Science 210: Data Structures

Keyframe Animation. Animation. Computer Animation. Computer Animation. Animation vs Modeling. Animation vs Modeling

CISC 1600 Lecture 3.1 Introduction to Processing

By Margaret Black, Rama Central P.S. 2008

Visualized Problems in the Teaching Topic "Derivative of a Function"

Spring CS Homework 3 p. 1. CS Homework 3

Representing Graphical Data

Assignment 5 Storyboards - Individual Assignment

SLO to ILO Alignment Reports

Practical 2: Ray Tracing

Objectives: To create a Flash motion tween using the timeline and keyframes, and using pivot points to define object movement.

CS 4349 Lecture August 21st, 2017

CPSC 213. Introduction to Computer Systems. Introduction. Unit 0

FLASH CS6 DIRECTIONS TO GET YOU STARTED!

Tutorial 4. Creating Special Animations

INSRUCTION SHEET. Flash Lab #1

CS770/870 Spring 2017 Animation Basics

CS770/870 Spring 2017 Animation Basics

CSC 101: Lab #8 Digital Video Lab due date: 5:00pm, day after lab session

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/27/2017

Unit Lesson Plan: Measuring Length and Area: Area of shapes

Lab 4 Projectile Motion

Computer Graphics Fundamentals. Jon Macey

Shape Tweening. Shape tweening requirements:

Industrial Technology

Curriculum/Certification Mapping in MyGraphicsLab

Welcome to Desktop Publishing with InDesign!

CS150 Introduction to Computer Science 1. What is CS150? Who Are We? CS150 is a programming course You will learn

CMPT 354 Database Systems. Simon Fraser University Fall Instructor: Oliver Schulte

You must pass the final exam to pass the course.

Lecture 1. Course Overview Types & Expressions

Multi-step transformations

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

CS 150 Introduction to Computer Science 1. August 31, 2009

The Macromedia Flash Workspace

CSC 261/461 Database Systems. Fall 2017 MW 12:30 pm 1:45 pm CSB 601

Valuable points from Lesson 6 Adobe Flash CS5 Professional Classroom in a Book

Polygons in the Coordinate Plane

How to create an animated face

Introduction to C Programming 計算機程式設計

1. Multimedia authoring is the process of creating a multimedia production:

CS 112 Project Assignment: Visual Password

Stop-Motion Animation

Lesson 2 page 1. ipad # 17 Font Size for Notepad (and other apps) Task: Program your default text to be smaller or larger for Notepad

Essential Graphics/Design Concepts for Non-Designers

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications

Common Technology Words and Definitions

PROJECT THREE - EMPHASIS

Lecture 2: Variables & Assignments

1D CIW: Web Design Specialist. Course Outline. CIW: Web Design Specialist Apr 2018

the gamedesigninitiative at cornell university Lecture 16 Color and Textures

CSE 336. Introduction to Programming. for Electronic Commerce. Why You Need CSE336

the gamedesigninitiative at cornell university Lecture 17 Color and Textures

CSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I

Intro to Animation. Introduction: Frames and Keyframes. Blender Lesson: Grade Level: Lesson Description: Goals/Objectives: Materials/Tools: 4th and up

WELCOME! (download slides and.py files and follow along!) LECTURE 1

CIW: Web Design Specialist. Course Outline. CIW: Web Design Specialist. ( Add-On ) 16 Sep 2018

Theories & Principles of Animation

Review for the Final Exam CS 8: Introduction to Computer Science, Winter 2018 Lecture #15

PELLISSIPPI STATE TECHNICAL COMMUNITY COLLEGE MASTER SYLLABUS FLASH WEB Revised: Fall 08

Making ecards Can Be Fun!

Curriculum Map Grade(s): Subject: AP Computer Science

Transcription:

CISC 110 Week 1 An Introduction to Computer Graphics and Scripting

Emese Somogyvari Office: Goodwin 235 E-mail: somogyva@cs.queensu.ca Please use proper email etiquette! Office hours: TBD Course website: http://courses.caslab.queensu.ca/cisc110/ I have been at Queen s for a long time, so if you have any questions about the School of Computing or Queen s in general, please feel free to ask

Lectures Here 6:30pm 9:30 pm Breaks

Labs Every week Mandatory Goodwin 248 24hr access with ibutton (see website for more info) Labs are full so no switching! (sorry 8:30am) Acitvate CasLab accounts *prior* to lab You will need your textbook TAs: Lexi: lexi.flynn@queensu.ca Brianna: 11br21@queensu.ca

Textbook Buy me:

Flash We will be using Flash CS5.5 but you may come across CS6. ***CS6 files are not compatible with CS5.5

Marking Scheme and Schedule

Labs/Assignments Each Lab + Assignment = 3% of your mark Labs are due during your lab I will post everything on the website the week before Assignments are due the following week, marked during your lab -10% per day late Individual, but work together! I will find a way to post your grades through the website

Final Project Can be done in pairs or alone Storyboard (more later) Hand in during class Nov 6 Phase 1 code Marked for completion during labs in week 10 (up to - 20% off final project mark if incomplete) Phase 2 code Marked for completion during labs in week 12 (up to - 20% off final project mark if incomplete) User Manual (more later)

Tests Programming only (no Flash stuff) ActionScript Written Yes, written Practice problems and previous tests posted online Sometime I will allow a cheat sheet If you have a conflict with a test, you need to tell me well in advance

Sharing your work See website Uploading with Filezilla

Introductory course Course is designed for students with zero, or very little background in programming You will be learning basic programming concepts in ActionScript through the use of computer animation in Flash

CISC 110 Elementary Computer Animation in Flash What can you do in Flash..

Today and Maybe Next Week Intro to Animation and Programming 2D Graphics Frame by Frame and Motion Tween Animation Object-Oriented Programming Timeline Control Flash Library: Buttons, Text Fields, Sounds

What does an ActionScript File Look Like? A program is executed from the top-down.

The Flash Environment The basics..

Start up Flash Login with NetID and password to AD We will now activate your caslab accounts: 1. Go to http://www.caslab.queensu.ca/account/ 2. Click on Launch the CASLab Account Management Tool. 3. Enter your Queenʼs NetID (all lower-case). This will bring you to a page that will ask you to set your Caslab password (which is truncated to 10 chars) After completing these steps, you will need to wait for about 10 minutes until you have full access to the CASLab machines in the labs, so be sure to activate your CASLab account before your first lab

Start up Flash After ~10min. Use remote desktop to connect to socrates.caslab.queensu.ca Login as caslab\netid Use your caslab password

Vector Graphics Vector graphics Uses geometrical primitives such as points, lines, curves, and shapes or polygons, which are all based on mathematical equations, to represent images in computer graphics Credit: Many images in this section are from the Wikimedia Commons

Vector Graphics So, to draw a circle for example, a program needs to know the radius, the location of the center point, the line style and colour, and the fill style and colour, in order to draw it

Raster Graphics Raster graphics, unlike vector graphics, is generally a grid of pixels or points of colour

Vector vs. Raster Graphics Because raster images are based on pixels, they lose clarity when you scale them However, since vector images can be represented mathematically, they can scale indefinitely without degrading

Photo & Vectorized Image

Animation Animation is the rapid display of a sequence of images to create the illusion of movement These images can be of 2-D or 3-D artwork or model positions

2D Animation

3D Animation

Tweening Comes from inbetweening Process of generating intermediate frames between two images to give the appearance of a smooth transition In Flash, these two images are on keyframes in the timeline

Tweening Motion tween Shape tween Colour tween

Traditional Cel Animation Disney used cel animation until 1990 Images are drawn onto transparent cels and photographed together Each cel is a layer of the animation Background Each different character etc. In Flash you will also be animating in layers

RGB Colour Model Additive colour model where red, green, and blue light are added together to produce a wide array of colours

RGB Colour Model An RGB image can be separated into its red, green, and blue components:

Numerical Representation A colour in the RGB model can be represented by numbers which indicate how much of each red, green, and blue colours are present The colour is expressed as a triplet (r, g, b), with each value ranging from 0 (no light) to a maximum value (usually 255)

RGB Colour Cube If you were to take these numbers and plot them in a 3D space you get a colour cube:

Fully Saturated Colours When one colour is at it s max and all others are 0 (0, 0, 0) is black (255, 0, 0) is red (0, 255, 0) is green (0, 0, 255) is blue (255, 255, 0) is yellow (0, 255, 255) is cyan (255, 0, 255) is magenta yellow(255,255,0) green(0,255,0) cyan(0,255,255) red(255,0,0) blue(0,0,255) NOTE: (255, 255, 255) is white red(255,0,0) magenta(255,0,255)

Structure of Digital Computers CPU (Central Processing Unit): Calculations and the Fetch-Execute Cycle Secondary Storage Long-term memory of data and programs I/O Devices Input/Output:: Communication between the computer and the user, and with other computers Main Memory RAM (Random Access Memory): Short-term memory of data and programs, while computer is on

Main Memory (RAM) byte 3021 byte 3022 byte 3023 byte 3024 byte 3025 byte 3026 byte 3027 byte 3028 byte 3029 byte 3030 byte 3031 byte 3032 11110000 10101100 11011010 00110101 01000001 10101010 01011101 00000000 11111111 11100010 10110101 00011011 01001111 2 byte memory location at address 3021: could hold a 16-bit integer 4 byte memory location at address 3024: could hold a 32-bit integer 1 byte memory location at address 3030: could hold one letter

Memory Sizes Memory Conversion 1 bit Either 1 or 0 1 nybble 4 bits 1 byte 1 kilobyte 1 gigabyte 1 terabyte 8 bits 2 10 bytes (approx. 1000 bytes) 1 megabyte 2 20 bytes (approx. 1000 kilobytes) 2 30 bytes (approx. 1000 megabytes) 2 40 bytes (approx. 1000 gigabytes)

What is a Computer? A computer is a machine that carries out tasks by following instructions to perform operations at high speeds Operations are built into hardware: machine operations

What is an Algorithm? An algorithm is a sequence of instructions that describes how to carry our a task Algorithms aren t always on a computer! Instructions on how to bake a cake is an algorithm

Let s think of computation like cake-making Bit String: Numbers or Characters Cake Ingredients (Input) Program/Software Recipe (Algorithm) Electronic Computer Oven & Utensils (Hardware) Bit String: Numbers or Characters Cake (Output)

What is a Programming Language? Computer language consisting of operations used to define instruction that a computer can execute These instructions are written by you, the programmer, and given to the computer to execute

Scripting Language A scripting language, like ActionScript, is a programming language written for specific environments (like Flash) that can interpret tasks automatically Allows for the control of an application, like an animation for example

Next week. Object oriented programming Symbols: Classes in Flash Exercises! Methods in ActionScript and Flash Parameters Objects in Flash Buttons More! Make sure you have your textbook for your lab! Lab/Assignments will be posted online

Labs/Assignments Sometimes you will be working on something in your labs/assignments that I haven t necessarily or explicitly taught in class. This is intentional! You will learn a lot more in your labs and through your assignments/projects than what I can teach you in class because they are hands on. But I will try to clarify on these topics during lecture, after you ve had some experience with them. This also gives you the opportunity to ask questions (For example, you will be working with buttons and simple animations in your next lab/assignment)