title = "4096 Colors"
Init()
For y = cy To cy + th - 1
For x = cx To cx + tw - 1
color = GraphicsWindow.GetPixel(x, y)
len = Text.GetLength(color)
color = "#" + Text.GetSubText(color, len - 5, 1) + Text.GetSubText(color, len - 3, 1) + Text.GetSubText(color, len - 1, 1)
GraphicsWindow.SetPixel(x, y, color)
EndFor
EndFor
Sub OnMouseMove
mx = GraphicsWindow.MouseX
my = GraphicsWindow.MouseY
c = GraphicsWindow.GetPixel(mx, my)
GraphicsWindow.Title = title + " - " + c
EndSub