change inline -> static inline, change magic number 256 -> COLORS