lecture (15)timer class

12
8/14/2019 Lecture (15)Timer Class http://slidepdf.com/reader/full/lecture-15timer-class 1/12

Upload: safuanalcatra

Post on 30-May-2018

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 112

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 212

FSB23103 2

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Introduction

The timer is an

example of acomponent asopposed to a controlWhen it is draggedfrom the Toolbox toa form the IDEopens up aComponent Traywindow to hold thetime icon It is notvisible when the

program executes

A timer enables methods to be executed periodically and facilitates

animation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 312

FSB23103 3

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Timer Class

A timer creates ticks at regular intervals Each tick is an eventwhich calls the Tick method

bull The Interval property is set to an integer value representing thetime between ticks in milliseconds Thus if set to 1000 ticks occurevery second

Care should be taken when deciding on the Interval setting as tooshort a time will inhibit interaction

bull A timer is started and stopped using the Start and Stop methods

These set the Enabled property to True or Falseprogrammatically

bull Several timers may used in a program each with a differentinterval

Default interval 100 milliseconds

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 412

FSB23103 4

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation

To create movement requires a picture to be displayed andthen re-displayed repeatedly with slight modifications eachtime

Example Consider the task of displaying a ball moving from side to

side within box

Two factors need to be considered

bullHow great should be the modificationbull What time interval should there be between successivepictures

Together these factors govern the speed of movement andthe smoothness of continuity Run

Ducks

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 512

FSB23103 5

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation ndash contrsquod

Suppose

bull the ball moves 5 pixels at a time andbull The picture is redisplayed every 50 milliseconds

(could be modified later if necessary)

Let the box be 300 pixels wide and 150 deep

Suppose the ball is 20 pixels in diameter and located by theposition of its centre Accordingly it will start at location(1075) 10 pixels across and 75 down and reach the right-hand side at (29075) At this point the movement willchange direction

Essentially the vertical position remains fixed and thehorizontal movement changes according to the direction of movement

The next stage is to construct an algorithm

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 612

FSB23103 6

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Algorithm

1 Set direction to rightEach tick

2 Display box

3 Display ball

4 Move ball 5 pixels indirection of movement

5 If x-location of ballgreater than 290 setdirection to left

6 If x-location of ball lessthan 10 set direction toright

Form Design

cmdStart Ticker

cmdExit

picbox1

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 2: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 212

FSB23103 2

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Introduction

The timer is an

example of acomponent asopposed to a controlWhen it is draggedfrom the Toolbox toa form the IDEopens up aComponent Traywindow to hold thetime icon It is notvisible when the

program executes

A timer enables methods to be executed periodically and facilitates

animation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 312

FSB23103 3

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Timer Class

A timer creates ticks at regular intervals Each tick is an eventwhich calls the Tick method

bull The Interval property is set to an integer value representing thetime between ticks in milliseconds Thus if set to 1000 ticks occurevery second

Care should be taken when deciding on the Interval setting as tooshort a time will inhibit interaction

bull A timer is started and stopped using the Start and Stop methods

These set the Enabled property to True or Falseprogrammatically

bull Several timers may used in a program each with a differentinterval

Default interval 100 milliseconds

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 412

FSB23103 4

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation

To create movement requires a picture to be displayed andthen re-displayed repeatedly with slight modifications eachtime

Example Consider the task of displaying a ball moving from side to

side within box

Two factors need to be considered

bullHow great should be the modificationbull What time interval should there be between successivepictures

Together these factors govern the speed of movement andthe smoothness of continuity Run

Ducks

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 512

FSB23103 5

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation ndash contrsquod

Suppose

bull the ball moves 5 pixels at a time andbull The picture is redisplayed every 50 milliseconds

(could be modified later if necessary)

Let the box be 300 pixels wide and 150 deep

Suppose the ball is 20 pixels in diameter and located by theposition of its centre Accordingly it will start at location(1075) 10 pixels across and 75 down and reach the right-hand side at (29075) At this point the movement willchange direction

Essentially the vertical position remains fixed and thehorizontal movement changes according to the direction of movement

The next stage is to construct an algorithm

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 612

FSB23103 6

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Algorithm

1 Set direction to rightEach tick

2 Display box

3 Display ball

4 Move ball 5 pixels indirection of movement

5 If x-location of ballgreater than 290 setdirection to left

6 If x-location of ball lessthan 10 set direction toright

Form Design

cmdStart Ticker

cmdExit

picbox1

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 3: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 312

FSB23103 3

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Timer Class

A timer creates ticks at regular intervals Each tick is an eventwhich calls the Tick method

bull The Interval property is set to an integer value representing thetime between ticks in milliseconds Thus if set to 1000 ticks occurevery second

Care should be taken when deciding on the Interval setting as tooshort a time will inhibit interaction

