update doc/*/vca.md

This commit is contained in:
MihailRis 2026-09-26 00:03:03 +03:00
parent 0dfc87700d
commit 926bfc545d
2 changed files with 20 additions and 0 deletions

View file

@ -86,6 +86,16 @@ For the `texture` directive, it is simpler. Example:
> Here, `entities/tireman` is the name of the texture atlas containing `face_*` textures.
> The texture does not necessarily have to be in an atlas.
If you do not wish to limit the animation duration via `configure` but want to loop the keyframe animation for a specific line, you can use the `period` parameter to specify the animation's repetition period in frames. Example:
```vcd
@move by y curve linear period 24 {
@key frame 0 value 0
@key frame 12 value 1
@key frame 24 value 0
}
```
## Expression curves
The attribute describes a function `f(t) = x`, where t is time in seconds.

View file

@ -86,6 +86,16 @@ VCA файл состоит из набора директив, порядок
> entities/tireman здесь - имя текстурного атласа, в котором находятся face_\* текстуры.
> Текстура не обязательно должна находиться в атласе.
Если вы не хотите ограничивать длительность анимации через `configure`, но хотите зациклить анимацию по ключевым кадрам для конкретной линии, то можно использовать параметр `period` для указания периода повторения анимации в кадрах. Пример:
```vcd
@move by y curve linear period 24 {
@key frame 0 value 0
@key frame 12 value 1
@key frame 24 value 0
}
```
## Кривые через выражения
Через атрибут описывается функция `f(t) = x` где t - время в секундах.