全部 CSS SVG 資源收集 HTML 其它 關於我
matrix 的定義如下,從 `a_00` 到 `a_34` 就是 values 要填的值
`[[R_(out)],[G_(out)],[B_(out)],[A_(out)],[1]] = [[a_00,a_01,a_02,a_03,a_04] ,[a_10,a_11,a_12,a_13,a_14] ,[a_20,a_21,a_22,a_23,a_24] ,[a_30,a_31,a_32,a_33,a_34] ,[0 ,0 ,0 ,0 ,1 ]] * [[R],[G],[B],[A],[1]]`
`[[2 ,0 ,0 ,0 ,0 ] , [0 ,2 ,0 ,0 ,0 ] , [0 ,0 ,2 ,0 ,0 ] , [0 ,0 ,0 ,1 ,0 ] , [0 ,0 ,0 ,0 ,1 ]]`
`[[0.213+0.787s,0.715-0.715s,0.072-0.072s,0 ,0 ] , [0.213-0.213s,0.715+0.285s,0.072-0.072s,0 ,0 ] , [0.213-0.213s,0.715-0.715s,0.072+0.928s,0 ,0 ] , [0 ,0 ,0 ,1 ,0 ] , [0 ,0 ,0 ,0 ,1 ]]`
`[[a_00,a_01,a_02] ,[a_10,a_11,a_12] ,[a_20,a_21,a_22]] = [ [0.213,0.715,0.072] , [0.213,0.715,0.072] , [0.213,0.715,0.072]] + cos(hue\ deg)`
`*[ [+0.787,-0.715,-0.072] , [-0.213,+0.285,-0.072] , [-0.213,-0.715,+0.928]] + sin(hue\ deg)`
`*[ [-0.213,-0.715,+0.928] , [+0.143,+0.140,-0.283] , [-0.787,+0.715,+0.072]]`
`[[0 ,0 ,0 ,0 ,0 ] , [0 ,0 ,0 ,0 ,0 ] , [0 ,0 ,0 ,0 ,0 ] , [0.2126,0.7152,0.0722,0 ,0 ] , [0 ,0 ,0 ,0 ,1 ]]`
沒有留言:
張貼留言