bull A timer is started and stopped using the Start and Stop methods

These set the Enabled property to True or Falseprogrammatically

bull Several timers may used in a program each with a differentinterval

Default interval 100 milliseconds

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 412

FSB23103 4

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation

To create movement requires a picture to be displayed andthen re-displayed repeatedly with slight modifications eachtime

Example Consider the task of displaying a ball moving from side to

side within box

Two factors need to be considered

bullHow great should be the modificationbull What time interval should there be between successivepictures

Together these factors govern the speed of movement andthe smoothness of continuity Run

Ducks

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 512

FSB23103 5

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation ndash contrsquod

Suppose

bull the ball moves 5 pixels at a time andbull The picture is redisplayed every 50 milliseconds

(could be modified later if necessary)

Let the box be 300 pixels wide and 150 deep

Suppose the ball is 20 pixels in diameter and located by theposition of its centre Accordingly it will start at location(1075) 10 pixels across and 75 down and reach the right-hand side at (29075) At this point the movement willchange direction

Essentially the vertical position remains fixed and thehorizontal movement changes according to the direction of movement

The next stage is to construct an algorithm

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 612

FSB23103 6

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Algorithm

1 Set direction to rightEach tick

2 Display box

3 Display ball

4 Move ball 5 pixels indirection of movement

5 If x-location of ballgreater than 290 setdirection to left

6 If x-location of ball lessthan 10 set direction toright

Form Design

cmdStart Ticker

cmdExit

picbox1

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 4: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 412

FSB23103 4

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation

To create movement requires a picture to be displayed andthen re-displayed repeatedly with slight modifications eachtime

Example Consider the task of displaying a ball moving from side to

side within box

Two factors need to be considered

bullHow great should be the modificationbull What time interval should there be between successivepictures

Together these factors govern the speed of movement andthe smoothness of continuity Run

Ducks

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 512

FSB23103 5

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation ndash contrsquod

Suppose

bull the ball moves 5 pixels at a time andbull The picture is redisplayed every 50 milliseconds

(could be modified later if necessary)

Let the box be 300 pixels wide and 150 deep

Suppose the ball is 20 pixels in diameter and located by theposition of its centre Accordingly it will start at location(1075) 10 pixels across and 75 down and reach the right-hand side at (29075) At this point the movement willchange direction

Essentially the vertical position remains fixed and thehorizontal movement changes according to the direction of movement

The next stage is to construct an algorithm

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 612

FSB23103 6

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Algorithm

1 Set direction to rightEach tick

2 Display box

3 Display ball

4 Move ball 5 pixels indirection of movement

5 If x-location of ballgreater than 290 setdirection to left

6 If x-location of ball lessthan 10 set direction toright

Form Design

cmdStart Ticker

cmdExit

picbox1

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 5: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 512

FSB23103 5

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Animation ndash contrsquod

Suppose

bull the ball moves 5 pixels at a time andbull The picture is redisplayed every 50 milliseconds

(could be modified later if necessary)

Let the box be 300 pixels wide and 150 deep

Suppose the ball is 20 pixels in diameter and located by theposition of its centre Accordingly it will start at location(1075) 10 pixels across and 75 down and reach the right-hand side at (29075) At this point the movement willchange direction

Essentially the vertical position remains fixed and thehorizontal movement changes according to the direction of movement

The next stage is to construct an algorithm

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 612

FSB23103 6

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Algorithm

1 Set direction to rightEach tick

2 Display box

3 Display ball

4 Move ball 5 pixels indirection of movement

5 If x-location of ballgreater than 290 setdirection to left

6 If x-location of ball lessthan 10 set direction toright

Form Design

cmdStart Ticker

cmdExit

picbox1

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 6: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 612

FSB23103 6

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Algorithm

1 Set direction to rightEach tick

2 Display box

3 Display ball

4 Move ball 5 pixels indirection of movement

5 If x-location of ballgreater than 290 setdirection to left

6 If x-location of ball lessthan 10 set direction toright

Form Design

cmdStart Ticker

cmdExit

picbox1

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 7: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 712

FSB23103 7

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 8: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 812

FSB23103 8

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Example ndash contrsquod

Implementation ndash contrsquod

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 9: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 912

FSB23103 9

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceI

nstit

ute

Other examples

1 Circular movement

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 10: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1012FSB23103 10

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

2 Wavebounce

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 11: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1112FSB23103 11

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

WaveBounce

Run

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run

Page 12: Lecture (15)Timer Class

8142019 Lecture (15)Timer Class

httpslidepdfcomreaderfulllecture-15timer-class 1212FSB23103 12

U

NIVERS

ITIKUAL

A

LUMPUR

M

alaysi a

FranceInstit

ute

Other examples ndash contrsquod

3 Spiral

Run