kingsley
fun Resources.bitmapShader(resId: Int, mode: Shader.TileMode) = BitmapShader (BitmapFactory.decodeResource(this, resId), mode, mode)