author | francesco-ST <francesco.abbate@st.com> | 2010年08月05日 13:58:06 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年08月05日 13:58:06 +0200 |
commit | 19b34676bbbb009b5a60c572eebe82c447185b67 (patch) | |
tree | 3356c71e184649f7ec942c88844c8d9c381c497e /examples/graphics.lua | |
parent | 342f6c89dc388883f174e37627fb013190311a2d (diff) | |
download | gsl-shell-19b34676bbbb009b5a60c572eebe82c447185b67.tar.gz |
-rw-r--r-- | examples/graphics.lua | 6 |
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() |