basic drawing functions and color handling