how properly adjust brightness to increase visual "linearity" ,

how properly adjust brightness to increase visual “linearity” , i made a Wuline drawing algorithm in order to make a better antialiased line , but brightness values doesn’t look right …