15
CISC 110 Day 3 Introduction to Computer Graphics

CISC 110 Day 3 Introduction to Computer Graphics

Embed Size (px)

Citation preview

Page 1: CISC 110 Day 3 Introduction to Computer Graphics

CISC 110Day 3

Introduction to Computer Graphics

Page 2: CISC 110 Day 3 Introduction to Computer Graphics

Outline

• Raster and Vector Graphics

• RGB Color Model

• Geometric Transformations

• Animation

• Tweening

• Masks

2

Page 3: CISC 110 Day 3 Introduction to Computer Graphics

Vector Graphics

Vector graphics is the use of geometrical primitives, such as points, lines, curves, and shapes or polygons, which are all based upon mathematical equations, to represent images in computer graphics.

3

Page 4: CISC 110 Day 3 Introduction to Computer Graphics

Vector Graphics

To draw a circle, a program needs to know the radius, the location of the center point, the line style and color, and fill style and color.

More complex shapes can be created with Bézier curves. 4

Page 5: CISC 110 Day 3 Introduction to Computer Graphics

Raster Graphics

In computer graphics, a raster graphics image, or bitmap, is a generally rectangular grid of pixels, or points of color.

5

Page 6: CISC 110 Day 3 Introduction to Computer Graphics

Vector vs. Raster Graphics

Raster images are based on pixels and thus scale with loss of clarity, while vector-based images can be scaled indefinitely without degrading.

6

Page 7: CISC 110 Day 3 Introduction to Computer Graphics

RGB Color Model

The RGB color model is an additive color model in which red, green, and blue light are added together to produce a wide range of colors.

7

Page 8: CISC 110 Day 3 Introduction to Computer Graphics

RGB Color Model

An RGB image, along with its separate R, G and B components

8

Page 9: CISC 110 Day 3 Introduction to Computer Graphics

Numerical Representation

A color in the RGB color model is described by indicating how much of each of the red, green, and blue is included. The color is expressed as an RGB triplet (r,g,b), each component of which can vary from zero (no light) to a defined maximum value (usually 255). 9

Page 10: CISC 110 Day 3 Introduction to Computer Graphics

Geometric Transformations

A translation moves every point of a figure or a space by the same amount in a given direction.

A rotation is a progressive radial orientation to a common point. That common point lay within the axis of that motion.

10

Page 11: CISC 110 Day 3 Introduction to Computer Graphics

Animation

Animation is the rapid display of a sequence of images of 2-D or 3-D artwork or model positions in order to create an illusion of movement.

11

Page 12: CISC 110 Day 3 Introduction to Computer Graphics

Traditional Cell Animation

Transparent cels, each with a different character drawn on them, and an opaque background are photographed together to form the composite image.

12

Page 13: CISC 110 Day 3 Introduction to Computer Graphics

Tweening

Inbetweening or tweening is the process of generating intermediate frames between two images (key frames) to give the appearance that the first image evolves smoothly into the second image.

13

Page 14: CISC 110 Day 3 Introduction to Computer Graphics

Motion, Shape & Color Tweening

14

Page 15: CISC 110 Day 3 Introduction to Computer Graphics

Masks

A mask provides a hole through which underlying layers show, so that you can limit the area of the layers that is visible.

CISC 110 Week 1 Flash 15