It would help to see what you're using so far. Is it a sampleImage() expression like this:
L = thisComp.layer("Candle Comp");
samplePoint = [448,506];
sampleWidth = 20;
sampleHeight = 40;
c = L.sampleImage(L.fromComp(samplePoint),[sampleWidth,sampleHeight]/2,false,time);
linear(rgbToHsl(c)[2],0,1,0,100)
... View more