Skip to content

Commit 778360e

Browse files
committed
examples: add pattern animation
1 parent 52aaa2c commit 778360e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/pattern.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ shapes = WordCloud.tobitmap.([shape(ellipse, round(sz[i]), round(sz[i]), color=r
2222
setimages!(wc, :, shapes)
2323

2424
setstate!(wc, :initwords!) # set the state flag after manual initialization
25-
# @record "pattern_animation" overwrite=true generate!(wc, retry=1)
26-
generate!(wc, retry=1, optimiser=WordCloud.Momentum=1/8)) # turn off rescale attempts. manually set images can't be rescaled
25+
@record "pattern_animation" overwrite=true generate!(wc, retry=1, optimiser=WordCloud.Momentum=1/8))
26+
# generate!(wc, retry=1, optimiser=WordCloud.Momentum(η=1/8)) # turn off rescale attempts. manually set images can't be rescaled
2727
println("results are saved to pattern.png")
2828
paint(wc, "pattern.png")
2929
wc
3030
#eval# runexample(:pattern)
31-
#md# ![](pattern.png)
31+
#md# ![](pattern.png)
32+
#md# ![](pattern_animation/animation.gif)

0 commit comments

Comments
 (0)