Alpha question

Is a zero alpha color supposed to be fully transparent? I thought so but then why does thus draw a red line at all?

function draw()
    background(0,0,0,255)
    noSmooth()
    strokeWidth(2)
    stroke(0, 0, 0, 255)
    fill(0,0,255,255)
    rectMode(CORNER)
    rect(100,100,200,200)
    
    stroke(255,0,0,0)
    line(0,150,600,150)
end

Or simpler, why does this draw a red line?

function draw()
    background(0,0,0,255)
    noSmooth()
    strokeWidth(2)
    stroke(255,0,0,0)
    line(0,150,600,150)
end

I never noticed that before, it’s seems related to using noSmooth()

Yeah it’s a problem with the way we draw noSmooth() lines (GL_LINES). Please put this on the issue tracker and we’ll tackle it in the future.

Nevermind this turned out to be an easy fix. It will be fixed in the next version after 1.2.7.

Thanks!