tests: Add more tests for AVM1 Color object
Include not defined values, wrapping values, invalid values.
This commit is contained in:
parent
cc90d7b0ae
commit
19df074a79
|
@ -1,29 +1,53 @@
|
|||
// Testing untinted clip
|
||||
|
||||
// c.target:
|
||||
_level0.mc
|
||||
|
||||
// c.getTransform():
|
||||
ra: 100 ga: 100 ba: 100 aa: 100
|
||||
rb: 0 gb: 0 bb: 0 ab: 0
|
||||
|
||||
// c.getRGB():
|
||||
0
|
||||
// c.setTransform():
|
||||
|
||||
// c.setTransform() 1 (noop):
|
||||
ra: 100 ga: 100 ba: 100 aa: 100
|
||||
rb: 0 gb: 0 bb: 0 ab: 0
|
||||
|
||||
// c.setTransform() 2:
|
||||
ra: 50 ga: -100 ba: 200 aa: 100
|
||||
rb: 0 gb: 0 bb: 0 ab: 0
|
||||
|
||||
// c.setTransform() 3:
|
||||
ra: 50 ga: -100 ba: 200 aa: 50
|
||||
rb: 100 gb: -100 bb: 50 ab: 25
|
||||
|
||||
// c.setTransform() 4 (weird params):
|
||||
ra: 0 ga: 0 ba: 100 aa: 0.78125
|
||||
rb: 1 gb: 0 bb: 50 ab: 25
|
||||
|
||||
// c.setTransform() 5 (overflow):
|
||||
ra: -12800 ga: 2401.171875 ba: 100 aa: 0.78125
|
||||
rb: 10 gb: 32704 bb: 50 ab: 25
|
||||
|
||||
// c.setRGB():
|
||||
ra: 0 ga: 0 ba: 0 aa: 50
|
||||
ra: 0 ga: 0 ba: 0 aa: 0.78125
|
||||
rb: 255 gb: 0 bb: 102 ab: 25
|
||||
|
||||
// Pre-tinted movie clip:
|
||||
// c.getTransform():
|
||||
ra: 75 ga: 50 ba: 25 aa: 100
|
||||
rb: 255 gb: 128 bb: 64 ab: -64
|
||||
|
||||
// c.getRGB():
|
||||
16744512
|
||||
|
||||
// Pre-tinted button:
|
||||
|
||||
// c.getTransform():
|
||||
ra: 100 ga: 100 ba: 100 aa: 100
|
||||
rb: -50 gb: -25 bb: 25 ab: -25
|
||||
|
||||
// c.getRGB():
|
||||
-6375
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue