|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.util.Stars
Utility for generating 5-pointed stars - you can use generateStar to create one in an array, then create an icon, map, or whatever using that pattern.
Constructor Summary | |
Stars()
|
Method Summary | |
static void |
drawLine(int x1,
int y1,
int x2,
int y2,
int[][] grid)
Draws a line in the grid from (x1, x1) to (x2, y2) |
static int[][] |
generateStar(int diameter)
Generates a star of the passed diameter. |
static void |
main(java.lang.String[] args)
Do it. |
static void |
printStar(int[][] star)
Prints out a star as ASCII text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Stars()
Method Detail |
public static void main(java.lang.String[] args)
public static int[][] generateStar(int diameter)
public static void drawLine(int x1, int y1, int x2, int y2, int[][] grid)
public static void printStar(int[][] star)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |