Energy Coding I: Transformation