OK, nevermind, I managed to figure it out eventually. If anyone is interested, check out the following C program. It draws 3 graident lines in the top left corner of the screen. It modifies pixels directly in the framebuffer's memory
Shiny... are you working towards anything in particular or is this a 'because its there' project? :)