solidRect

inline fun Container.solidRect(size: Size, color: RGBA = Colors.WHITE, callback: SolidRect.() -> Unit = {}): SolidRect

Creates a new SolidRect of size and color color and allows you to configure it via callback. Once created, it is added to this receiver Container.


inline fun Container.solidRect(width: Double, height: Double, color: RGBA = Colors.WHITE, callback: SolidRect.() -> Unit = {}): SolidRect
inline fun Container.solidRect(width: Float, height: Float, color: RGBA = Colors.WHITE, callback: SolidRect.() -> Unit = {}): SolidRect


inline fun Container.solidRect(width: Int, height: Int, color: RGBA = Colors.WHITE, callback: SolidRect.() -> Unit = {}): SolidRect

Creates a new SolidRect of size widthxheight and color color and allows you to configure it via callback. Once created, it is added to this receiver Container.