The Jit.Matrix Object
Total Page:16
File Type:pdf, Size:1020Kb
JITTER Tutorials and Topics Table of Contents Copyright and Trademark Notices . 9 Credits . 9 About Jitter . .10 Video . .10 2D/3D Graphics . .10 Ease of Use . .10 Matrices . .11 More Details . .11 How to Use The Jitter Documentation . .12 Matrices: What is a Matrix? . 13 A Video Screen is One Type of Matrix . .14 What is a Plane? . .16 The Data in a Matrix . .16 Attributes: Editing Jitter object parameters . 19 What are Attributes? . .19 Setting Attributes . .20 Jitter Object Arguments . .21 Querying Attributes and Object State . .22 Summary . .24 Tutorial 1: Playing a QuickTime Movie . 25 How Jitter Objects Communicate . .26 Causing Action by Jitter Objects . .26 Arguments in the Objects . .28 Summary . .29 Tutorial 2: Create a Matrix . 30 What's a Matrix? . .30 The jit.matrix object . .30 The jit.print Object . .31 Setting and Querying Values in a Matrix . .32 The jit.pwindow Object — . .34 Filling a Matrix Algorithmically . .35 Other jit.matrix Messages . .36 Summary . .36 Tutorial 3: Math Operations on a Matrix . 38 Operation @-Sign . .39 Math Operations on Multiple Planes of Data . .40 Modifying the Colors in an Image . .41 Sizing it Up . .43 Summary . .44 1 Table of Contents Tutorial 4: Controlling Movie Playback . 46 Obtaining Some Information About the Movie . .47 Starting, Stopping, and Slowing Down . .48 Time is on My Side . .49 Scrubbing and Looping . .50 Summary . .50 Tutorial 5: ARGB Color . 52 Color in Jitter . .52 Color Components: RGB . .52 The Alpha Channel . .52 Color Data: char, long, or float . .53 Isolating Planes of a Matrix . .53 Color Rotation . .55 Automated Color Changes . .57 Summary . .57 Tutorial 6: Adjust Color Levels . 59 The jit.scalebias Object . .59 Math with char Data . .59 Some More Examples of.