资 源 简 介
1. FL
A stupid language interpreter designed by some stupid man for drawing function lines.
The language has only four statements without any variable or function:
rot is theta;
scale is (x,y);
origin is (x,y);
for t from a to b step c draw (x, y);
-- this is comment
// comment too
Example:
// first ,斜线一条
origin is (100-10*3+2,sqrt(255)+3/1);
scale is (1,1);
rot is 0;
for t from 0 to 200 step 1 draw (t + 1, t - 1);
-- second, 同心圆
origin is (200,200);
rot is 0;
scale is(50,50);
for t from 0 to 2*pi step pi/1000 draw (cos(t), sin(t));
scale is (100,100);
for t from 0 to 2*pi step pi/2000 draw(cos(t),sin(t));
-- third,坐标曲线
rot is 0;
origin is(50,40*(15-sqrt(25)));
scale is (2,1); //坐标