class OpacityShapeTest_TranslucentOverOpaque_Test

Defined at line 140 of file ../../src/ui/lib/escher/test/integration/opacity_unittest.cc

We draw the following scene:

+--------+---------+---------+---------+

| | |

| | |

| | |

+ YELLOW | BLACK |

| (1, 1, 0, 1) | |

| | |

| | |

+ ====================|

| ǁ | |

| ǁ Blend | |

| ǁ | |

+------------------ǁ---------+ |

| BLACK ǁ Cyan (75%) |

| (0, 0, 0, 1) ǁ (0, 1, 1, 0.75) |

| ǁ |

+--------+---------+---------+---------+

The Cyan rectangle is over Yellow rectangle, which

is over the black background.

8/16 of the area should be Yellow (1, 1, 0, 1);

4/16 of the area should be Black (0, 0 ,0, 1);

3/16 of the area should be 75% Cyan (0, 0.75, 0.75, 1);

1/16 of the area should be the blended color, which is

(0.25 * (1, 1, 0) + 0.75 * (0, 1, 1), 1) = (0.25, 1, 0.75, 1).

Public Methods

void OpacityShapeTest_TranslucentOverOpaque_Test ()

Defined at line 140 of file ../../src/ui/lib/escher/test/integration/opacity_unittest.cc

void OpacityShapeTest_TranslucentOverOpaque_Test (const OpacityShapeTest_TranslucentOverOpaque_Test & )

Defined at line 140 of file ../../src/ui/lib/escher/test/integration/opacity_unittest.cc

OpacityShapeTest_TranslucentOverOpaque_Test & operator= (const OpacityShapeTest_TranslucentOverOpaque_Test & )

Defined at line 140 of file ../../src/ui/lib/escher/test/integration/opacity_unittest.cc