# sun Icon

> The sun icon from Radix as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Radix](https://composables.com/icons/icon-libraries/radix.md)
- License: MIT (full text in the [Radix library page](https://composables.com/icons/icon-libraries/radix.md))
- Categories: [Objects](https://composables.com/icons/categories/objects.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/radix/sun.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val RadixSun: ImageVector
    get() {
        if (_RadixSun != null) return _RadixSun!!
        
        _RadixSun = ImageVector.Builder(
            name = "sun",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 15f,
            viewportHeight = 15f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(7.5f, 12f)
                curveTo(7.77614f, 12f, 8f, 12.2239f, 8f, 12.5f)
                verticalLineTo(14.5f)
                curveTo(8f, 14.7761f, 7.77614f, 15f, 7.5f, 15f)
                curveTo(7.22386f, 15f, 7f, 14.7761f, 7f, 14.5f)
                verticalLineTo(12.5f)
                curveTo(7f, 12.2239f, 7.22386f, 12f, 7.5f, 12f)
                close()
                moveTo(3.61133f, 10.6816f)
                curveTo(3.80662f, 10.4868f, 4.12322f, 10.4865f, 4.31836f, 10.6816f)
                curveTo(4.5135f, 10.8768f, 4.51324f, 11.1934f, 4.31836f, 11.3887f)
                lineTo(2.90332f, 12.8037f)
                curveTo(2.70802f, 12.9985f, 2.3914f, 12.9988f, 2.19629f, 12.8037f)
                curveTo(2.00118f, 12.6086f, 2.00147f, 12.292f, 2.19629f, 12.0967f)
                lineTo(3.61133f, 10.6816f)
                close()
                moveTo(10.6816f, 10.6816f)
                curveTo(10.8768f, 10.4865f, 11.1934f, 10.4868f, 11.3887f, 10.6816f)
                lineTo(12.8037f, 12.0967f)
                curveTo(12.9985f, 12.292f, 12.9988f, 12.6086f, 12.8037f, 12.8037f)
                curveTo(12.6086f, 12.9988f, 12.292f, 12.9985f, 12.0967f, 12.8037f)
                lineTo(10.6816f, 11.3887f)
                curveTo(10.4868f, 11.1934f, 10.4865f, 10.8768f, 10.6816f, 10.6816f)
                close()
                moveTo(7.5f, 4.5f)
                curveTo(9.15685f, 4.5f, 10.5f, 5.84315f, 10.5f, 7.5f)
                curveTo(10.5f, 9.15685f, 9.15685f, 10.5f, 7.5f, 10.5f)
                curveTo(5.84315f, 10.5f, 4.5f, 9.15685f, 4.5f, 7.5f)
                curveTo(4.5f, 5.84315f, 5.84315f, 4.5f, 7.5f, 4.5f)
                close()
                moveTo(7.5f, 5.5f)
                curveTo(6.39543f, 5.5f, 5.5f, 6.39543f, 5.5f, 7.5f)
                curveTo(5.5f, 8.60457f, 6.39543f, 9.5f, 7.5f, 9.5f)
                curveTo(8.60457f, 9.5f, 9.5f, 8.60457f, 9.5f, 7.5f)
                curveTo(9.5f, 6.39543f, 8.60457f, 5.5f, 7.5f, 5.5f)
                close()
                moveTo(2.5f, 7f)
                curveTo(2.77614f, 7f, 3f, 7.22386f, 3f, 7.5f)
                curveTo(3f, 7.77614f, 2.77614f, 8f, 2.5f, 8f)
                horizontalLineTo(0.5f)
                curveTo(0.223858f, 8f, 0f, 7.77614f, 0f, 7.5f)
                curveTo(0f, 7.22386f, 0.223858f, 7f, 0.5f, 7f)
                horizontalLineTo(2.5f)
                close()
                moveTo(14.5f, 7f)
                curveTo(14.7761f, 7f, 15f, 7.22386f, 15f, 7.5f)
                curveTo(15f, 7.77614f, 14.7761f, 8f, 14.5f, 8f)
                horizontalLineTo(12.5f)
                curveTo(12.2239f, 8f, 12f, 7.77614f, 12f, 7.5f)
                curveTo(12f, 7.22386f, 12.2239f, 7f, 12.5f, 7f)
                horizontalLineTo(14.5f)
                close()
                moveTo(2.19629f, 2.19629f)
                curveTo(2.3914f, 2.00118f, 2.70802f, 2.00147f, 2.90332f, 2.19629f)
                lineTo(4.31836f, 3.61133f)
                curveTo(4.51324f, 3.80662f, 4.5135f, 4.12322f, 4.31836f, 4.31836f)
                curveTo(4.12322f, 4.5135f, 3.80662f, 4.51324f, 3.61133f, 4.31836f)
                lineTo(2.19629f, 2.90332f)
                curveTo(2.00147f, 2.70802f, 2.00118f, 2.3914f, 2.19629f, 2.19629f)
                close()
                moveTo(12.0967f, 2.19629f)
                curveTo(12.292f, 2.00147f, 12.6086f, 2.00118f, 12.8037f, 2.19629f)
                curveTo(12.9988f, 2.3914f, 12.9985f, 2.70802f, 12.8037f, 2.90332f)
                lineTo(11.3887f, 4.31836f)
                curveTo(11.1934f, 4.51324f, 10.8768f, 4.5135f, 10.6816f, 4.31836f)
                curveTo(10.4865f, 4.12322f, 10.4868f, 3.80662f, 10.6816f, 3.61133f)
                lineTo(12.0967f, 2.19629f)
                close()
                moveTo(7.5f, 0f)
                curveTo(7.77614f, 0f, 8f, 0.223858f, 8f, 0.5f)
                verticalLineTo(2.5f)
                curveTo(8f, 2.77614f, 7.77614f, 3f, 7.5f, 3f)
                curveTo(7.22386f, 3f, 7f, 2.77614f, 7f, 2.5f)
                verticalLineTo(0.5f)
                curveTo(7f, 0.223858f, 7.22386f, 0f, 7.5f, 0f)
                close()
            }
        }.build()
        
        return _RadixSun!!
    }

private var _RadixSun: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/radix/sun.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="15"
    android:viewportHeight="15">
    <path
        android:fillColor="@android:color/black"
        android:pathData="M7.5,12C7.77614,12 8,12.2239 8,12.5V14.5C8,14.7761 7.77614,15 7.5,15C7.22386,15 7,14.7761 7,14.5V12.5C7,12.2239 7.22386,12 7.5,12ZM3.61133,10.6816C3.80662,10.4868 4.12322,10.4865 4.31836,10.6816C4.5135,10.8768 4.51324,11.1934 4.31836,11.3887L2.90332,12.8037C2.70802,12.9985 2.3914,12.9988 2.19629,12.8037C2.00118,12.6086 2.00147,12.292 2.19629,12.0967L3.61133,10.6816ZM10.6816,10.6816C10.8768,10.4865 11.1934,10.4868 11.3887,10.6816L12.8037,12.0967C12.9985,12.292 12.9988,12.6086 12.8037,12.8037C12.6086,12.9988 12.292,12.9985 12.0967,12.8037L10.6816,11.3887C10.4868,11.1934 10.4865,10.8768 10.6816,10.6816ZM7.5,4.5C9.15685,4.5 10.5,5.84315 10.5,7.5C10.5,9.15685 9.15685,10.5 7.5,10.5C5.84315,10.5 4.5,9.15685 4.5,7.5C4.5,5.84315 5.84315,4.5 7.5,4.5ZM7.5,5.5C6.39543,5.5 5.5,6.39543 5.5,7.5C5.5,8.60457 6.39543,9.5 7.5,9.5C8.60457,9.5 9.5,8.60457 9.5,7.5C9.5,6.39543 8.60457,5.5 7.5,5.5ZM2.5,7C2.77614,7 3,7.22386 3,7.5C3,7.77614 2.77614,8 2.5,8H0.5C0.223858,8 0,7.77614 0,7.5C0,7.22386 0.223858,7 0.5,7H2.5ZM14.5,7C14.7761,7 15,7.22386 15,7.5C15,7.77614 14.7761,8 14.5,8H12.5C12.2239,8 12,7.77614 12,7.5C12,7.22386 12.2239,7 12.5,7H14.5ZM2.19629,2.19629C2.3914,2.00118 2.70802,2.00147 2.90332,2.19629L4.31836,3.61133C4.51324,3.80662 4.5135,4.12322 4.31836,4.31836C4.12322,4.5135 3.80662,4.51324 3.61133,4.31836L2.19629,2.90332C2.00147,2.70802 2.00118,2.3914 2.19629,2.19629ZM12.0967,2.19629C12.292,2.00147 12.6086,2.00118 12.8037,2.19629C12.9988,2.3914 12.9985,2.70802 12.8037,2.90332L11.3887,4.31836C11.1934,4.51324 10.8768,4.5135 10.6816,4.31836C10.4865,4.12322 10.4868,3.80662 10.6816,3.61133L12.0967,2.19629ZM7.5,0C7.77614,0 8,0.223858 8,0.5V2.5C8,2.77614 7.77614,3 7.5,3C7.22386,3 7,2.77614 7,2.5V0.5C7,0.223858 7.22386,0 7.5,0Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/radix/sun.svg`

```svg
<svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 12C7.77614 12 8 12.2239 8 12.5V14.5C8 14.7761 7.77614 15 7.5 15C7.22386 15 7 14.7761 7 14.5V12.5C7 12.2239 7.22386 12 7.5 12ZM3.61133 10.6816C3.80662 10.4868 4.12322 10.4865 4.31836 10.6816C4.5135 10.8768 4.51324 11.1934 4.31836 11.3887L2.90332 12.8037C2.70802 12.9985 2.3914 12.9988 2.19629 12.8037C2.00118 12.6086 2.00147 12.292 2.19629 12.0967L3.61133 10.6816ZM10.6816 10.6816C10.8768 10.4865 11.1934 10.4868 11.3887 10.6816L12.8037 12.0967C12.9985 12.292 12.9988 12.6086 12.8037 12.8037C12.6086 12.9988 12.292 12.9985 12.0967 12.8037L10.6816 11.3887C10.4868 11.1934 10.4865 10.8768 10.6816 10.6816ZM7.5 4.5C9.15685 4.5 10.5 5.84315 10.5 7.5C10.5 9.15685 9.15685 10.5 7.5 10.5C5.84315 10.5 4.5 9.15685 4.5 7.5C4.5 5.84315 5.84315 4.5 7.5 4.5ZM7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5ZM2.5 7C2.77614 7 3 7.22386 3 7.5C3 7.77614 2.77614 8 2.5 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H2.5ZM14.5 7C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H12.5C12.2239 8 12 7.77614 12 7.5C12 7.22386 12.2239 7 12.5 7H14.5ZM2.19629 2.19629C2.3914 2.00118 2.70802 2.00147 2.90332 2.19629L4.31836 3.61133C4.51324 3.80662 4.5135 4.12322 4.31836 4.31836C4.12322 4.5135 3.80662 4.51324 3.61133 4.31836L2.19629 2.90332C2.00147 2.70802 2.00118 2.3914 2.19629 2.19629ZM12.0967 2.19629C12.292 2.00147 12.6086 2.00118 12.8037 2.19629C12.9988 2.3914 12.9985 2.70802 12.8037 2.90332L11.3887 4.31836C11.1934 4.51324 10.8768 4.5135 10.6816 4.31836C10.4865 4.12322 10.4868 3.80662 10.6816 3.61133L12.0967 2.19629ZM7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0Z" fill="currentColor"/></svg>
```
