Searched refs:frand (Results 551 – 567 of 567) sorted by path
1...<<212223
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/ |
H A D | piecewise.c | 369 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 D | pong.c | 595 st->reception.multipath = frand(1.0); in pong_init()
|
H A D | pyro.c | 69 dA+=asin(frand(1.0))/M_PI_2*0.1; in cache()
|
H A D | qix.c | 87 hsv_to_rgb (random () % 360, frand (1.0), frand (0.5) + 0.5, in init_one_qix()
|
H A D | squiral.c | 18 #define PROB(x) (frand(1.0) < (x))
|
H A D | starfish.c | 85 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 D | substrate.c | 218 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 D | vfeedback.c | 83 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 D | whirlygig.c | 420 st->modifier = 3000.0 + frand(1500.0); in whirlygig_init()
|
H A D | xanalogtv.c | 479 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 D | xrayswarm.c | 363 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 D | xspirograph.c | 172 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 D | jwxyz-android.c | 1245 glClearColor (frand(1), frand(1), frand(1), 0); in XCreatePixmap()
|
H A D | jwxyz-cocoa.m | 1022 glClearColor (frand(1), frand(1), frand(1), 0);
|
/dports/x11/xscreensaver/xscreensaver-5.44/utils/ |
H A D | alpha.c | 203 frand (1.0), in allocate_alpha_colors() 204 frand (0.5) + (additive_p ? 0.2 : 0.5), in allocate_alpha_colors()
|
H A D | colors.c | 528 s[i] = frand(1.0); in make_smooth_colormap() 529 v[i] = frand(0.8) + 0.2; in make_smooth_colormap()
|
H A D | yarandom.h | 28 #undef frand 87 # define frand(f) \ macro 96 # define frand(f) \ macro
|
1...<<212223