gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/graphics.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphics.lua')
-rw-r--r--examples/graphics.lua 6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/graphics.lua b/examples/graphics.lua
index 699a6bab..4316d9c0 100644
--- a/examples/graphics.lua
+++ b/examples/graphics.lua
@@ -76,9 +76,9 @@ function demo2()
local txt = text()
local a = 2*pi*k/n - pi/2
local ch = |t| t[(k % #t)+1]
- txt:text('Hello world!')
- txt:set_point(R*cos(a), R*sin(a))
- txt:angle(a - pi)
+ txt.text = 'Hello world!'
+ txt:set(R*cos(a), R*sin(a))
+ txt.angle = a - pi
p:add(txt, ch(color))
end
p:show()
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月02日 14:44:52 +0000

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