Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Superellipse/XPL0/superellipse.xpl0
Normal file
23
Task/Superellipse/XPL0/superellipse.xpl0
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
def X0=640/2, Y0=480/2, Scale=25.0, N=2.5;
|
||||
real X, Y; int IX, IY;
|
||||
|
||||
proc OctPoint; [
|
||||
Point(X0+IX, Y0-IY, $F);
|
||||
Point(X0-IX, Y0-IY, $F);
|
||||
Point(X0+IX, Y0+IY, $F);
|
||||
Point(X0-IX, Y0+IY, $F);
|
||||
Point(X0+IY, Y0-IX, $F);
|
||||
Point(X0-IY, Y0-IX, $F);
|
||||
Point(X0+IY, Y0+IX, $F);
|
||||
Point(X0-IY, Y0+IX, $F);
|
||||
];
|
||||
|
||||
[SetVid($101); \VESA graphics 640x480x8
|
||||
IX:= 0;
|
||||
repeat X:= float(IX)/Scale;
|
||||
Y:= Pow(200.0 - Pow(X,N), 1.0/N);
|
||||
IY:= fix(Y*Scale);
|
||||
OctPoint;
|
||||
IX:= IX+1;
|
||||
until IX >= IY;
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue