You can't use graphics commands such as CreateImage without using a canvas, or the Graphics command.
w1=bla() WaitKey() End Function bla() window=CreateWindow("blah",32,32,512,256) cv = CreateCanvas(0,0,63,63,window) image=CreateImage(64,64) SetBuffer CanvasBuffer(cv) Color 100, 120, 140 Plot 0,0 GetColor 0,0 msg$ = " RGB = " + ColorRed() + " " + ColorGreen() + " " + ColorBlue() SetStatusText window, msg End Function