Sub OnButtonClicked
l = Math.GetRandomNumber(64)
GraphicsWindow.BrushColor = GraphicsWindow.GetColorFromRGB(l, l, l)
GraphicsWindow.FillRectangle(0 , 0, ww, wh)
x = x0
For i = 1 To len
GraphicsWindow.BrushColor = GraphicsWindow.GetRandomColor()
c = Text.GetSubText(msg, i, 1)
GraphicsWindow.DrawText(x, y0, c)
x = x + fw[c] * fh
EndFor
EndSub