debug strings with fade

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
dmonchild
Posts: 15
Joined: Sun Dec 23, 2007 5:46 pm

debug strings with fade

Post by dmonchild »

I got bored n tired of seeing shitty debug text all flat and 70's looking. Combo this with the nofx's sdk debug font mod and stuff looks nice.

Code: Select all

void pspDebugScreenPutsFade(char buffer[], unsigned int colorfrom, unsigned int colorto){
	int counter=0;
	char output[1];
	while&#40;counter < strlen&#40;buffer&#41;&#41;&#123;	
		pspDebugScreenSetTextColor&#40;colorfrom - &#40;counter * colorto&#41;&#41;;
		sprintf&#40;output, "%c", buffer&#91;counter&#93;&#41;; 
		pspDebugScreenPuts&#40;output&#41;;
		counter++;
	&#125;
	return;
&#125;
hmm
Post Reply