using free pascal 2.6.2 (32) not (64)
with sdl2 and portaudio
windows 7

Im developing an audio visualizer, have gotten the oscilliscope working, but unfortunately I cannot figure out how to get the sdl_getrgb to work have no examples on the net about this( none for pascal just c which i can not make heads or tails of lol). I was able to figure out how to do it in sdl1 but Im not wanting to reprogram back to sdl1 so any one able to help me with a simple example of how to retrieve r g b color values from the x,y position in SDL2 would be great, im sure others would like to know as well. Thanks in advance to who ever can help with this. I plan to release my source code on sourceforge when it is complete.