improved text class - 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:
authorfrancesco-ST <francesco.abbate@st.com>2010年08月05日 13:58:06 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年08月05日 13:58:06 +0200
commit19b34676bbbb009b5a60c572eebe82c447185b67 (patch)
tree3356c71e184649f7ec942c88844c8d9c381c497e /examples/graphics.lua
parent342f6c89dc388883f174e37627fb013190311a2d (diff)
downloadgsl-shell-19b34676bbbb009b5a60c572eebe82c447185b67.tar.gz
improved text class
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.39.1) at 2025年09月28日 06:41:03 +0000

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