using Luxor

const julia_blue    = (0.251, 0.388, 0.847)
const julia_purple  = (0.584, 0.345, 0.698)
const julia_green   = (0.22, 0.596, 0.149)
const julia_red     = (0.796, 0.235, 0.2)

function draw_full(type)
    currentwidth = 900 # pts
    currentheight = 250 # pts
    Drawing(currentwidth, currentheight, "logo.$type")

    sethue(julia_red)
    circle(Point(40, 30), 25, :fill)

    sethue(julia_purple)
    circle(Point(115, 30), 25, :fill)
    
    sethue(julia_green)
    circle(Point(830, 30), 25, :fill)

    # origin()

    fontsize(300)                             
    fontface("Literata SemiBold")
    
    str = "actScı" # Uses "dotless i" 

    translate(0, 225)

    textpath(str)                             # make text into a path
    setline(3)
    setcolor("black") 
    fillpreserve()                            # fill but keep

    finish()
end

draw_full("png")
draw_full("svg")
preview()


function draw_square(type)
    currentwidth = 250 # pts
    currentheight = 250 # pts
    Drawing(currentwidth, currentheight, "logo_square.$type")

    sethue(julia_red)
    circle(Point(85, 30), 25, :fill)

    sethue(julia_purple)
    circle(Point(160, 30), 25, :fill)


    # origin()

    fontsize(300)                             
    fontface("Literata SemiBold")
    
    str = "a" # Uses "dotless i" 

    translate(45, 225)

    textpath(str)                             # make text into a path
    setline(3)
    setcolor("black") 
    fillpreserve()                            # fill but keep

    finish()
end

draw_square("png")
draw_square("svg")
preview()