flags.pl

来自「PRl教学程序 PRl教学程序 PRl教学程序」· PL 代码 · 共 28 行

PL
28
字号
/********************************************************************
    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 + =
减小字号Ctrl + -
显示快捷键?