Home
last modified time | relevance | path

Searched refs:frand (Results 551 – 567 of 567) sorted by path

1...<<212223

/dports/x11/xscreensaver/xscreensaver-5.44/hacks/
H A Dpiecewise.c369 c[i].x = c[i].r + frand(w - 1 - 2 * c[i].r); in init_circles()
370 c[i].y = c[i].r + frand(h - 1 - 2 * c[i].r); in init_circles()
376 a = frand(2 * M_PI); in init_circles()
377 v = (1 + frand(0.5)) * speed / 10.0; in init_circles()
398 c->x += frand(2) - 1; in tweak_circle()
399 c->y += frand(1) + 0.1; in tweak_circle()
H A Dpong.c595 st->reception.multipath = frand(1.0); in pong_init()
H A Dpyro.c69 dA+=asin(frand(1.0))/M_PI_2*0.1; in cache()
H A Dqix.c87 hsv_to_rgb (random () % 360, frand (1.0), frand (0.5) + 0.5, in init_one_qix()
H A Dsquiral.c18 #define PROB(x) (frand(1.0) < (x))
H A Dstarfish.c85 s->rotv = frand(4) + frand(4) + frand(4); in make_starfish()
96 s->rota = 0.0004 + frand(0.0002); in make_starfish()
100 size *= frand(0.35) + frand(0.35) + 0.3; in make_starfish()
127 s->th = frand(M_PI+M_PI) * RANDSIGN(); in make_starfish()
H A Dsubstrate.c218 a -= 90 + (frand(4.1) - 2.0); in start_crack()
220 a += 90 + (frand(4.1) - 2.0); in start_crack()
266 cr->sandg = (frand(0.2) - 0.01); in make_crack()
423 cr->sandg += (frand(0.1) - 0.050); in region_color()
527 cx = (int) (cr->x + (frand(0.66) - 0.33)); in movedrawcrack()
528 cy = (int) (cr->y + (frand(0.66) - 0.33)); in movedrawcrack()
H A Dvfeedback.c83 st->tv->color_control = frand(1.0) * RANDSIGN(); in twiddle_knobs()
84 st->tv->contrast_control = 0.4 + frand(1.0); in twiddle_knobs()
85 st->tv->tint_control = frand(360); in twiddle_knobs()
99 st->rect.x = frand(0.1) * RANDSIGN(); in twiddle_camera()
100 st->rect.y = frand(0.1) * RANDSIGN(); in twiddle_camera()
101 st->rect.w = st->rect.h = 1 + frand(0.4) * RANDSIGN(); in twiddle_camera()
102 st->rect.th = 0.2 + frand(1.0) * RANDSIGN(); in twiddle_camera()
354 st->ds = frand(0.2) * RANDSIGN(); /* zoom */ in vfeedback_draw()
358 st->dx = frand(0.05) * RANDSIGN(), /* pan */ in vfeedback_draw()
359 st->dy = frand(0.05) * RANDSIGN(); in vfeedback_draw()
[all …]
H A Dwhirlygig.c420 st->modifier = 3000.0 + frand(1500.0); in whirlygig_init()
H A Dxanalogtv.c479 st->tv->tint_control += pow(frand(2.0)-1.0, 7) * 180.0; in xanalogtv_init()
482 st->tv->color_control += frand(0.3); in xanalogtv_init()
506 rec->level = pow(frand(1.0), 3.0) * 2.0 + 0.05; in xanalogtv_init()
509 rec->multipath = frand(1.0); in xanalogtv_init()
516 rec->freqerr = (frand(2.0)-1.0) * 3.0; in xanalogtv_init()
H A Dxrayswarm.c363 if (st->ntargets < 0) st->ntargets = (0.25+frand(0.75)*frand(1))*MAX_TARGETS; in initBugs()
366 if (st->nbugs < 0) st->nbugs = (0.25+frand(0.75)*frand(1))*MAX_BUGS; in initBugs()
370 st->trailLen = (1.0 - frand(0.6)*frand(1))*MAX_TRAIL_LEN; in initBugs()
379 b->pos[0] = frand(st->maxx); in initBugs()
380 b->pos[1] = frand(st->maxy); in initBugs()
381 b->vel[0] = frand(st->maxVel/2); in initBugs()
382 b->vel[1] = frand(st->maxVel/2); in initBugs()
391 b->pos[0] = frand(st->maxx); in initBugs()
392 b->pos[1] = frand(st->maxy); in initBugs()
667 theta = frand(6.28); in updateState()
[all …]
H A Dxspirograph.c172 st->divisor = ((frand (3.0) + 1) * (((random() & 1) * 2) - 1)); in pick_new()
208 hsv_to_rgb (random () % 360, frand (1.0), frand (0.5) + 0.5, in new_colors()
/dports/x11/xscreensaver/xscreensaver-5.44/jwxyz/
H A Djwxyz-android.c1245 glClearColor (frand(1), frand(1), frand(1), 0); in XCreatePixmap()
H A Djwxyz-cocoa.m1022 glClearColor (frand(1), frand(1), frand(1), 0);
/dports/x11/xscreensaver/xscreensaver-5.44/utils/
H A Dalpha.c203 frand (1.0), in allocate_alpha_colors()
204 frand (0.5) + (additive_p ? 0.2 : 0.5), in allocate_alpha_colors()
H A Dcolors.c528 s[i] = frand(1.0); in make_smooth_colormap()
529 v[i] = frand(0.8) + 0.2; in make_smooth_colormap()
H A Dyarandom.h28 #undef frand
87 # define frand(f) \ macro
96 # define frand(f) \ macro

1...<<212223