gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/examples/fractals.lua
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2010年01月02日 21:39:18 +0000
committerFrancesco Abbate <francesco.bbt@gmail.com>2010年01月02日 21:39:18 +0000
commit8e38a45bad58c0e8f53ed76e8bf6f8bf1bd7044f (patch)
tree9645747e390810e4a77e403b0a35bc0192b1a6ad /examples/fractals.lua
parent0480a5aa50ce6e588621e88545671f200196fc55 (diff)
downloadgsl-shell-8e38a45bad58c0e8f53ed76e8bf6f8bf1bd7044f.tar.gz
Completed special function implementation but not all the functions are supported. Added support for rgb colors and alpha blending.
Diffstat (limited to 'examples/fractals.lua')
-rw-r--r--examples/fractals.lua 5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/fractals.lua b/examples/fractals.lua
index a2236e80..4543a203 100644
--- a/examples/fractals.lua
+++ b/examples/fractals.lua
@@ -44,8 +44,9 @@ end
function levyc(n)
local p = plot()
local c = ipath(c_generator(n, 4, 1/2, {-1,0,0,1}))
- p:add(c, 'red', {{'stroke'}}, {{'rotate', angle= -pi/4}})
- p:add(c, 'red', {{'stroke'}}, {{'translate', x=1/sqrt(2), y=-1/sqrt(2)},{'rotate', angle= pi/4}})
+ p:add(c, 'red', {{'stroke', width=0.7}}, {{'rotate', angle= -pi/4}})
+ p:add(c, 'red', {{'stroke', width=0.7}},
+ {{'translate', x=1/sqrt(2), y=-1/sqrt(2)},{'rotate', angle= pi/4}})
p:show()
return p
end
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月18日 11:31:02 +0000

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