Is there a simpler way to change font colour than this

playdate.graphics.setImageDrawMode(playdate.graphics.kDrawModeInverted)
playdate.graphics.drawText("Text", 20, 20)
playdate.graphics.setImageDrawMode(playdate.graphics.kDrawModeCopy)

If you use it often you can just add your own function to do so

function playdate.graphics.drawInvertedText(...)
	local gfx = playdate.graphics

	local original_draw_mode = gfx.getImageDrawMode()

	gfx.setImageDrawMode( playdate.graphics.kDrawModeInverted )
	gfx.drawText(...)
	gfx.setImageDrawMode( original_draw_mode )
end
2 Likes

Thanks.

It's things like that that separate the real coders from people like me.

1 Like