diff options
| author | s-ol <s+removethis@s-ol.nu> | 2022-02-04 00:18:05 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-03-02 14:24:49 +0000 |
| commit | 6b79b6e2c7af377c43747eed933d78684d92ecb4 (patch) | |
| tree | 3e94da0bfe819711715b35a7bdedcaea903dc2fb | |
| parent | add Op:update_out and use in builtins (diff) | |
| download | alive-6b79b6e2c7af377c43747eed933d78684d92ecb4.tar.gz alive-6b79b6e2c7af377c43747eed933d78684d92ecb4.zip | |
lib: small fixes
| -rw-r--r-- | alv-lib/love.moon | 4 | ||||
| -rw-r--r-- | alv-lib/time.moon | 1 | ||||
| -rw-r--r-- | alv/invoke.moon | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/alv-lib/love.moon b/alv-lib/love.moon index e3fa7e4..cb53d1a 100644 --- a/alv-lib/love.moon +++ b/alv-lib/love.moon @@ -146,8 +146,8 @@ color = Constant.meta type: T['love/shape'] tick: => - { color, shape } = @unwrap_all! - { r, g, b, a } = color + { col, shape } = @unwrap_all! + { r, g, b, a } = col @out\set -> love.graphics.setColor r, g, b, a diff --git a/alv-lib/time.moon b/alv-lib/time.moon index 6852f9e..e0eecff 100644 --- a/alv-lib/time.moon +++ b/alv-lib/time.moon @@ -364,6 +364,7 @@ Creates smooth transitions when `value` changes. if clock current = @.out! delta = value - current + return if 1e-15 > math.abs delta @out\set current + delta * rate delay = Constant.meta diff --git a/alv/invoke.moon b/alv/invoke.moon index e40cbc4..a84b9e1 100644 --- a/alv/invoke.moon +++ b/alv/invoke.moon @@ -75,7 +75,7 @@ class op_invoke extends Builtin for input in @op\all_inputs! input\finish_setup! - super RTNode :children, result: @op.out, op: @op + super RTNode :children, result: @op.out, op: @op --- `Builtin:vis` implementation. -- |
