With this Scilab script, create your own Season's Greeting, to share it with your friends:
ScilabSeasonsGreeting.sce 1.91 kB
function Star(B, b, n, name)
colour = modulo(name, 128);
for p = n:-1:1
for q = 1:min(p,2):2^(p-1)*b
Z = B*exp(%i*q*%pi/2^(p-2)/b);
xfpolys(real(Z), imag(Z), [colour colour+8]);
end
end
endfunction
txt = ["First Name"; "Date of Birth"];
sig = x_mdialog("Enter your info", txt, ["John"; "2017"]);
if ~isempty(sig) then
year = evstr(sig(2));
n = modulo(year,3)+3;
b = modulo(yea