All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.demo_platform.renderer.RenderConfig.kt Maven / Gradle / Ivy

package ru.casperix.demo_platform.renderer

import ru.casperix.math.axis_aligned.int32.Dimension2i
import ru.casperix.math.camera.OrthographicCamera2f
import ru.casperix.math.color.Colors
import ru.casperix.math.vector.float32.Vector2f

object RenderConfig {
    val camera = OrthographicCamera2f(0.050f, Vector2f(2f), Dimension2i.ZERO)

    var BACKGROUND_COLOR = Colors.PURPLE
    var HELPER_COLOR = Colors.WHITE.setAlpha(0.2f)

    var POINT_BACK = Colors.BLACK.setAlpha(0.10f)
    var POINT_DEFAULT = Colors.GRAY.setAlpha(0.1f)
    var POINT_FOCUSED = Colors.WHITE.setAlpha(0.5f)

    val lineThick get() = camera.zoom * 4f
    val pointDiameter get() = camera.zoom * 12f

    var showAxis = true

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy