示例#1
0
文件: TEST.C 项目: cloudify/pixpack
void    main    ( void )
{
	int     pos;

	for( pos=0; pos<_POINTS; pos++ )
	{
		list[ pos ].x= ( uchar ) rand() % 256;
		list[ pos ].y= ( uchar ) rand() % 200;
		list[ pos ].c= ( uchar ) rand() % 256;
	}

	set_bmode();

	while( !kbhit() )
	{
		wvbl();
		border( 1 );
		/* draw_list( list, _POINTS ); */
		draw_random ( 6000 );
		border( 0 );

	}

	getch();

	_asm    mov ax,3h
	_asm    int 10h
}
示例#2
0
int main(void){
  srand(time(0));
  pixmap pm; 
  ppm_create_buffer(&pm, 1920, 1080);
  
  draw_random(&pm);

  ppm_save_image(&pm, "8.ppm");
  printf("Generated file 8.ppm\n");
  return 0;
}
示例#3
0
static cairo_time_t
random_nz (cairo_t *cr, int width, int height, int loops)
{
    return draw_random (cr, CAIRO_FILL_RULE_WINDING, width, height, loops);
}
示例#4
0
static cairo_time_t
random_eo (cairo_t *cr, int width, int height, int loops)
{
    return draw_random (cr, CAIRO_FILL_RULE_EVEN_ODD, width, height, loops);
}