Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. -- palette to picture - Copyright 2010 Paulo Silva
  2. -- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. See <http://www.gnu.org/licenses/>
  3. w,h=getpicturesize();
  4. ok,xsiz,ysiz=inputbox("palette to picture","x size",8,1,16,5,"y size",8,1,16,6);
  5. if ok==true then
  6.   for y1=0,7,1 do
  7.     for x1=0,31,1 do
  8.       for y2=0,ysiz-1,1 do
  9.         for x2=0,xsiz-1,1 do
  10.           putpicturepixel(x1*xsiz+x2,y1*ysiz+y2,y1+x1*8)
  11.           end;end;end;end;end
  12.