小编Aiz*_*zle的帖子

在Java中进行对数螺旋

import java.io.*;
import java.awt.*;

// Logarithmic spiral example
public class Spiral extends Frame
{// The spiral consists of n line segments. Line segment 1
// has starting point (hc, vc). Line segment k, for 1<=k<=n,
// has length k*d. Each line segment makes an angle of turn
// degrees with the previous line segment. The colors of the
// lines alternate between red, blue, and green.

final static int hc= 500;   // Center of spiral is (hc,vc)
final static int …
Run Code Online (Sandbox Code Playgroud)

java spiral

6
推荐指数
1
解决办法
1239
查看次数

标签 统计

java ×1

spiral ×1