在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
use SDL; use SDLx::App; my $app=SDLx::App->new(w=>400,h=>400,d=>32,t=>"我的第一程序:hello,world"); $app->draw_line([20,100],[200,20],[255,255,0,255]); $app->update(); sleep(10);
use SDL; use SDLx::App; my $app=SDLx::App->new(w=>400,h=>400,d=>32,t=>"我的第一程序:hello,world"); $app->draw_line([20,100],[200,20],[255,255,0,255]); $app->draw_rect([20,100,120,120],[255,0,0,255]); $app->update(); sleep(10);
use SDL; use SDLx::App; my $app=SDLx::App->new(w=>400,h=>400,d=>32,t=>"我的第一程序:hello,world"); $app->draw_line([20,100],[200,20],[255,255,0,255]); $app->draw_rect([20,100,120,120],[255,0,0,255]); $app->draw_circle([100,100],15,[255,0,0,255]); $app->draw_circle_filled([100,100],15,[255,0,255,255]); $app->update(); sleep(10);
|
请发表评论