changing texturevalues for painting

hi, what is the simplest way to create a texture, which i can change interactive. i get coordiantes from the mouse and i have the texturecoordinates for this position. how can i change the texture values for this special position?
thanks lydia