refactor(colors): extracts color conversion methods in a mixin

It enables to have some conversion accessors directly on the color
class and keep the class readable.
refator(package): lints files, adds documentation and renames methods
feat(colors): adds support for vec4 colors