# Test al_draw_tinted_bitmap et al.

[bitmaps]
mysha=../examples/data/mysha.pcx
allegro=../examples/data/allegro.pcx

[test tint blit]
op0=al_clear_to_color(red)
op1=al_draw_tinted_bitmap(mysha, #ccaa44, 37, 47, flags)
flags=0
hash=706d8440
sig=BBBBALLLL8LS77LLLL9UID7LLLL9MB37LLLL11211LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL

[test tint region]
op0=al_clear_to_color(red)
op1=al_draw_tinted_bitmap_region(mysha, #ccaa44, 111, 51, 77, 99, 37, 47, flags)
flags=0
hash=1faa6d4d
sig=SLLLLLLLLBLLLLLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL

[test tint scale min]
op0=al_clear_to_color(red)
op1=al_draw_tinted_scaled_bitmap(mysha, #ccaa44, 0, 0, 320, 200, 11, 17, 77, 99, flags)
flags=0
hash=742e9335
sig=8LLLLLLLL1LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL

[test tint scale max]
op0=al_clear_to_color(blue)
op1=al_draw_tinted_scaled_bitmap(mysha, #ccaa44, 0, 0, 320, 200, 11, 17, 611, 415, flags)
flags=0
hash=c09b38b8
sig=777777776789D977778BQVNL7779XWUHL8779WLOEEB779SOGBC87728KDBD57711122A111CCCCCCCCC

[test tint rotate]
op0=al_clear_to_color(purple)
op1=al_draw_tinted_rotated_bitmap(allegro, #88aa44, 50, 50, 320, 240, theta, flags)
op2=al_draw_pixel(320, 240, cyan)
theta=-1.0
hash=da5afb88
sig=LLLLLJNALLLLLLHLBBLLLLGNHDLLLLLEKL8LLLLKGDALLLLLLHABLLLLLLLCLLLLLLLLLLLLLLLLLLLLL

[test tint scaled rotate]
op0=al_clear_to_color(firebrick)
op1=al_draw_tinted_scaled_rotated_bitmap(allegro, #88aa44, 50, 50, 320, 240, xscale, yscale, theta, flags)
op2=al_draw_pixel(320, 240, cyan)
xscale=0.25
yscale=0.25
theta=0.7854
flags=0
hash=3f12b882
sig=KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK8KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK

[test tint transform compose]
op0=al_translate_transform(Tt, 200, 50)
op1=al_use_transform(Tt)
op2=al_draw_tinted_bitmap(allegro, #aa0000, 0, 0, 0)
op3=al_rotate_transform(Tr, 0.5)
op4=al_use_transform(Tr)
op5=al_draw_tinted_bitmap(mysha, #00aa00, 0, 0, 0)
op6=al_scale_transform(T, 1.5, 0.7)
op7=al_compose_transform(T, Tr)
op8=al_compose_transform(T, Tt)
op9=al_use_transform(T)
op10=al_draw_tinted_bitmap(allegro, #0000aa, 0, 0, 0)
hash=68ba872b
sig=200112220C2A9DCCB0B642AAEB044433A53002234006000000300A000000557000000000000000000

[test al_draw_tinted_scaled_rotated_bitmap_region]
op0=al_draw_tinted_scaled_rotated_bitmap_region(mysha, 80, 50, 160, 100, #8080ff, 0, 0, 320, 240, 1.41, 1.41, -0.78, 0)
op1=al_draw_tinted_scaled_rotated_bitmap_region(mysha, 80, 50, 160, 100, #8080ff, 60, 0, 320, 240, 1.41, 1.41, 0.78, 0)
hash=7669c5a4
sig=000000000000000000000000PF0000R0YIE0000dPcMD000ROMYD00000EH90000000A0000000090000

[test horizontal shear]
op0=al_horizontal_shear_transform(T1, -0.5)
op1=al_use_transform(T1)
op2=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 0, 0, 64, 128, 0)
op3=al_translate_transform(T2, 64, 0)
op4=al_horizontal_shear_transform(T2, -0.5)
op5=al_use_transform(T2)
op6=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 0, 0, 64, 64, 0)
op7=al_translate_transform(T3, 64, 64)
op8=al_horizontal_shear_transform(T3, -0.5)
op9=al_use_transform(T3)
op10=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 0, 0, 64, 64, 0)
hash=380bb87f
sig=YF0000000Rt0000000000000000000000000000000000000000000000000000000000000000000000

[test vertical shear]
op0=al_vertical_shear_transform(T1, 0.5)
op1=al_use_transform(T1)
op2=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 0, 0, 64, 128, 0)
op3=al_translate_transform(T2, 64, 0)
op4=al_vertical_shear_transform(T2, 0.5)
op5=al_use_transform(T2)
op6=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 0, 0, 64, 64, 0)
op7=al_translate_transform(T3, 64, 64)
op8=al_vertical_shear_transform(T3, 0.5)
op9=al_use_transform(T3)
op10=al_draw_scaled_bitmap(mysha, 0, 0, 320, 200, 0, 0, 64, 64, 0)
hash=2af248da
sig=D00000000750000000F50000000000000000000000000000000000000000000000000000000000000
