On Sunday, 18 January 2015 at 21:10:05 UTC, Phil wrote:
Hi, I'm new to D and having a go at writing some image
processing stuff using Vladimir's ae.graphics library.
To filter (i.e. perform correlations/convolutions) on a view
with colour type C, I'd like to perform intermediate
calculations
Brilliant, thanks a lot.
That works a treat, allowing me to use c1 + c2 when c1 :: RGB and
c2 :: ChangeChannelType!(RGB, int), say.
It's not happy with doubles atm, but presumably this is sorted in
your push. Thanks again :-)
On Monday, 19 January 2015 at 21:11:34 UTC, Vladimir Panteleev
I've done this by declaring a static array of the same length as
ViewColor!V.channels, and foreach-ing over the channels in a
colour, but this seem uglier than it need to - it would be nice
if I could just define + and = appropriately on double[] and
colours to do the right thing.
On Sunday,