Convert the rgb values for the colours, Computer Graphics

Assignment Help:

In computers, colours are created by blending different combinations of red, green and blue. These colours are normally specified as three two-digit hexadecimal numbers in html, photoshop, gimp etc. For example, Brown is specified as A62929 to indicate the proportions of red, green and blue required. For grey shades the three proportions will always be equal. Moreover FF indicates that the colour is fully saturated. Thus red is FF0000, green is 00FF00, and blue is 0000FF. This colour system is called RGB.

Other applications, such as MATLAB require the RGB colours to be specified in terms of the fraction of each colour required. In this case, the colour is specified by three numbers between 0 and 1, with 1 representing full colour saturation. For example, Brown in this system is given as (0.65, 0.16, 0.16); while red is (1, 0, 0); green is (0, 1, 0) and blue is (0, 0, 1). This representation is referred as the RGB colour fraction.

Given that different systems are used in different applications, it is important to be able to convert between the two representations. The largest number that can be represented by a two-digit hexadecimal number is 16 FF so we know that there are 255 possible shades that can be represented.  Hence, to convert the hexadecimal colour representation to a colour fraction, the following has to be done:

1.  Convert each hexadecimal colour number to its decimal equivalent.

2.  Divide each decimal by 255.

3.  Record each fraction as the colour fraction required for that colour. Converting from a colour fraction to the hexadecimal version is the reverse of the above.

To illustrate, let us consider Brown. Its shade of red is 16 A6. As a decimal this corresponds to 166. Hence, the fraction amount of red required is 166 255 0.65. Similarly for green the decimal equivalent of 16 29 is 41. Therefore, the green colour fraction is 41 255 0.16
. The blue colour fraction for Brown is also 0.16.

(a) Convert the RGB values for the colours below to their equivalent RGB colour fractions. Round your answers to two decimal places.

389_Convert the RGB values for the colours.png


Related Discussions:- Convert the rgb values for the colours

Types of formats of audio file formats, Types of Formats It is signific...

Types of Formats It is significant to distinguish among a file format and a codec. Although most audio file formats support merely one audio codec, a file format may assist mul

Associative links, Associative Links: it is a link that is completely inde...

Associative Links: it is a link that is completely independent of the exact structure of the information. For illustration we have links depends on the meaning of various informat

What is a dot size and interdot distance, What is a dot size and interdot d...

What is a dot size and interdot distance? Dot size may be explained as the diameter of a single dot on the devices output. Dot size is also known as the Spot size.  Interdo

What is vanishing point and view reference point, What is vanishing point a...

What is vanishing point and view reference point? The perspective projections of any set of parallel lines that are not parallel to the projection plane converge to appoint cal

Passive computer animations - types of computer animation, Passive Computer...

Passive Computer Animations: That has no option for users to utilize computer graphics today is mostly interactive for example: movies. Frame animation is non-interactive anim

Find the normalization transformation, Illustration: Find the normalizatio...

Illustration: Find the normalization transformation N that uses the rectangle W (1, 1), X (5, 3), Y (4, 5) and Z (0, 3) as a window and also the normalized device screen like the

Parallel source and distributed light source, Parallel source and Distribut...

Parallel source and Distributed light source a) Parallel source: this is to be noted that while point source is at an infinite distance then light rays are parallel and func

Image editing tools in multimedia, Image Editing Tools These are specia...

Image Editing Tools These are specializing and influential tools for enhancing and re-touching existing bit-mapped images. Such applications also give several of the features a

Computer aided design and computer aided manufacturing, The development of ...

The development of CAD had little consequence on CNC initially because of the various abilities and file formats used through drawing and machining programs. Conversely, as Compute

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd