Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTM03. Let’s Get Started Everything is drawn onto the 2D rendering context.

Similar presentations


Presentation on theme: "HTM03. Let’s Get Started Everything is drawn onto the 2D rendering context."— Presentation transcript:

1 HTM03

2

3

4

5

6

7

8

9

10 Let’s Get Started

11

12

13 Everything is drawn onto the 2D rendering context

14

15

16 What is drawn on canvas

17

18

19

20

21

22

23

24

25

26

27

28

29

30 BrowserPass rate Internet Explorer 994.0% Chrome 1186.2% Opera 1184.1% Safari 582.4% Firefox 478.4%

31

32

33

34

35

36

37

38

39

40 DON’T

41 DO

42

43 DON’T

44 DO

45

46

47

48

49

50

51 CanvasSVG AbstractionPixel based (dynamic bitmap)Shape based ElementsSingle HTML element Multiple graphical elements which become part of the Document Object Model (DOM) DriverModified through Script onlyModified through Script and CSS Event ModelUser Interaction is granular (x,y) User Interaction is abstracted (rect, path) PerformancePerformance is better with smaller surface and/or larger number of objects Performance is better with smaller number of objects and/or larger surface.

52 Screen Capture Complex scenes, lots of objects Video Manipulation Web Advertising Interactive Charts, Graphs Static Images High Fidelity Documents for Viewing, Printing 2D Gaming


Download ppt "HTM03. Let’s Get Started Everything is drawn onto the 2D rendering context."

Similar presentations


Ads by Google