1260. CalGal - 2/22/2000 11:10:24 AM See, why do I have to work on my clarity if everyone can just figure out what I mean?
Coming right up. 1261. CalGal - 2/22/2000 11:15:40 AM As I said, I have no idea how it works. Someone just sent it to me and it needs tweaking.
#include < stdio.h >
#include < iostream.h >
void main()
{
/* totally idiot program to do Hofstadter's font-twiddling in a small
way in
HTML;
* read in text, re-emit each character wrapped in its own font tag
W/size
and color changing
* continuously.
* TODO: vary the initial values with each run; change color values by
smaller increments.
*/
char ch;
int i=6, r = 1, b = 3, g = 5, sdown=1, rdown = 0, bdown = 0, gdown =
1;
char * colors[6] = {"00", "33", "66", "99", "cc", "ff"};
cout << " ";
/* Read in single line from "stdin": */
while((ch = getchar()) != EOF)
{
if ( ch == '<')
{
cout << ch;
ch = getchar();
do{
cout << ch;
ch = getchar();
}
while (ch != '>' && ch != EOF);
if ( ch == '>') cout << ch;
}
else
{
cout << "" << ch << "";
if ( i == 1) sdown = 0;
if (i == 6) sdown = 1;
if ( r == 0) rdown = 0;
if (r == 5) rdown = 1;
if (b == 1) bdown = 0;
if (b == 5) bdown = 1;
g = (g + 2 )%5;
}
}
cout << " | ";
}
1262. FXMuckermind - 2/22/2000 2:58:29 PM I DIDN'T SEE ANYTHING BUT A BLACK BOX
1263. CalGal - 2/22/2000 3:23:55 PM Me neither, quite frankly. Someone just sent me the code and I passed it on for Dusty to play with. 1264. FXMuckermind - 2/23/2000 12:50:03 AM Dusty,I'm not talking about the white font.
I would never think of grading you.Like I said, woner if you will EVER get it.
You missed the point.
But thats OK
1265. LadyJane - 2/23/2000 1:21:19 AM Font Colorizer Program
This is the program that will colorize your text. 1266. PsychProf - 2/23/2000 1:56:55 AM LadyJane...thanks much... 1267. Cazart - 2/23/2000 2:12:12 AM Hello Marty McSorley.
Goodbye Marty McSorley.
1268. Cazart - 2/23/2000 2:14:29 AM Hello Marty McSorley.
Goodbye Marty McSorley.
1269. Dusty - 2/23/2000 2:14:41 AM FXMuckermind
I would never think of grading you.
Christ, it was a joke. Sorry you didn't get it. Lighten up.
Quiz 1270. PsychProf - 2/23/2000 2:15:33 AM A new toy for PP 1271. Cazart - 2/23/2000 2:17:08 AM Sports and Dr. Laura
1272. Cazart - 2/23/2000 2:46:38 AM SPORTS--a foreign concept in theMote
1273. FXMuckermind - 2/23/2000 4:48:52 PM
Dusty
I got it. I was just tweaking you back. *G*
However, how many other people do you think got it?
1274. Dusty - 2/23/2000 9:07:58 PM My guess, over half. 1275. FXMuckermind - 2/24/2000 7:15:09 AM
So, that would be about 6 people right? 1276. dusty - 2/24/2000 7:52:18 AM Seven actually. 1277. FXMuckermind - 2/24/2000 10:01:52 AM
?
1278. PincherMartin - 2/25/2000 6:18:21 AM tr is table row this is the first cell | this is the second cell |
Substitute angle brackets.
If you want more than one column, just keep adding (td)s. Make sure you end each row with a (/tr), although (/td)s aren't necessary.
1279. Absensia - 2/26/2000 2:26:09 AM testing..wondering why I end up with spaces in the middle of my sentences?
I am wondering why I end up with spaces in the middle of my sentences
and if it could be that I'm hitting enter at where I think the "end"
is..instead of letting word wrap do it...let's see.
|