Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Processing Implementation: Project _ Samplesize ( 8 0 0 , 6 0 0 , P 3 D ) ; / / set up drawing canvas

Processing Implementation: Project_Samplesize(800,600, P3D); // set up drawing canvas
}
float angle =0; // define variable(s) as neccessary
void draw(){stroke(255,0,0); // stroke color// apply Transformation matrix0,1,0,0,0,0,1,0,// draw a shape from verticesvertex(0,0);vertex (50,50);endShape();
}
Download Processing > and install it on your computer.
Create a drawing canvas with the window size of 800600 pixels.
Use the background color, shape color, and stroke color of your choice.
Draw a shape on the drawing canvas by connecting all these following vertices:
V=[010010012080406060000010010014010010040400]
Determine a 44 matrix that produces each of the following composite 2D transformations
using homogeneous coordinates.
a. Translate by (200,50) and then rotate 45 degree about the origin
b. Rotate 45 degree about the origin and then translate by (200,50)
c. Rotate -90 degree about the origin, then scale the x-coordinate by 2 and the y-coordinate
by 0.5. After that translate by (400,300)
d. Scale the x-coordinate by 2 and the y-coordinate by 0.5, then rotate -90 degree about the
origin. After that translate by (400,300)
e. Apply shear transformation along the x-axis with the factor of 1.25, then reflect the shape
through y=x
f. Reflect the shape through y=x, then apply shear transformation along the x-axis with the
factor of 1.25
Apply EACH composite transformation matrix obtained in 5 to transform the shape. (You should
obtain 6 transformed shapes.)
Take screenshots of the transformed shapes and the snapshot of your code
Compose a Project Report: Use Microsoft Word to compose your report.
Cover page: Includes course number and name, project name, your name and PantherID.
Calculations: Show steps of calculation on how to obtain each composite transformation
matrix.
Results: Attach the screenshots of the original shape (without any transformation) plus all 6
transformed shapes along with your code.
Discussion: For each transformation, comment on what you observed from the results.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago