12 lines
311 B
Kotlin
12 lines
311 B
Kotlin
package net.shadowfacts.shadowui.util
|
|
|
|
import net.minecraft.client.gui.DrawableHelper
|
|
import net.shadowfacts.shadowui.geometry.Rect
|
|
|
|
object RenderHelper {
|
|
|
|
fun fill(rect: Rect, color: Color) {
|
|
DrawableHelper.fill(rect.left.toInt(), rect.top.toInt(), rect.right.toInt(), rect.bottom.toInt(), color.argb)
|
|
}
|
|
|
|
} |