import store from '../store'

export default ({ text, color = 'black', x = 0, y = 0, size = 32 }) => {
	const ctx = store.ctx

	ctx.textBaseline = 'hanging'
	ctx.fillStyle = color
	ctx.font = size + 'px Arial'
	ctx.fillText(text, x, y)
}
