Confused with displaymode

Hi,

I am new to Codea, but enjoying what I have done so far. I have a question about STANDARD and FULLSCREEN when using displayMode(). In the code below both circles A and B appear as I would expect them to when in STANDARD mode. However, only circle A appears as a circle when using FULLSCREEN.

Thanks


-- Use this function to perform your initial setup

function setup()
   -- displayMode(FULLSCREEN)
    circleA = circleImage( 150,"A" )
    circleB = circleImage( 150,"B" )
end

-- This function gets called once every frame
function draw()
    background(0, 0, 0)
    sprite(circleA,WIDTH/2,HEIGHT/2)
    sprite(circleB,WIDTH*0.25,HEIGHT/2)
end


function circleImage( size,txt)
    local i = image(size,size)
    setContext(i)
    fill(255) 
    ellipse( size/2, size/2,size)
    fill(0)
    fontSize(40)
    text(txt,size/2,size/2)
    setContext()
    return(i)
end

@pcl IDK why, but it does work if you call displayMode after CircleA and CircleB so



-- Use this function to perform your initial setup

function setup()
    circleB = circleImage( 150,"B" )
    circleA = circleImage( 150,"A" )
    displayMode(FULLSCREEN)
end

-- This function gets called once every frame
function draw()
    background(0, 0, 0)
    sprite(circleA, WIDTH/4, HEIGHT/2)
    sprite(circleB,WIDTH/2,HEIGHT/2)
end


function circleImage( size,txt)
    local i = image(size,size)
    setContext(i)
    fill(255) 
    ellipse( size/2, size/2,size)
    fill(0)
    fontSize(40)
    text(txt,size/2,size/2)
    setContext()
    return(i)
end

@pcl Try calling displayMode() before the setup function (right at the top of the file, before anything else).

Thanks. I thought it would be something simple.