Mercurial > repos > public > sbplib_julia
changeset 1857:ffde7dad9da5 feature/documenter_logo
Add a logo to the documentation
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 21 Jan 2022 15:23:08 +0100 |
parents | 9a2776352c2a |
children | 4a9be96f2569 |
files | docs/logo.jl docs/src/assets/logo.svg docs/src/assets/logo_big.svg |
diffstat | 3 files changed, 133 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/logo.jl Fri Jan 21 15:23:08 2022 +0100 @@ -0,0 +1,111 @@ +using Plots +using Colors + +logocolors = Colors.JULIA_LOGO_COLORS + +gr() +# pgfplotsx() + +polar(r,θ) = (r*cos(θ), r*sin(θ)) + +plt = plot(; + xlim=(-1,1), + ylim=(-1,1), + aspect_ratio=1., + legend=false, + axis=([],false), + grid=false, + dpi=600, + size=(250,250), + background_color = :transparent, +) + +origo = (0,0); +r = 0.6 + +markersize=24 +markerstrokewidth=3 +markerstrokecolor=colorant"#333" + +for θ ∈ π/2 .+ 2π/3*(0:2) + plot!([origo, polar(r,θ)]; + color = colorant"#ccc", + linewidth=4, + ) +end + +scatter!(origo; + color = logocolors.blue, + markersize, + markerstrokewidth, + markerstrokecolor, +) + + +colors = [logocolors.green, logocolors.red, logocolors.purple] + +for i ∈ 0:2 + θ = π/2 + 2π/3*i + scatter!(polar(r,θ); + color = colors[i+1], + markersize, + markerstrokewidth, + markerstrokecolor, + ) +end + + + + + + + +plt2 = plot(; + xlim=(-1,1), + ylim=(-1,1), + aspect_ratio=1., + legend=false, + axis=([],false), + grid=false, + dpi=600, + size=(300,300), + background_color = :transparent +) + +origo = (0,0); + +r = 0.6 +markersize=24 +markerstrokewidth=3 +markerstrokecolor=colorant"#333" + +for θ ∈ 2π/4*(0:3) + plot!([origo, polar(r,θ)]; + color = colorant"#CCC", + linewidth=4, + ) +end + +scatter!(origo; + color = colorant"#FFF", + markersize, + markerstrokewidth, + markerstrokecolor, +) + + +colors = [logocolors.blue, logocolors.red, logocolors.green, logocolors.purple] + +for i ∈ 0:3 + θ = 2π/4*i + scatter!(polar(r,θ); + color = colors[i+1], + markersize, + markerstrokewidth, + markerstrokecolor, + ) +end + +savefig(plt, "tri.png") +savefig(plt2, "quad.png") +savefig(plt, "logo.svg")
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/src/assets/logo.svg Fri Jan 21 15:23:08 2022 +0100 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="80" height="72" viewBox="-0.39782375 -0.4433175 0.7956475 0.71685125"> + <polyline points="0,0 0,-0.3395675" stroke="#cccccc" stroke-width="0.02" stroke-opacity="1" /> + <polyline points="0,0 -0.29407375,0.16978375" stroke="#cccccc" stroke-width="0.02" stroke-opacity="1" /> + <polyline points="0,0 0.29407375,0.16978375" stroke="#cccccc" stroke-width="0.02" stroke-opacity="1" /> + + <circle cx="0" cy="0" r="0.1" fill="#4063d8" stroke="#333333" stroke-width="0.0075"/> + <circle cx="0" cy="-0.3395675" r="0.1" fill="#389826" stroke="#333333" stroke-width="0.0075"/> + <circle cx="-0.29407375" cy="0.16978375" r="0.1" fill="#cb3c33" stroke="#333333" stroke-width="0.0075"/> + <circle cx="0.29407375" cy="0.16978375" r="0.1" fill="#9558b2" stroke="#333333" stroke-width="0.0075"/> +</svg>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/src/assets/logo_big.svg Fri Jan 21 15:23:08 2022 +0100 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="400" height="400" viewBox="-0.44657375 -0.4920675 0.8931475 0.984135"> + <polyline points="0,0 0,-0.3395675" stroke="#cccccc" stroke-width="0.02" stroke-opacity="1" /> + <polyline points="0,0 -0.29407375,0.16978375" stroke="#cccccc" stroke-width="0.02" stroke-opacity="1" /> + <polyline points="0,0 0.29407375,0.16978375" stroke="#cccccc" stroke-width="0.02" stroke-opacity="1" /> + + <circle cx="0" cy="0" r="0.1" fill="#4063d8" stroke="#333333" stroke-width="0.0075"/> + <circle cx="0" cy="-0.3395675" r="0.1" fill="#389826" stroke="#333333" stroke-width="0.0075"/> + <circle cx="-0.29407375" cy="0.16978375" r="0.1" fill="#cb3c33" stroke="#333333" stroke-width="0.0075"/> + <circle cx="0.29407375" cy="0.16978375" r="0.1" fill="#9558b2" stroke="#333333" stroke-width="0.0075"/> +</svg>