-- 256 pretty colors, mouse over them to get the color number -- Code by mikshaw (http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi) ww = 380 wh = 360 w = fltk:Fl_Window(ww,wh,"FLTK Colors, murgaLua") colors = {} row=20;switch=15;bw=20;left=10 for i = 0,255 do colors[i]=fltk:Fl_Box(left+bw,row,bw,bw) colors[i]:color(i) colors[i]:box(fltk.FL_THIN_UP_BOX) colors[i]:tooltip("color "..i) left=left+bw if i == switch then switch = switch+16 row = row+bw left = 10 end end w:show() Fl:run()