Designing with Code

How do you balance good design with code? I am drawn to the complexities of code, but even basic visuals made by html are enough to fuse with my drawings and designs. Lately, I'm dabbing into Eclipse, while continuing to explore Processing. 

Picture 1.png

(top) movement originating from one focus point

(bottom) testing "gravity" and radial "snake -like" movement.