Hi Cod1ngFreak. So we can answer your question, what graphics library are you using in Freebasic (Tinyptc, fbgfx, sdl, opengl etc)?
To make a wavy offset like that, the best way is to use the sin command to generate a nice sine wave offset that can be added to each successive line of the picture when it's being drawn.
Have you written any of the code?