|
| 1 | + |
| 2 | + |
| 3 | +using Luxor |
| 4 | +using MathTeXEngine |
| 5 | + |
| 6 | + |
| 7 | +function logo1() |
| 8 | + |
| 9 | + |
| 10 | + cornradius = 30 |
| 11 | + |
| 12 | + xtot = 1000 |
| 13 | + ytot = 1000 |
| 14 | + |
| 15 | + x_blue = -202 |
| 16 | + y_green = 288 |
| 17 | + y_red = -328 |
| 18 | + y_g1 = -220 |
| 19 | + y_lab = 282 |
| 20 | + x_min1 = 273 |
| 21 | + |
| 22 | + Drawing(xtot,ytot,"GinvLab_logo.svg") # "GinvLab_logo.svg") |
| 23 | + origin() #Point(0,0)) |
| 24 | + |
| 25 | + #background("white") |
| 26 | + #rect(Point(0,0),200,200,action=:fill) |
| 27 | + |
| 28 | + setcolor(Luxor.julia_red) |
| 29 | + setcolor(Luxor.julia_purple) |
| 30 | + setcolor(Luxor.julia_blue) |
| 31 | + |
| 32 | + height_green = 2*((ytot÷2)-y_green) |
| 33 | + height_blue = ytot-height_green |
| 34 | + y_blue = -((height_blue÷2) - (y_green-(height_green÷2))) |
| 35 | + width_blue = 2*((xtot÷2)-abs(x_blue)) |
| 36 | + |
| 37 | + width_red = xtot-width_blue |
| 38 | + x_red = - (width_red÷2 + (x_blue-width_blue÷2)) |
| 39 | + height_red = 2*abs(-(ytot÷2)-(y_red)) |
| 40 | + |
| 41 | + x_purple = x_red |
| 42 | + width_purple = width_red |
| 43 | + y_purple = ((y_red+(height_red÷2)) + (y_green-(height_green÷2))) ÷2 |
| 44 | + height_purple = ytot-height_green-height_red |
| 45 | + |
| 46 | + |
| 47 | + setcolor(Luxor.julia_green) |
| 48 | + box(Point(0,y_green),xtot,height_green,[cornradius,0,0,cornradius],action=:fill) |
| 49 | + |
| 50 | + setcolor(Luxor.julia_blue) |
| 51 | + box(Point(x_blue,y_blue),width_blue,height_blue,[0,cornradius,0,0],action=:fill) |
| 52 | + |
| 53 | + setcolor(Luxor.julia_red) |
| 54 | + box(Point(x_red,y_red),width_red,height_red,[0,0,cornradius,0],action=:fill) |
| 55 | + |
| 56 | + setcolor(Luxor.julia_purple) |
| 57 | + box(Point(x_purple,y_purple),width_purple,height_purple,[0,0,0,0],action=:fill) |
| 58 | + |
| 59 | + |
| 60 | + strokecolor = "grey81" |
| 61 | + setline(2) |
| 62 | + |
| 63 | + setcolor("black") |
| 64 | + fontface("Helvetica Bold") |
| 65 | + fontsize(700) |
| 66 | + sethue("black") |
| 67 | + textpath("G", Point(-160,y_g1), :path, valign=:middle, halign=:center) |
| 68 | + fillpreserve() |
| 69 | + sethue(strokecolor) |
| 70 | + strokepath() |
| 71 | + |
| 72 | + fontface("Helvetica") |
| 73 | + sethue("black") |
| 74 | + textpath("⁻¹", Point(x_min1,y_g1), :path, valign=:middle, halign=:center) |
| 75 | + fillpreserve() |
| 76 | + sethue(strokecolor) |
| 77 | + strokepath() |
| 78 | + |
| 79 | + |
| 80 | + fontface("Helvetica") |
| 81 | + fontsize(500) |
| 82 | + |
| 83 | + sethue("black") |
| 84 | + textpath("Lab", Point(0,y_lab), :path, valign=:middle, halign=:center) |
| 85 | + fillpreserve() |
| 86 | + sethue(strokecolor) |
| 87 | + strokepath() |
| 88 | + |
| 89 | + finish() |
| 90 | + |
| 91 | + # preview() |
| 92 | +end |
| 93 | + |
0 commit comments