-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4f6807
commit 27a2907
Showing
9 changed files
with
208 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#md# It is the code to draw this repo's logo | ||
using WordCloud | ||
Luxor = WordCloud.Render.Luxor | ||
|
||
function cloudshape(height, args...; backgroundcolor=(0,0,0,0)) | ||
height = ceil(height) | ||
r = height / 2 | ||
d = Luxor.Drawing((2height, height)..., :svg) | ||
Luxor.origin() | ||
Luxor.background(parsecolor(backgroundcolor)) | ||
Luxor.setcolor(parsecolor((0.22,0.596,0.149))) | ||
Luxor.pie(0, 0, r, 0, 2π, :fill) | ||
Luxor.setcolor(parsecolor((0.584,0.345,0.698))) | ||
Luxor.pie(r, r, r, -π, 0, :fill) | ||
Luxor.setcolor(parsecolor((0.796,0.235,0.20))) | ||
Luxor.Luxor.pie(-r, r, r, -π, 0, :fill) | ||
Luxor.finish() | ||
d | ||
end | ||
wc = wordcloud( | ||
repeat(string.('a':'z'), 5), | ||
repeat([1], 26*5), | ||
mask = cloudshape(500), | ||
transparent = (0,0,0,0), | ||
colors = 1, | ||
angles = -90:0, | ||
font = "JuliaMono Black", | ||
density=0.77, | ||
) | ||
generate!(wc, 2000, retry=1) | ||
recolor!(wc, style=:main) | ||
println("results are saved to logo.svg") | ||
paint(wc, "logo.svg", background=false) | ||
wc | ||
#eval# runexample(:logo) | ||
#md# ![](logo.svg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
27a2907
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register()
27a2907
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/41265
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: