Blob Blame Raw

#include <math.h>

#include <helianthus.h>

#include "font.h"



static Font font;


void fontInit() {
	font = createFont("data/fonts/blackcry.ttf");
}


void fontDraw() {
	double x = 512;
	double y = 256;
	
	textSize(64*(1+sin(worldGetSeconds()/4)));
	text("Here is the\nleft aligned\ntext. VAW.", x, y);
	
	textFont(font);
	textAlign(HALIGN_RIGHT, VALIGN_TOP);
	text("Here is the\nright aligned\ntext. VAW.", x, y);
	
	textFontDefault();
	textAlign(HALIGN_LEFT, VALIGN_TOP);
}