Smartzkid
2008-04-02 23:00:24
Ask anything you like about it; first day of trig in school, so I felt like making a script to take advantage of my new knowledge. Mess around with the HSL settings (relating them to s can make some really neat effects!) if you want to see some interesting designs.
program CircleDraw;
var
i, s, img: integer;
begin
img := BitmapFromString(360, 360, '');
DisplayDebugImgWindow(360, 360);
for s := 179 downto 1 do
begin
for i := 0 to 360 do
FastSetPixel(img, round(abs(cos(i) * s + 180)), round(abs(sin(i) * s + 180 + ((180 - s) / 5))), HSLtoColor(i/(360/255), 179, 50));
SafeCopyCanvas(GetBitmapCanvas(img), GetDebugCanvas, 1, 1, 360, 360, 1, 1, 360, 360);
end;
FreeBitmap(img);
end.