Docs @ Psychtoolbox Wiki : AlphaMultiplicationTest

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

AlphaMultiplicationTest

PsychtoolboxPsychTests

passedFlag=AlphaMultipicationTest([screenNumber])

TestAlphaMultiplication:


Test for perfect alpha multiplication precision for alpha values 0 and
1. OpenGL guarantees precise alpha muliplicaion for only those alpha
values. TestTestAlphaMultipicationAlphaTimes tests that guarantee.

Test all alpha modes in all combinations. This verifies that Screen sets
modes properly

Note that Screen alpha values fall in the range 0-255 while OpenGL alpha
values are normalized between 0-1; OpenGL alpha value 1 is equivalent to
Screen alpha value 255.

If no return argument is provided, then TestAlphaMultipication issues an error
when a test fails. If a return argument is supplied then it signals a
failed test only by returning true, without issuing an error.

See also: AlphaBlendingTest, PsychAlphaBlending




Path   Retrieve current version of AlphaMultiplicationTest.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychTests/AlphaMultiplicationTest.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0241 seconds