Description and composition of bio-inspired design patterns: the gradient case