More tweaks

This commit is contained in:
Bruce Hill 2019-01-03 05:29:25 -08:00
parent 958b16fa7c
commit ba43ec3368
2 changed files with 8 additions and 2 deletions

View File

@ -90,7 +90,7 @@ void draw_globe(double t, double zoom)
double theta = atan2(z, sqrt(x*x + y*y));
double phi = fmod(atan2(y, x) + rotation, 2.*M_PI);
double elevation = hillnoise(theta*4., phi*4.);
double clouds = hillnoise(theta*16., phi*7. - 1.*rotation - 100.);
double clouds = hillnoise(theta*12., phi*6. - 1.*rotation - 140.);
int color;
int ch;
if ((fabs(z)/rho) > .9) {
@ -144,7 +144,7 @@ void draw_clouds(double t, double zoom)
double theta = atan2(z, sqrt(x*x + y*y));
double phi = fmod(atan2(y, x) + rotation, 2.*M_PI);
double clouds = hillnoise(theta*16., phi*7. - 1.*rotation - 100.);
double clouds = hillnoise(theta*12., phi*6. - 1.*rotation - 140.);
int color;
int ch;
if (clouds < .4) {

6
nuke.c
View File

@ -419,6 +419,12 @@ int main(int argc, char *argv[])
mvprintw(targetr-2,targetc+2," DELETED ");
attroff(COLOR_PAIR(BLACK_ON_GREEN));
}
attron(COLOR_PAIR(BLACK_ON_GREEN));
const char *any_key = " PRESS ANY KEY TO EXIT ";
mvprintw(rows-2, cols/2-strlen(any_key)/2, any_key);
attroff(COLOR_PAIR(BLACK_ON_GREEN));
refresh();
if (getch() != -1)
goto exit_success;