Добавили мне новую переменную double s = 2.2; и в выражении самом умножили на неё
import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; public class test extends Applet { public void paint(Graphics g) { double t; double step = 0.125; double PI = Math.PI/2; // Kysime laiuse, ko~rguse int width = getWidth(); int height = getHeight(); int x1 = 0; int y1 = 0; double s = 2.2; // arvuta akna suuruse jargi. lyhem kylg / 200 // Katame tausta g.setColor(Color.gray); g.fillRect(0, 0, width, height); // Joonistame g.setColor(Color.black); for (t = 10; t >= -10; t = t - step, step = step * 1.01) { int x = (int)(100 * s * (Math.sin(t/2 * PI)) * Math.cos(t/10 * PI) + width/2); int y = (int)(100 * s * (Math.sin(t/2 * PI)) * Math.sin(t/10 * PI) + height/2); if (t != 10) { g.drawLine(x1, y1, x, y); } x1 = x; y1 = y; } } }