Android Graphics Utilities / it.czerwinski.android.graphics

Package it.czerwinski.android.graphics

Graphics Utilities for Android.

Types

AdvancedPath An extension of the Path class, providing means of building advanced shapes.open class AdvancedPath : Path

Extensions for External Classes

android.graphics.Canvas  
android.graphics.Rect  
android.graphics.RectF  
kotlin.Float  
kotlin.Int  

Properties

DOUBLE_PI A Float value equal to double pi constant.const val DOUBLE_PI: Float
FULL_ANGLE A Float value equal to full angle in measured in degrees.const val FULL_ANGLE: Float
PI A Float value equal to pi constant.const val PI: Float
RIGHT_ANGLE A Float value equal to right angle in measured in degrees.const val RIGHT_ANGLE: Float
STRAIGHT_ANGLE A Float value equal to straight angle in measured in degrees.const val STRAIGHT_ANGLE: Float

Functions

hsvColor Creates a color with the given hue, saturation and value.fun hsvColor(hue: Float, saturation: Float, value: Float): Int
mixColors Returns an Int value representing a color being a result of mixing color1 and color2 with the specified ratio.fun mixColors(color1: Int, color2: Int, ratio: Float = .5f): Int
set Clear any lines and curves from this path, making it empty, and applies a new path defined in init function.fun <T : Path> T.set(close: Boolean = false, init: T.() -> Unit): Unit