Question: Write MIPS code to draw the following figure on the bitmap display supplied as part of MARS: | { z } d } d d
Write MIPS code to draw the following figure on the bitmap display supplied as part of MARS:
z
d
d
d
d
z
More information about the picture:
The background is always yellow do not worry about the exact shade of yellow
The dimensions and curly braces are only for informational purposes, and not to be drawn.
The main face dark blue above has width w and height h From the main face and the depth
dimensions marked on the diagram, you should be able to figure out appropriate points for the top
face and side face note that all diagonal lines have slope
The main face has color given by the input crcgcb see inputs above Each RGB component of the
side face color is exactly twice the RGB component of the main face. Each RGB component of the top
face color is exactly four times the RGB component of the main face. If any of these RGB components
is too big for bits, you should use the maximum possible value.
The entire rectangular solid including all three faces should be perfectly centered in the display.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
