gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/text.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/text.lua')
-rw-r--r--examples/text.lua 32
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/text.lua b/examples/text.lua
deleted file mode 100644
index 06a98336..00000000
--- a/examples/text.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-
-ln = fxline(sin, 0, 4*pi)
-
-p = plot 'test'
-p.units = false
-p:show()
-
-p:addline(ln, 'red', {{'dash', 7, 3}})
-
-t = text(12)
-t.text = 'Hello world!'
-t:justif('cc')
-t:set(2*pi, 0)
-
-local N = 128
-for j=0, N do
- t.angle = 2*pi*j/N
- p:clear()
- p:draw(t, 'blue')
- p:refresh()
-end
-
-local N = 512
-for j=0, N do
- local x = 4*pi*j/N
- local y = sin(x)
- t:set(x, y)
- t.angle = atan2(cos(x), 1/(4*pi))
- p:clear()
- p:draw(t, 'blue')
- p:refresh()
-end
generated by cgit v1.2.3 (git 2.46.0) at 2025年10月01日 10:24:13 +0000

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