gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/anim.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/anim.lua')
-rw-r--r--examples/anim.lua 4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/anim.lua b/examples/anim.lua
index 8047e00e..4dddacc5 100644
--- a/examples/anim.lua
+++ b/examples/anim.lua
@@ -14,7 +14,7 @@ function demo1()
for j=0, N do
c:clear()
c:draw(fig, 'yellow', {}, {{'rotate', angle= 2*pi*j/N}})
- c:draw(fig, 'black', {{'stroke'}}, {{'rotate', angle= 2*pi*j/N}})
+ c:stroke(fig, 'black', {}, {{'rotate', angle= 2*pi*j/N}})
c:refresh()
end
end
@@ -29,7 +29,7 @@ function demo2()
local w = 4*exp((j-256)/256)
p:clear()
local ln = fxline(|x| exp(-0.1*x)*cos(w*x), 0, x1)
- p:draw(ln, 'red', {{'stroke', width=1.5}})
+ p:stroke(ln, 'red')
p:refresh()
end
end
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月18日 10:23:52 +0000

AltStyle によって変換されたページ (->オリジナル) /