حل واجب TM240
واتس 00966562053739
ARAB OPEN UNIVERSITY
Faculty of Computer Studies
TM240, Computer graphics &multimedia
Fall 2021-2022 (all except KSA)
Note: This TMA comprises of four questions. The TMA is marked out of 100. All questions should be answered.
TMA Marking
As per AOU rules and regulations, all students are required to sit for MCQ exam, oral exam or any assessment tool after the submission of their TMAs in order to prove that their TMAs are done by themselves.
Plagiarism Warning
As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.
Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work):
I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work.
ID and Name of Student
Signature
Date
………………………………………………………………………………
……………………………………………………………
………………………………………
Question one
[25 marks]
Check the video file “car.wmv”, and based on this video and adopting the graphics primitives in Java, try to recreate the animation inside this video.
Question Two
[25 marks]
Adopting suitable Java primitives and based on the digit 5, implement the following shape: [15 marks]
b) Snapshot the output of a) [2 Marks]
c) Use suitable rendering to fill-in the shape suitably using suitable and well aligned-texture to reflect the real shape of your drawing. [8 Marks]
Question Three
[25 marks]
Checking the video file “animatedTextHighlighter.wmv”, try using animation principles in Java code to implement a similar animation. The video adopts text rendering functions, transparency functions and animation functions.
Question Four
[25 marks]
Given the following parametric equations:
x=100 t )3
y=100 (t) )3
Write suitable java code segment to draw this function. [5 marks]
Snapshot the output of a) [2 mark]
Modify the code in a) to draw the function in thick line without using stroke functions. [6 marks]
Snapshot the output of c) [3 marks]
Modify the code in a) to the draw the function in dashed style without using the stroke object. [6 marks]
Snapshot the output of e) [3 marks]