refactoring: moved a color function into colors sourcefile

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
refactoring: coords struct

Signed-off-by: Alexander Skjolden <alex@plastboks.net>