fromColor

fun fromColor(width: Int, height: Int, color: Color): Image

Creates an image filled with the specified color.

Return

An Image object representing the created image.

Parameters

width

The width of the image.

height

The height of the image.

color

The color to fill the image with.