全部 CSS SVG 資源收集 HTML 其它 關於我
`"color"_(x,y)=(陣列計算)/"divisor"+"bias"*"alpha"_(x,y)`
以 3x3 為例,原來的值是 a,b,c,...,g,h,i 當使用陣列 `[[1,2,3],[4,5,6],[7,8,9]]` 去計算時,a 的值會等於
`a=(5*a+4*b+2*d+1*e)/(1+2+3+4+5+6+7+8+9)`
`b=(6*a + 5*b + 4*c + 3*d + 2*e + 1*f)/(1+2+3+4+5+6+7+8+9)`
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 ]]`
剛才的運算式 `X_2+Y^((4+5n))` 原始字串:X_2+Y^((4+5n))
`Ans=((-b)+-sqrt(b^2-4ac))/(2a)`