![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Я закончил свою первую программу на FUPE. Программа красит рыбу случайным образом, а затем в цикле высветляет хвост разными цветами до максимальной насыщенности. Цикл выполняется два раза.
S3 is flip-flop of BLACK and WHITE;
S3W is incident when S3 becomes WHITE;
all the fish is haphazard;
FF is aftermath of S3W as follows [
S0 is flip-flop of like S1 and like S2;
S0W is incident when S0 becomes like S1;
S0B is incident when S0 becomes like S2;
S3 is BLACK;
S10 is BLACK;
S20 is BLACK;
S30 is BLACK;
S40 is BLACK;
S50 is BLACK;
S49 is BLACK + (0,0,250);
S42 is BLACK;
CT1 is aftermath of S0W as follows [
S10 is like S10 + (10,0,0);
S20 is like S20 + (10,10,0);
S30 is like S30 + (0,10,0);
S40 is like S40 + (0,10,10);
S50 is like S50 + (0,0,10);
t2 is like S20;
t4 is like S40;
]
CT2 is aftermath of S0B as follows [
t1 is like S10;
t3 is like S30;
t5 is like S50;
]
TP is incident when S50 becomes like S49;
CC is aftermath of TP as follows [
S10 is BLACK;
S20 is BLACK;
S30 is BLACK;
S40 is BLACK;
S50 is BLACK;
S42 is like S42 + (0,0,10);
]
FINISH is incident when S42 becomes (0, 0, 20);
TFA is aftermath of FINISH as follows [
thanks for all the fish;
]
]
S3 is flip-flop of BLACK and WHITE;
S3W is incident when S3 becomes WHITE;
all the fish is haphazard;
FF is aftermath of S3W as follows [
S0 is flip-flop of like S1 and like S2;
S0W is incident when S0 becomes like S1;
S0B is incident when S0 becomes like S2;
S3 is BLACK;
S10 is BLACK;
S20 is BLACK;
S30 is BLACK;
S40 is BLACK;
S50 is BLACK;
S49 is BLACK + (0,0,250);
S42 is BLACK;
CT1 is aftermath of S0W as follows [
S10 is like S10 + (10,0,0);
S20 is like S20 + (10,10,0);
S30 is like S30 + (0,10,0);
S40 is like S40 + (0,10,10);
S50 is like S50 + (0,0,10);
t2 is like S20;
t4 is like S40;
]
CT2 is aftermath of S0B as follows [
t1 is like S10;
t3 is like S30;
t5 is like S50;
]
TP is incident when S50 becomes like S49;
CC is aftermath of TP as follows [
S10 is BLACK;
S20 is BLACK;
S30 is BLACK;
S40 is BLACK;
S50 is BLACK;
S42 is like S42 + (0,0,10);
]
FINISH is incident when S42 becomes (0, 0, 20);
TFA is aftermath of FINISH as follows [
thanks for all the fish;
]
]