public final class PictureBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
generateFullRandomPicture(int width,
int height)
Generates a totally random picture with the given width and height.
|
static BufferedImage |
generateSemiRandomPicture(int width,
int height,
int figures)
Generates a random picture by random drawing figures (rectangles and
circles) on a white canvas.
|
static void |
main(String[] args)
Main method that can be used to try the random picture generator.
|
static Color |
pickRandomColor()
Generates a random color.
|
public static BufferedImage generateFullRandomPicture(int width, int height)
width - the widthheight - the heightpublic static BufferedImage generateSemiRandomPicture(int width, int height, int figures)
width - the width of the canvasheight - the height of the canvasfigures - the number of figures to drawpublic static Color pickRandomColor()
public static void main(String[] args)
args - not usedCopyright © 2015. All rights reserved.