Anodizing is pretty simple, you submerge the aluminum part in an acid bath and run DC current through the bath with the part "+" and a cathode (generally a lead plate) as "-". There are some specifications for the acid strength and current density (amps/square foot of aluminum) that you can find online. Battery acid works fine but may need a bit of dilution.
After the electric acid bath, you wash the part in cold water. The surface will now be a foamy sort of aluminum oxide (you can't see this) with billions of tiny pores: if you soak it in a bath of dye before it dries the dye gets into these pores and colors the surface. To close/seal the pores you soak the part in hot/boiling water for a while. The surface is now a fairly deep hard aluminum oxide layer infused with color.
The surface will rise a bit, so parts get a few thou larger. You can mask areas to not be anodized easily, just paint with something that the acid bath won't attack.
I did anodizing for electronic assembly parts many years ago. STuff made from billet comes out beautiful. Trying it on diecast cases (the little aluminum boxes sold at electronics stores) we got a nasty blotchy finish. This may be because of the alloy or a result of the casting process, I don't know. It may be worth a try, but your cases might look bad.
There's a product called "gun-kote" we also used back then, and I used it on my 400F engine cases. It is a thin liquid you dip in or spray on. Then you heat cure it, in an oven. It smells bad while heat curing, so you should send the wife off to a spa for the day before trying it in the kitchen. The finish is really nice and quite durable, and there are a lot of colors. I used to buy spray cans but now it only comes in pint (or bigger) cans. I don't think it adds much to the surface but masking would be very simple, using masking tape should work. I didn't bother and there are some overspray marks on the transmission bearing bores and such but since I was spraying from cans none got on the main bearing journals. You'd need an awful lot to dip an engine case.