⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flags.pl

📁 PRl教学程序 PRl教学程序 PRl教学程序
💻 PL
字号:
/********************************************************************
    Constraint-based Graphical Programming in B-Prolog
    %
    Animate flags
*********************************************************************/
:-include('antiguabarbuda').
:-include('china').
:-include('japan').
:-include('usa').
:-write('type animate to start'),nl.

animate:-
    animate([antigua,china,japan,usa]).

animate(Countries):-
    cgStartRecordAnimation(flags),
    member(Country,Countries),
    Call=..[Country,Frame],
    call(Call),
    cgPack(Frame),
    cgResize(Frame,NFrame,300,300),
    cgCleanDefaultWindow,
    cgShow(NFrame),
    cgSleep(1000),
    fail.
animate(Countries):-
    cgStopRecord.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -